How to Use DIV and Span in HTML and CSS
How to Use DIV and Span in HTML and CSS
This article will help you to understand and use the "div" and "span" in HTML and style them with CSS. The main purpose of using "div" is to divide the body into smaller divisions, while "span" is used to select a part of line.
Steps

Using div

Open Notepad and type down the basic HTML structure. It basically contains body inside HTML.

Put the

tag inside the body tags. You must remember that div is a container tag so it must have a
after it, like
is used to make divisions on the page, so you can even use div tags inside a
.

In the