article tag, after using it, it feels similar to P (paragraph), a semantic tag.
Define content other than article (can be used as a sidebar of the article). Semantic tags.
html There are several categories of tags, one of which is the tag of web page layout, such as the most commonly used div.
Putting aside the previous traditional web page layout (table layout), let’s talk about the current web page layout-div+css.
For example, if you want to make the simplest web page with one row and two columns, the outer layer is a div container, and there are two divs inside. The left is the navigation menu and the right is the content. In order to realize the web page layout, you You must use css positioning. In order to facilitate positioning, you must set an id or class for the div. We will use id for now.
Outer container div: id="wrap", inner left div: id="aside", inner right div: id="article".
Why should the left navigation id be set to aside instead of div1 and div2?
Because aside gives div meaning, it brings convenience to current developers and later maintainers. As soon as I see
Article and aside are just like divs, they are just layout tags. Except for the different tag names, other functional meanings are basically the same. The fonts, backgrounds, borders, etc. in article and aside do not have any special styles. It's not that there will be any special effects when the mouse clicks on the aside tag;
because they are just simple tags. Since the function is exactly the same as that of div, why does html5 go to unnecessary lengths and produce several redundant "divs"?
There is a saying: What exists is reasonable.
Because many website layouts are repetitive. Many websites around the world have navigation on the left and text content on the right. Then set the id to the div to use css layout. Because of this demand, html5 is user-friendly. Several tags have been added to simplify development for developers. After all, which one is better,