Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use html5 & lt;section> element tags

Shulou Source: shulou.com Published: 2022-06-01 12:40:42 09月10日 Update

This article mainly shows you "how to use html5 element tags", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to use html5 element tags" this article.

New growth tag in HTML5.

I. introduction and grammatical structure of section

Section is translated into English as:

The meaning of part, section, section, chapter, section, etc.

The html5 section element shows a content area in the page, such as a chapter, footer, header, or other part of the page organization. Section may be used with question tags such as H2, h3, h4, h5, and h6 to flash the structure of the organizational document.

Syntax:

Pattern

Section is a pair of earliest to closed element tags.

II. Instructions for the use of section

Section uses the same syntax as DIV, P and other element tags in the early years, except that new structural element tags can be used in HTML5.

The same may use id and class, in the DIV CSS organization about the section tag equipment rich CSS format.

Such as:

Formal mode

HTML5 structure the content of the article may be used appropriately.

Compatible with mainstream readers such as browsers above IE8, google tracker, Apple browser, etc.

III. Easy examples of html5 section

1. The incomplete source code of the example:

Section instance CSS5.abc {color:#F00}

Theme one

Article mode CSS Miaoji on the CSS5 network.

Theme two

DIV CSS excellent skills to learn CSS5 network.

2. Use screenshots for section tags

The above is all the content of the article "how to use html5 element tags". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Tags elements content structure patterns articles grammars topics examples articles browsers chapters learning help browsing appropriate but meaning mainstream strange Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia vpn Shulou Technology Xiaomi Huawei