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: 3000776 |
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 Why Are Some Serial Port Values Displaying as Question Marks?
- 2 Why Isn't My Serial-to-USB Cable Working?
- 3 Building with TypeScript: A Lego-Based Guide
- 4 Why Does NULL = NULL Return False in SQL Server?
- 5 How to Enforce Unique Constraints with Nullable Columns in a Database Table?
- 6 End-To-End Encryption
- 7 MySQL Performance: Is `IN` Significantly Faster Than `OR` for Multiple Conditions?
- 8 How Can I Reliably Read and Display Data from a Scale via USB Serial Port, Handling Connection Issues?
- 9 MySQL OR vs. IN: Which Operator Offers Better Query Performance?
- 10 How Can I Use WinForms and Visual Studio to Read Data from a USB Serial Port Device?
- 11 How Do Prepared Statements Prevent SQL Injection?
- 12 How to Efficiently Read and Process Data from a USB Serial Scale Using C#?
- 13 How Can I Efficiently Handle Multiple Specific Exceptions in C#?
- 14 Copier vs Cookiecutter
- 15 MySQL IN vs. OR: Is There a Significant Performance Difference?
Latest Tutorials
-
- Go language practical GraphQL
- 2553 2024-04-19
-
- 550W fan master learns JavaScript from scratch step by step
- 3941 2024-04-18
-
- Getting Started with MySQL (Teacher mosh)
- 2117 2024-04-07
-
- Mock.js | Axios.js | Json | Ajax--Ten days of quality class
- 2900 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.