What new attributes did html5 introduce?
The new attributes introduced by html5 are: seamless, srcdoc, sandbox, manifest, charset, sizes, base, defer, defer, async, media, hreflang, ref, reversed, start, etc.

The operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.
What new attributes are introduced in html5?
New attributes:
Attributes added to js.
If there are no above two attributes, the execution order is loading (downloading) first A src, then execute its onload, and then execute it synchronously downwards. The defer attribute already exists before h5. Enter delayed loading (delayed execution). It will first load (download) the content of the file in src, and then wait for the page. After all loading is completed, the js.async attribute in onload is loaded asynchronously. It will execute onload immediately after loading src, and will also continue to load the page in the above execution sequence. The alert display will display b first and then a
Add the style code of the small icon to the tag in the webpage
Ordered list ol: Added start (list starting value), reversed (whether reversed) menu menu type attribute (3 menu types) embedded css style: define a style block inside the label (scoped), only valid within the style tag. Inline frame: iframe element, seamless, borderless, and borderless are added. srcdoc defines the content of the inline frame.
- ##
- ##
Define the offline application files that the page needs to use, generally Place it in the tag
charset attribute: one of themeta attributes that defines the character set of the page
sizes attribute :New attribute, when link’s rel="icon", is used to set the icon size
base attribute:script tag attribute, indicating that after the script is loaded, it will only be executed when the page is also loaded (delayed execution)
async attribute :script tag attribute, executed immediately after the script is loaded (the browser will parse the following content during operation), even if the page has not been loaded yet (asynchronous execution)
media attribute:Element attribute: Indicates which device is optimized
hreflang attribute:< ;a> attribute, indicating the language used by the URL pointed to by the hyperlink
ref attribute:attribute, defining whether the hyperlink is an external link
reversed attribute:- attribute, defines whether the serial number is flashback
start attribute:
- attribute, defines the starting value of the serial number
scoped attribute:
The attribute of the embedded CSS style, defines that the style is limited to Elements with this embedded style are suitable for single-page development
Recommended tutorial: "
html video tutorialThe above is the detailed content of What new attributes did html5 introduce?. For more information, please follow other related articles on the PHP Chinese website!
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
1377
52
Table Border in HTML
Sep 04, 2024 pm 04:49 PM
Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.
HTML margin-left
Sep 04, 2024 pm 04:48 PM
Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.
Nested Table in HTML
Sep 04, 2024 pm 04:49 PM
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.
HTML Table Layout
Sep 04, 2024 pm 04:54 PM
Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.
HTML Input Placeholder
Sep 04, 2024 pm 04:54 PM
Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs.
HTML Ordered List
Sep 04, 2024 pm 04:43 PM
Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively
Moving Text in HTML
Sep 04, 2024 pm 04:45 PM
Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement.
HTML onclick Button
Sep 04, 2024 pm 04:49 PM
Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively.


