HTML Article Structure

2/18/2024By Tony

Share article
Report article

Articles are everywhere. They contain headings, paragraphs, images, and more. They are the heart of a webpage, what the webpage is trying to tell the user. Today, we'll introduce you on all the tags needed for writing an article on your webpage. Here is an example of an article structure:

HTML
Output

This is a basic structure of an article. We used <article> tags first. They tell the browser that all the elements and contents inside these tags are an article.
Then, we typed the <h1> heading tags called "Lorem".
Finally, we have <p> tags for paragraph and some lorem ipsum.
At the end, we added the </article> closing tag to close the <article> section.

Today, we created different tags to organize an article. The <article> tags are the wrapper. They helped organize and separate contents so it's easier to read the code. <h1> tags are very useful when writing long articles with headings and subheadings. <p> tags are also important for paragraphs. Have fun trying them!