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: 3000952 |
Download: 232 |
Latest Downloads
Horror Beat Phase Maker
Himalayan Children
Zebra AI
Supermarket Manager Simulator
Red Alert Online
Delta Force
Pokémon UNITE
Fantasy Aquarium
Girls Frontline
Wings of Stars
24 HoursReading Leaderboard
- 1 Mastering `array_splice`: A Comprehensive Guide to Injecting Elements into PHP Arrays
- 2 How to check a table for errors in MySQL
- 3 How to use the AND operator in MySQL
- 4 How to add a favicon to an HTML page
- 5 How to use colspan and rowspan to merge cells in an HTML table
- 6 How to create a responsive HTML layout
- 7 From Object to Array: A Comprehensive Guide to Type Casting and Conversion
- 8 Use .htaccess to implement elegant URL rewrite: from dynamic parameters to static paths
- 9 How to Monitor and Analyze Linux System Logs with `journalctl`
- 10 How to create a cutout text effect with a background image in CSS
- 11 How to use vw and vh units in CSS
- 12 Why $_REQUEST is Considered Harmful: A Security and Consistency Perspective
- 13 .htaccess URL rewriting tutorial: Optimize dynamic parameter URLs to friendly paths
- 14 How to style a data tag in CSS
- 15 How to fix a "could not be installed on this computer" error on macOS
Latest Tutorials
-
- Go language practical GraphQL
- 3813 2024-04-19
-
- 550W fan master learns JavaScript from scratch step by step
- 5135 2024-04-18
-
- Getting Started with MySQL (Teacher mosh)
- 3216 2024-04-07
-
- Mock.js | Axios.js | Json | Ajax--Ten days of quality class
- 3773 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.
