some doubts related to mydivexample.html
Sir,
I have a couple of doubts regarding mydivexample.html provided in the css tutorial.
1) why have you declared some ids twice?
for ex: #leftpart{
float:left;
width:200px;}
#leftpart{
background-color: #FDE07B;
padding:10px;
}
2) What is the meaning of syntax below used in declaring styles?
#homebutton ul
#homebutton ul li
#homebutton ul li a
#homebutton ul li a:hover
#homebutton ul li #active
3) <li class="style1" style="margin-bottom:15px;">
<a href="#" class="style5" id="active">About us </a></li>
In the above code, why do we use a separate class 'style5', though we are already using 'style1' class in the list tag? Also, why to use a inline style, when we could have included in the style1 class?
4) <div id="login2"><input name="" type="text" / style="width:100px;"></div>
Why do you use / before inline style?