Section. HTML is all about applying meaning to content. The HTML Content Division element (div) is the generic container for flow content. Hey, that’s great. Alternatively, you can say, the div is a container that encloses other HTML block-elements to format them with CSS. This HTML tutorial explains how to use the HTML element called the section tag with syntax and examples. In the following example, we see an article (part of a larger web page) about apples, containing two short sections. Syntax:
Section Contents
Section tag is used to distribute the content i.e, it distribute the sections and subsections. Here second Div placed next to the first Div because we set the second Div float:left;. The HTML
element represents a standalone section — which doesn't have a more specific semantic element to represent it — contained within an HTML document. HTML Elements
, and
are all block elements. The
element represents a independent item section of content. A few days ago, I was having a chat with some friends, one of whom asked me the difference between
and
in HTML. Section tag grouped the generic block of related contents. The main advantage of the section tag is, it is a semantic element, which describes its meaning to both browser and developer. The following example shows how place Div side by side in an HTML page. Instead, it's used to group content so it can be easily styled using the class or id attributes, marking a section of a document as being written in a different language (using the lang attribute), and so on. : HTML span is an inline element: HTML div element is used to wrap large sections of elements. A web page could normally be split into sections for introduction, content, and contact information. This is a common pattern for making responsive tables. But wait! In context|military|lang=en terms the difference between section and division is that section is (military) a group of 10-15 soldiers lead by a non-commissioned officer and forming part of a platoon while division is (military) a formation, usually made up of two or three brigades. Semantic HTML elements are those that clearly describe their meaning in a human- and machine-readable way. With the div tag, you can group large sections of HTML elements together and format them wit Content categories: < article > < hgroup > < h1 > Apples < h2 > Tasty, delicious fruit! I disagree with HTML5 Doctor’s opinion that a site search form should be wrapped in a