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: 3000702 |
Download: 232 |
Latest Downloads
Fantasy Aquarium
Girls Frontline
Wings of Stars
Little Flower Fairy Fairy Paradise
Restaurant Cute Story
Shanhe Travel Exploration
Love and Producer
The most powerful brain 3
Odd Dust: Damila
Young Journey to the West 2
24 HoursReading Leaderboard
- 1 How to Efficiently Get the Row Count from a PHP PDO SELECT Query?
- 2 Hydration error when installing NextJS 15
- 3 How Can I Swap Two DIV Positions Using Only CSS?
- 4 How Can I Subtract a Day from a Date in Python?
- 5 How Can I Perfectly Override a Python Dictionary Using Abstract Base Classes?
- 6 dungeon siege.dll - What is dungeon siege.dll?
- 7 How to Efficiently Label Encode Multiple Columns in a Pandas DataFrame?
- 8 Can You Retrieve Elements with Duplicate IDs Using getElementById()?
- 9 How to Resolve the \"Field \'id\' Doesn\'t Have a Default Value\" Error in MySQL?
- 10 Why Can't I Access an Array Value Directly Using an Expression in PHP?
- 11 When should you use NumPy arrays vs. matrices?
- 12 How to Implement Pre-Signed POST File Uploads to AWS S3 Using Go?
- 13 How Does Go\'s `time.Parse()` Handle Time Zones, and What Are the Best Practices for Accurate Time Parsing?
- 14 Can CSS Generated Content Be Selected by Users?
- 15 How Can I Properly Separate MySQL Data into Individual Excel Cells When Exporting with PHP?
Latest Tutorials
-
- Go language practical GraphQL
- 2117 2024-04-19
-
- 550W fan master learns JavaScript from scratch step by step
- 3543 2024-04-18
-
- Getting Started with MySQL (Teacher mosh)
- 1865 2024-04-07
-
- Mock.js | Axios.js | Json | Ajax--Ten days of quality class
- 2676 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.