


HTML5 study notes: the difference between html5 and traditional html _html5 tutorial skills
The changes mentioned in this knowledge point refer to the changes defined based on HTML4, mainly as follows:
1.HTML5 The file extension (.html or .htm) and content type (text/html) remain unchanged.
2. In HTML5, version declarations are deliberately not used, and one document will apply to all versions of HTML.
3. Starting from HTML5, it is recommended to use UTF-8 for the character encoding of files.
4.HTML5 ensures maximum compatibility with previous HTML versions.
In order to ensure compatibility, we need to start with the element. In HTML5., the tag of the element can be omitted. Specifically, the tags of elements are divided into three types: "the end tag is not allowed to be written", "the end tag can be omitted" and "the start tag and the end tag can be omitted".
• Closing tag elements are not allowed: area, base, br, col....
• Closing tags can be omitted: li, dt, dd, p, rt...
• Both the start tag and the end tag can be omitted: html, head, body....
2. New structural elements
• section element representation A content block in the page, such as a chapter, header, footer or other part of the page;
• The article element represents a piece of independent content in the page that is not related to the context, such as an article in a blog or An article in a newspaper;
•aside element represents auxiliary information related to the content of the article element in addition to the content of the article element;
•header element represents the title of a content block or the entire page in the page ;
•hgroup element is used to combine the titles of the entire page or a content block in the page;
•footer element represents the footer of the entire page or a content block in the page. Generally speaking, it will contain the name of the creator, the date of creation, and the creator's contact information;
•nav element represents the navigation link part of the page;
•figure element represents a piece of independent flow content, generally representing a document An independent unit in the main stream content, use the figcaption element to add a title to the figure element group
2. Other new elements
• The audio element defines audio, such as music or other audio streams;
•The embed element is used to insert various multimedia, the format can be Midi, Wav, AU, MP3, etc.;
•The mark element is used to visually present to the user those items that need to be highlighted or highlighted. Text, a typical application is to highlight search keywords to users in search results;
•progress element represents a running process
•ruby element represents ruby comments (Chinese phonetic or characters)
•rt The element represents the interpretation or pronunciation of a character (Chinese phonetic phonetic or character)
• The rp element is used in ruby comments to define the content displayed by browsers that do not support ruby elements.
•The wbr element represents soft line wrapping, and when the width is not enough, it will actively wrap here
•The canvas element represents graphics, such as charts and other images
•The cammand element represents command buttons, such as radio buttons , check box or button
•The details element represents the detailed information that the user requires and can obtain
•The datagrid element represents a list of optional data, which is displayed in the form of a tree list
•The keygen element Represents a generated key
• The output element represents different types of output, such as the output of a script
• The source element defines media resources for media elements (such as

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.

This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.

Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement.

Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively.
