Tutorials

KodeKite Tools

HTML
Flexbox
SVG
Canvas
HTML Tutorial

More


HTML Title Attribute
Title Attribute

Title attribute is used as tooltip it is used to provide information about element, title attribute is used in any open <tag name> tag

Syntax

<tag title=some information>Content</tag>


Here some information means you can provide any information using title attribute.


Example

Hover me


hover your cursor over text Hover me you will see a small tootip box in which I am paragrapg is written.


Practice Task

Open notepad or any other text editor, follow the following points.


  • Create any HTML element
  • Use title attibute inside it
  • apply text I am tootip to element
  • Now hover or put your cursor on text
  • Use <br /> if neccessary otherwise leave it

save file with name task.html or task.htm and then open it using any browser and see results.


Solution

Hover me


A small tootip box appears whenever you hover on text "hover me".


Note:

Title attribute is called Tooltip.