Division Tag - <div>

This lesson discusses the Division <div> tag and its usage in web development.

This tag is used to define a division or section of the document. It is a block-level element that can contain other block-level or inline elements.

<div>
    <h1>Hello, World!</h1>
    <p>Welcome to my website.</p>
</div>

<div>
    <img src="https://avatar.iran.liara.run/public/boy" alt="Image" />
    <img src="https://avatar.iran.liara.run/public/girl" alt="Image" />
</div>

The above code shows an example of the <div> tag. This tag is used to define a division or section of the document, which can contain other elements such as headings, paragraphs, and images.