0

What is <div>and</div>

What is attributes

31st May 2022, 7:54 AM
Purple Phoenix 7
Purple Phoenix 7 - avatar
3 Answers
+ 4
Opening and closing tag for div element šŸ’•šŸ’•šŸ’•
1st Jun 2022, 1:01 AM
Rakshit Pahel
Rakshit Pahel - avatar
+ 2
Attributes are things we place inside opening tag, this is mostly written like name="value". It is used to tell browser how to show something on screen, to give more information about document, elements.... Like: <a href="about.html">About Page</> Here href="" is attribute used to tell browser where to redirect user when he click on link
31st May 2022, 8:33 AM
PanicS
PanicS - avatar
+ 1
<div> and </div> - are opening and closening tag for div element, this element is used to make some "box", to group your other element. When you group element you can easier select them and add css or js. Like: <div class="about"> <h1>My Title</h1> <p>My about info</p> </div> In css you can: .about { background-color: red; }
31st May 2022, 8:30 AM
PanicS
PanicS - avatar