What are article
tags?
In HTML, article
tags are used to represent self-contained, complete articles or blocks of content. Typically used to contain blog posts, news stories, forum posts, or other self-contained chunks of information.
article
Basic syntax of tags
Following is the basic syntax of article
the tag :
<article>
<!-- 在这里放置您的内容 -->
</article>
Note that article
tags must be closed, and any text should be placed between the opening and closing tags.
article
Properties and methods of tags
Here are some commonly used article
tag attributes and methods:
id
Attribute: used toarticle
specify a unique identifier for the element, which can be manipulated by JavaScript or CSS.class
Attribute: It is used toarticle
specify one or more class names for the element, which can be styled by CSS.style
article
Attributes: Used to specify inline styles for an element, overriding style settings in any external stylesheets.
Here's a simple article
example that contains a article
element with a class name: