HTML element: Difference between revisions

Content deleted Content added
fixed spelling mistake: insstead
Links and anchors: additionally the attribute "title" may be set to a hover box text, some informative text about the link:
Line 242:
 
<a>, </a>
Creates an element that becomes a [[hyperlink]] with the "href" attribute set to a [[URL]]; andadditionally becomesthe an anchor with theattribute "nametitle" attributemay be set, which preceded byto a hashhover signbox actstext, assome ainformative linktext target. Any element can be made into an anchor by usingabout the 'id' attribute, so using <a name="foo"> is not necessary.link:
 
<a href="''URL''" title="''hover box text''">''link label''</a>
 
Depending on the browser, when the cursor hovers over the link, it changes into a hand with a stretched index finger and the hover box text pops up, not in a regular window, but in a special hover box, which disappears when the cursor is moved away.
 
Alternatively, the anchor becomes an anchor with the "name" attribute set, which preceded by a hash sign acts as a link target. Any element can be made into an anchor by using the 'id' attribute, so using &lt;a name="foo"> is not necessary.
 
===Images===