Attribute | Code / Value | Description / Use |
class | classname | Defines a classname for an element |
id | id | Defines a unique id for an element |
style | style_definition | Defines a style for an element |
title | tooltip_text | Defines title or description of an element, if it is hovered, it will be shown as 'tooltip' |
From the table above, we know that every tag element has its own attribute.
For adding picture with title or tooltip, we can use this script:
<img src="IMAGE URL" title="TITLE OR TOOLTIP">
Example:
<img src="http://i568.photobucket.com/albums/ss123/Vektanova/Contents/RSS_LOGO-wwwvektanovacom.png" title="This is a logo of RSS">
It will be:
Let's try hover the mouse cursor on the logo above, you will see a tooltip "This is a logo of RSS" !!!
Title :
Learning HTML - General Attributes
Description :
Attribute Code / Value Description / Use
class classname Defines a classname for an element
id id Defines a unique id for an...
Rating :
5