×

html · level 1 · unit 2 · lesson 4

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

An adds an extra detail to a tag.

An attribute is an extra detail you write inside an opening tag. It has a name, an equals sign, then a in quote marks, like title="A note".

The title attribute gives an element a little note. Rest your mouse on the element and the note pops up beside it.

Attributes only ever go in the opening tag, after the tag's name and a space. The closing tag stays plain. Always put the value between two quote marks.

<p title="He is a very good boy">This is Biscuit.</p>

Press show my page to see it here.

Phones have no mouse to rest, so never hide anything important in a title.