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

Explanation and usage of New tags in Html5

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

Html5 in the new tag explanation and usage, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.

It hopes to reduce browser requirements for rich web application services (plug-in-based rich internet application,RIA) that require plug-ins, such as Adobe Flash, Microsoft Silverlight, and Sun JavaFX.

HTML 5 provides some new elements and attributes that reflect typical modern usage sites. Some of them are technically similar to tags, but have certain meanings, such as (site navigation block) and. This kind of tag will facilitate the indexing of search engines, small screen devices and the use of the visually impaired. At the same time, it provides new functions for other browsing elements, through a standard interface, such as and tags.

Some outdated HTML 4 tags will be removed, including those used purely for display effects, such as and, because they have been replaced by CSS. There are also some network behaviors (via) through DOM.

Let's take a look at some of the new tag uses provided by HTML 5 and the differences with HTML 4.

Tags define external content. For example, a new article from an external news provider, or text from blog, or text from a forum. Or from other external sources.

HTML5:

HTML4:

The tag defines something other than article. The content of aside should be related to the content of article.

The content of the HTML5:Aside is independent, but should be relevant to the content of the document.

The content of the HTML4:Aside is independent, but should be relevant to the content of the document.

Tags define sounds, such as music or other audio streams.

HTML5: your browser does not support audio tags.

HTML4:

Tags define graphics, such as charts and other images. This HTML element is designed for client-side vector graphics. It has no behavior of its own, but it presents a drawing API to the client JavaScript so that the script can draw everything you want to draw onto a canvas.

HTML5:

HTML4:

Tags define command buttons, such as radio buttons, check boxes, or buttons.

HTML5:

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

Development

Wechat

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

12
Report