亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

HTML5 semantic elements

Introduction to semantic elements

The HTML5 standard adds many new semantic elements, which can be distinguished by type , including page structure, text content, forms, etc.

Here we mainly introduce the new elements in the page structure.

What is a semantic element?

##Simply speaking, a semantic element is an element ( tag) gives a certain meaning, and the name of the element is what the element wants to express.

For example, <header> means the header, and <footer> means the footer.

Features:

① Easy to maintain: using semantic elements will make it clearer The page structure information makes subsequent maintenance of the page easier. No need to look at the code again: find the div and then find the specific ClassName.

②Accessibility: Conducive to reading by screen readers and other assistive tools.

③ Beneficial to search engine optimization: After checking some semantic elements of HTML5, search robots can collect information about their indexed pages.

HTML5 Semantic Elements

<header>: Define the header area of ??a web page or article. Can include logo, navigation, search bar, etc.

<article>

<header>

<h1>Internet Explorer 9</h1>

<p><time pubdate datetime="2011-03-15"></time></p>

</header>

<p>Windows Internet Explorer 9 (abbreviated as IE9) was released at 21:00 on March 14, 2011</p>

</article>

Minimum browser version: IE 9, Chrome 5


Instructions for use:

①When used to mark the header of a web page, it can include logo, Navigation, search bar and other information.
②When used to mark the title of the content, consider using <header> only when the title also comes with other information. Under normal circumstances, use <h1> to mark the title.

<main>: Define the main content of the web page.

Minimum browser version: IE not supported, Chrome 35

<footer>: Define the footer area of ??the web page or article. Can include copyright, filing and other content.

<footer>

<p>Posted by: Hege Refsnes</p>

<p><time pubdate datetime="2012-03-01"></time></p>

</footer>

Browse Minimum browser version: IE 9, Chrome 5


Instructions for use:
①When used as the footer of a web page, it usually contains content such as website copyright, legal restrictions, links, etc.
②When used as the footer of an article, it usually contains information about the author.

<nav>: Mark the page navigation link. A zone containing multiple hyperlinks.

<nav>

<a href="/html/">HTML</a> |

<a href="/css/">CSS</a> |

<a href="/js/">JavaScript</a> |

<a href="/jquery/">jQuery</a>

</nav>

Minimum browser version: IE 9, Chrome 5


Instructions for use:
①A page can contain multiple <nav> elements, such as page navigation and related article recommendations.
②The contact information and authentication information in the <footer> area do not need to be included in the <nav> element.

<section>: Usually marked as an independent area in the web page.

<section>
<h1>WWF</h1>
<p>The World Wide Fund for Nature (WWF) is....</p>
</section>

Minimum browser version: IE 9, Chrome 5


Instructions for use:
can be used as an independent area in the web page , such as a section in the article.

##<article>: A complete and independent content block; it can contain independent <header>, <footer> and other structural elements. Such as news, blog posts and other independent content (excluding comments or author profiles).

<article>

<h1>Internet Explorer 9</h1>

<p>Windows Internet Explorer 9 (abbreviated as IE9) was released at 21:00 on March 14, 2011. </p>

</article>

Minimum browser version: IE 9, Chrome 5

<aside>: Definition A block of content outside of the surrounding main content. Such as: annotation.

<p>My family and I visited The Epcot center this summer.</p>

<aside>

<h4>Epcot Center</h4>

<p>The Epcot Center is a theme park in Disney World, Florida.</p>

</aside>

Minimum browser version: IE 9, Chrome 5

<figure>: Represents an independent piece of content, often used in conjunction with <figcaption> (indicating title), and can be used for pictures, illustrations, tables, code snippets, etc. in articles.

Minimum browser version: IE 9, Chrome 8

<figcaption>: Define the title of the <figure> element.

Minimum browser version: IE 9, Chrome 8

Diagram:

1016.png


Continuing Learning
||
<!doctype html> <html> <head>  <meta charset="utf-8">  <title>php.cn</title>  </head> <body> <article> <header> <h1>HTML5為什么火</h1> <p><time pubdate datetime="2016-05-03"></time></p> </header> <p>以往,我們在Web上還只是上網(wǎng)看一些基礎文檔,但現(xiàn)在,Web是一個內涵非常豐富的平臺。 和以前版本不同的是,HTML5并非僅僅用來表示W(wǎng)eb內容,在這個平臺上還能非常方便的加入視頻、音頻、圖象、動畫,以及同電腦的交互。<br /> HTML5的意義在于它帶來了一個無縫的網(wǎng)絡,無論是PC、平板電腦,還是智能手機都能很方便的瀏覽基于HTML5的各類網(wǎng)站。 <br /><br /> 對用戶來說好處在于,我們手機上的App也會越來越少,用H5實現(xiàn)的游戲,不需要下載后安裝, 就能立即在手機界面中生成一個APP圖標,使用手機中的瀏覽器來運行,新增的導航標簽也能更好的幫助小屏幕設備和視力障人士的使用。 H5擁有服務器推送技術,能讓用戶擁有更好的網(wǎng)頁上的實時聊天,更快的網(wǎng)游體驗。 </p> </article> </body> </html>
submitReset Code