+ 3
What is <div>?
div </div> <div and blah blah! > what are its uses, when it is use? help me understanding this stuff
7 Respostas
+ 15
<div> is only a container for HTML elements. Suppose you want to apply two different type of CSS font in your code, then you can put them in <div> container. Hence, <div>, as it stands division, is mainly use to divide HTML elements for styling and coding purposes.
<div class = "a" id = "b"> This stuff is used when you are using a lot of div containers. It can help in seperating different div tags. Div tags can have same class but id should be unique. Thus id helps in identifying each div uniquely and class is used for applying some common style to some divs.
+ 14
Sanjeet Patel The only difference between both is that div is a block level element while span is an inline element.
+ 5
ArtemisAthena456 Thank you for that,☺
+ 5
ArtemisAthena456 Ok, thanks😊
+ 4
ArtemisAthena456 Please can you tell me that how <span> is different from <div>,😃
+ 2
The <div> tag defines a division or a section in an HTML document.
The <div> element is often used as a container for other HTML elements to style them with CSS or to perform certain tasks with JavaScript.
+ 1
that is a div tag uses for make parts in your web page