current location: Home > Download > Learning resources > Web page production > "The Difference Between H5 and Previous Versions of HTML"
"The Difference Between H5 and Previous Versions of HTML"
Classify: Learning materials / Web page production | Release time: 2018-01-08 | visits: 3000736 |
Download: 232 |
Latest Downloads
Red Alert Online
Delta Force
Pokémon UNITE
Fantasy Aquarium
Girls Frontline
Wings of Stars
Little Flower Fairy Fairy Paradise
Restaurant Cute Story
Shanhe Travel Exploration
Love and Producer
24 HoursReading Leaderboard
- 1 Call to a Member Function on a Non-Object: How to Diagnose and Fix This PHP Error?
- 2 Why Are My Go Logs Not Writing to File?
- 3 How Can I Create User-Friendly URLs in PHP?
- 4 How to Compute MD5 File Checksums in Java?
- 5 Why Are My Localhost Project Links Failing in WAMP, and How Can I Fix Them?
- 6 Warframe: Atomicycle Complete Guide
- 7 How to Resolve Go's Cross-Compilation Bootstrapping Issue from Windows to Linux?
- 8 Runnable run() vs. Thread start(): What's the Key Difference?
- 9 Why Does mysqli_connect() Fail with "Authentication Method Unknown (Caching_sha2_password)"?
- 10 How to Add Color to Console Output Using System.out.println()?
- 11 How Can I Iterate Through JavaScript Arrays?
- 12 How Can I Efficiently Extract Numbers from Strings in Python?
- 13 How Can I Handle HTTP Errors and Retrieve Response Codes When Using `file_get_contents` for POST Requests?
- 14 How Can I Use Multiple Databases in Laravel?
- 15 How Can I Convert a Python Dictionary to a Pandas DataFrame with Date and Value Columns?
Latest Tutorials
-
- Go language practical GraphQL
- 2323 2024-04-19
-
- 550W fan master learns JavaScript from scratch step by step
- 3739 2024-04-18
-
- Getting Started with MySQL (Teacher mosh)
- 1993 2024-04-07
-
- Mock.js | Axios.js | Json | Ajax--Ten days of quality class
- 2779 2024-03-29
one. Changes in syntax
1.1 Marking method in HTMl5
1. Content type
The file extension remains unchanged, it is still .htm or .htm, and the content type is "text/html"
2. DOCTYPE statement
<!DOCTYPE HTML>
3. Specify the encoding of characters
<meta charset = “utf-8”> (utf-8 is recommended)
1.2 HTML ensures compatibility with previous HTML versions
three aspects:
1. Marked elements can be omitted
The elements that do not allow the use of closing tags are: area, base, br, col, command, embed, hr, img, input, keygen, link, meta, param, source, track, wbr.
The end tag elements that can be omitted are: li, dt, dd, p, rt, rp, optgroup, option, colgroup, thread, tbody, tfoot, tr, td, th.
All marked elements that can be omitted are: html, head, body, colgroup, tbody.