Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the differences between HTML5 tags and HTML4 tags

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces the "what are the differences between HTML5 tags and HTML4 tags" related knowledge, editor through the actual case to show you the process of operation, the method of operation is simple and fast, practical, I hope that this "what is the difference between HTML5 tags and HTML4 tags" article can help you solve the problem.

(1) changes in concepts:

HTML5 focuses on content and structure, not on performance.

Navigation related data

Menu

Title: HTML5 special video tutorial

(2) statements and labels:

HTML5 simplifies more declarations and tags and makes detailed rules on compatibility, abolishing some elements and adding some elements.

Introduction to HTML5 tag syntax and new tags

1. Syntax label:

(1) Terminator tags that are not allowed to be written: area, basebr, col, command, Embed, hr, img, input, keygen, link, meta, param, source, Track, wbr

(2) tags with Terminator can be omitted: li, dt, dd, p, rt, optgroup, option, Colgroup, thread, tbody, tr, td, th

(3) tags that can be omitted completely: html, head, body, colgroup, tbody

2. Add tags:

Tag defines an article

Tag defines the sidebar of the content section of the page

Tag defines audio content

Tag definition picture

Tag defines a command button

Tag defines a drop-down list

Tag defines the details of an element

Tag defines a dialog box (dialog box)

Tags define external interactive content or plug-ins

Tags define a set of media content and their title tags define the bottom of a page or area

Tag defines the header of a page or area

Information about a block in the tag definition file

Tag defines a generated key value in the form

Tag defines tagged text

Tag definition measurementwithin apredefinedrange

Tag definition navigation link

Tag defines some output types

Mark the process of defining a task

Tags are used in Rubyannotations to tell browsers that do not support Ruby elements how to display

Interpretation of rubyannotations by tag definition

Tag definition rubyannotations.

Tag defines an area

Tag defines media resources

Tag defines a date / time

Tag defines a video

Simple example of HTML5

The code is as follows:

HTML5 project of PHP100 Chinese website

Header,nav,article,footer {border:solid 1px # 666 * paddingVANG 5px}

Header {width:500px}

Nav {float:left;width:60px;height:200px}

Article {float:left;width:428px;height:200px}

Footer {clear:both;width:500px}

Document.createElement ('article')

Document.createElement ('nav')

Document.createElement ('header')

Navigation related data

Menu

HTML5 special video tutorial

Issue date: 09:00

Spring Festival

Test related content

Address

This is the end of the content about "what are the differences between HTML5 tags and HTML4 tags". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report