0
What is <div>and</div>
What is attributes
3 Answers
+ 4
Opening and closing tag for div element ššš
+ 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
+ 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;
}