HTML <article> Tag
The HTML <article> element is used to specify an independent self-contained article like a big story and huge article in a document, page, application, or site and is thus used for use on Forum posts, Blog posts, News stories, and comments. The content written between the HTML article opening and closing tag is independent of other contents of the web page.
Example:
<!DOCTYPE html> <html> <body> <article style="background-color:crimson; color: white; text-align: center; width: 50%; border: 5px solid yellow; padding:20px"> <p>HELLO WORLD!! Today is a great day. Why not learn something new with us? Let us start with HTML.</p> </article> </body> </html>
Explanation:
In the above example, we defined an independent self-contained article.
Global Attributes:
The HTML Global attributes are supported by the HTML <article> tag.
Event Attributes:
The HTML Event attributes are supported by the HTML <article> tag.
Supporting Browsers:
Chrome, IE, Firefox, Opera, and Safari.