Html Section Class
The html section tag is used to represent a section within an article.
Html section class. Here is a brief explanation of each sectioning element and how they are used. The class attribute can be used on any html element. The html section element represents a standalone section which doesn t have a more specific semantic element to represent it contained within an html document.
Any given web page or article could have many sections. The sectioning elements in html5 are nav aside article and section. If a part of the content deserves its own heading and that heading would be listed in a theoretical or actual table of contents it should be placed in a section.
When an element is needed only for styling purposes or as a convenience for scripting authors are encouraged to use the div element instead. Body is also kind of a sectioning element since all content lying inside of it is part of the default document section. For example a homepage could have a section for introducing the company another section for news items and another section for contact information.
Html character sets html ascii html ansi html windows 1252 html iso 8859 1 html symbols html utf 8 exercises html exercises css exercises javascript exercises sql exercises php exercises python exercises jquery exercises bootstrap exercises java exercises c exercises c exercises. The class name is case sensitive. It can be used within articles in the header or footer or to define navigation.
It makes sense to use the section element to provide extra context for the parent element. The section tag is used when requirements of two headers or footers or any other section of documents needed. The section tag divides the content into section and subsections.
The section tag was introduced in html 5. Classes are used by css and javascript to select and access specific elements. The html class attribute specifies one or more class names for an element.