demosthenes.info

A blog by Dudley Storey on , , , , , , and anything else that strikes his fancy.

featured articles

popular favourites

HTML Attributes

Attributes provide information about content. Attributes are placed inside an opening HTML tag. All XHTML attributea are specified as follows: <tag attribute = " "> </tag>. HTML5 attributes usually take the same format, but may occassionally be single words (such as required for form elements or autoplay for media).

It is a good idea lways place attribute values, which can be numbers, letters, words or file paths, inside double quotes, as shown above. Single quotes may also be used. In HTML5, the quotes may be dropped entirely if the value is a series of characters or numbers without any special characters. This is not an advised practice until you are very experienced.

Previously we specified the word SAIT as being an acronym, but the tag we used did not say what SAIT was an acronym for. We will now use the title attribute to specify this.

  1. I am a student in <acronym title="Southern Alberta Institute of Technology">
  2. SAIT</acronym>

web developer guide

featured comment

by JoelB in Goodbye, JQuery Validation: HTML5 Form Errors With CSS3

what i'm reading

A Storm of Swords: A Song of Ice and Fire: Book Three
A Storm of Swords: A Song of Ice and Fire: Book Three

what i'm watching

Californication: The Third Season
Californication: The Third Season

what i'm playing

Mass Effect 3 Collector's Edition
Mass Effect 3 Collector's Edition

what i'm hearing

Dub FX
Dub FX

blogs

podcasts

no ads ever

This blog is free of advertising, and always will be.

creative commons licensed

The content of this blog is free to use in whatever way you wish under the Creative Commons license.