HTML Attributes HTML 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>
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
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