Division is a synonym of section. 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. In the era of responsive web design the old trend of building websites using HTML tables can't be used anymore.You have to use div tags and style them as required. < article > < hgroup > < h1 > Apples < h2 > Tasty, delicious fruit! Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, PHP, Python, Bootstrap, Java and XML. HTML provides a set of container tags. Whereas most HTML tags apply meaning (p makes a paragraph, h1 makes a heading etc. See how to use the tag to group HTML elements and style them with CSS, how to apply class, id, style, and other attributes to tag. Div is the Tag which is defined as a division of the Html document. : HTML span is an inline element: HTML div element is used to wrap large sections of elements. Section tag grouped the generic block of related contents. Section. This is a common pattern for making responsive tables. A web page could normally be split into sections for introduction, content, and contact information. Structure Only: The useful and widely supported tag for setting alignment and style for sections of your web page. : HTML span element is … Difference Between HTML Section vs Div. The div is the only HTML element that can be used for the presentation and I believe that the introduction of the new HTML5 elements have turned the div into a non semantic bastard child of an affair with CSS and should be avoided at all cost. The article tag identifies a thing that can be independent from other things in a page. The DIV element is most useful in combination with the CLASS, ID, or LANG attributes. When an element is needed only for styling purposes or as a convenience for scripting, authors are encouraged to use the div element instead. This is one of the eternal mysteries of web development, up there with “why is it white-space: nowrap, not white-space: no-wrap?” and “why is CSS ‘gray’ a darker color than ‘darkgray’?”. The DIV element defines a generic block-level container, allowing authors to provide style or language information to blocks of content.The element may contain any inline or block-level element, including another DIV.. Both and is used to define parts of a web page. Elements such as
,