CodesJava

Easy learning with example program codes

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.

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>

Output:

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.

Please follow and like us:
error
Posted in HTML   









Copyright © 2019 CodesJava DMCA.com Protection Status