What is the use of HTML article tags? Introduction to how HTML article tags are used

Source: Internet
Author: User
This article mainly introduce to you about HTML5 article label usage and use example explanation, hope everybody can understand, next we look at this article about HTML5 article label.

First, let's briefly introduce the following article:

HTML5 <article> represents a piece of independent content in the page that is not relevant to the context, such as an article in a webpage or an article in a newspaper.

Article differs from other div CSS layout structures, article main layout article class content.

Article Syntax code:

<article> content </article>

Article is there to start with a closed pair of HTML tag elements.

Start with <article> to end the closure with </article>.

Now, let's talk about the instructions for using the article tag:

Article is a new tag for HTML5, and its basic syntax functions like previous Div, p, span tags, you can set CSS directly using the Style property tag, or use class or ID to bring in external CSS styles.

<article class= "AAA" > Content </article>
<article id= "BBB" > Content </article>

Article mainly is the layout article, content aspect content.

Take a look at the use examples of HTML5 article tags:

Here is an example of using the article label layout to learn about article element tags. The following is the full HTML5 instance code: <! DOCTYPE html>

Code effects for article tags:

Is the code, basically can see understand, what do not understand can leave a message below

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.