HTML <article> tag
The <article> tag specifies a section or a content that could stand independently. Mainly, it is used in writing blog or any other forum post, making newspaper, magazine etc.
Type: Block Element
Example of <article> tag
<article> --- content here --- </article>
Supported Browsers
| Tag | Chrome | Internet Explorer | Firefox | Safari | Opera Mini |
|---|---|---|---|---|---|
| <article> | 6.0 or higher | No | 4.0 or higher | 5.0 or higher | 11 or higher |
Full code example
<!DOCTYPE html> <html> <head> </head> <body> <article> <h2> Blog name </h2> <p> Blog content </p> </article> </body> </html>
Output on the browser
Blog name
Blog content
Since <article> is a block-level element, it will give a line break before and after.
More reference
<article> element is functionally similar both in style and display with <div> element. But in order to write a well defined section, use <article> tag because it provides more semantic information to the screen readers, search engines like Google.
Note that <article> element is new in HTML5 but not supported in HTML 4.01.
