Basic of html and css
. Some important basic element uses in html and css
1. Styleing
For style any line in document we use css file , and css file link with head tags, we give proper location and path of the folder and , it is
show the relation beetwen html and css file
Example…
<head>
<link
rel="stylesheet" href ="style.css"/>
</head>
Output- link
with html file
2. Tabs
In body we can write a code for
new tab in this we can create any type of tab in our website ,in body
<ul>tags open and </iu>tages close,
we write the code between them …
For example…
<body>
<ul>
<li><a href =”#”> HOME</a>
<li>
<li>a href =”#”> ABOUT
US</a> </li>
<li><a
href="#">CONTACT</a></li>
<li><a
href="#">MAIL</a></li>
</ul>
</body>
.out put
.HOME
.ABOUT
US
.CONTACT
.MAIL
Where-
a =ancher
ul=unordered
list
.for horizontal tab
Open css
file and write the code –
li {
display: inline;
}
.output
HOME
ABOUT US CANTACT MAIL
. for
spaceing words –
In css file
write the code –
li{
display: inline ;
padding-right: 10 pix
}
Out put
HOME ABOUT US CONTACT MAIL
.For big
word and touch color chaged and underline-
In css
file write code
a: hover {
text –decoration =underline;
front –size=30px;
color: black;
}
Output-
HOME ABOUT US CONTACT
MAIL
Hope it is
usefull for understanding html and css language …..
No comments