![]() |
VOOZH | about |
In this article, we will see how to represent the article in HTML.
The <article> tag is one of the new sectioning element in HTML5. The HTML <article> tag is used to represent an article. More specifically, the content within the <article> tag is independent of the other content of the site (even though it can be related).
In other words, the article element represents a component of a page that consists of self-contained composition in a document, page, or site. For example - in syndication.
A potential source for Article Element are:
This tag is most often used in two contexts:
Either way, it is similar to the <div> element and displays the stylish work the same. However, using the <article> element instead of <div> provides more semantic information to screen readers, search engines, and third-party applications.
Note: This tag does not render as anything special in a browser, you have to use CSS for that.
Default CSS setting: Most browsers will display the Article element with the following values.
Syntax:
<article> {
display:block;
}
Example: This example using inline styling in an article element.
Output:
👁 Image