HTM-01700 | What is the element?
- ‘Div’ stands for division
- Used to divide content into logical sections
- The
<div>
element is used to group block-elements to edit with CSS. - The
<div>
element should be used only when no other semantic element (such as<article>
or<nav>
) is appropriate.- The best example to describe a
<div>
element is to consider it similar to clothespins. Clothespins are usually or almost always are applied Two for each piece of clothing.(
<div> </div>
)
- One can not work without the other, otherwise the cloth will fall. ex:
<div>
alone can not work. The purpose of them is so that, they can hold a block of code ex: (a cloth in this case)
- The best example to describe a
- They control the structure, space, width, layout of a given object as per your desire.
- Click here to view a
<div>
element example.
{post_title}
{post_content}
{associated_insight_resource.post_title}
{associated_insight_resource.resource_link}
{associated_insight_resource.insight_type }