Article HTML

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 a site and is thus used for used on Forum post, Blog post, News story and comments. The content written between the HTML article opening and closing tag is independent of other contents of the web page.


<!DOCTYPE html>
<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> 



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.

Please follow and like us:
Content Protection by