Html class2
-
Upload
harisha-chigurupati -
Category
Education
-
view
150 -
download
1
description
Transcript of Html class2
HTML AttributesHTML elements can have attributes
Attributes provide additional information about an
element
Attributes are always specified in the start tag
Attributes come in name/value pairs
like: name="value"
HTML links are defined with the <a> tag. The link
address is specified in the href attribute:
<a href="http://www.yahoo.com">This is a link</a>
Links:There are 2 types of linking
Text linking Image linking
Text linking:$ Normal linking$ Web page$ Email$ Named anchor
Web page using text linking:
Attributes:Syntax:Href means hyper link reference fileFont size<a href="image insert.html"
style="color:yellow;text-decoration:none" title="click here">link images web page</a>
After applying attributes:
<a href="http://www.google.com" style="color:purple;text-decoration:none" title="goto web">connect to internet site</a><br>
<a href="mailto:[email protected]" style="color:maroon;text-decoration:none" title="open mail box">mail box</a>
Named anchor:
syntax
<a href=“#q1”>Q1</a>Question1:<a name=“q1”></a>Up , downIf we press them the page should be moved
to particular referenced position
Image linking:<a href="flower.jpg" title="click"><img src="flower.jpg" width="155" height="175" border=4 style="border-color:gold"</a>
After clicking that image
Some more:<a href="h1.html" title="click“><img src="ranbow.jpg" width="65" height="65" onmouseover="this.src='flor2.jpg'"onmouseout="this.src='ranbow.jpg'"></a>