Answers for "use of div and span tag in html"

1

Div and span

<div> and <span> elements are used to define parts of an HTML document, usually
for styling/CSS purposes. <div> is regularly used for sections, and <span> is
used for specific elements like inside a <p> element.
Posted by: Guest on July-13-2021
2

span tag

The <span> tag is an inline container used to mark up a part of a text,
 or a part of a document. The <span> tag is easily styled by CSS or manipulated
 with JavaScript using the class or id attribute. The <span> tag is much like 
the <div> element, but <div> is a block-level element and <span> is an inline 
element.   :)
Posted by: Guest on August-03-2021

Browse Popular Code Answers by Language