Explain about divions ( tag) Or Formatting blocks in html.
https://www.computersprofessor.com/2019/05/explain-about-divions-tag-or-formatting.html?m=0
Explain about divisions (
tag) Or Formatting blocks in html.
The HTML
tag is used for defining a section of
your document. With the div tag, you can group large sections of HTML elements
together and format them with CSS.
Using
tag changing the appearance of
block elements, any formatting that need adding inside the
tag
as follows.
Syntax: < div class = “ any element”>
< P > - - -
< h1 > - - -
Division is a logical part of the document and we
cant treat divisions as individual items.
The difference between the div tag and the span tag is that
the div tag is used with blocklevel elements whilst the span tag is used with
inline elements.
Example
Welcome to our website. We provide tutorials on various
subjects.