Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use HTML5 & lt;article> tag elements

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

This article mainly introduces how to use HTML5 tag elements, the article is very detailed, has a certain reference value, interested friends must read it!

Introduction and grammatical structure of html article

Article English translation: articles, articles, reports, articles and other meanings.

Html5 represents an independent pattern on a page that has nothing to do with concave-convex text, such as an article on a web page or an article in a newspaper.

Article gap in addition to DIV CSS layout structure, article primary agency article model.

Article syntax code:

Form

Article is a split face with a closed pair of HTML tag elements.

To split the face, to close with the end.

2. Note on the use of article tags

Article is a new tag for HTML5, and its syntax is based on , which is different from DIV, p, span and other tags in the early years. You can directly use the style attribute tag to configure CSS, or use class or id to introduce external CSS styles.

Formal mode

Article principal if the agency article, the form of the model.

III. Examples of html5 article usage

Here we use an example of article tags to understand the tags of article elements.

1. Incomplete HTML5 instance code

Article instance CSS5article {color:#000} article H2 {color:#F00} article problem

The first paragraph of the article, mode CSS technical means on the CSS5 network.

The second paragraph of the article, the mode CSS ingenious skill on CSS5 net.

Duan Luo San, mode CSS martial arts on CSS5.

2. Screenshot of HTML5 instance

The above is all the content of this article "how to use HTML5 tag elements". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Tags patterns articles examples elements articles forms organs paragraphs grammar code content structure closure irrelevance value interest bump foundation boy Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi vpn MariaDB Docker OPPO Reno