demosthenes.info

I’m Dudley Storey, the author of Pro CSS3 Animation. This is my blog, where I talk about web design and development with , and . To receive more information, including news, updates, and tips, you should follow me on Twitter.

featured articles

popular favourites

More HTML Text Elements

There are other tags that can be used to format text, a limited sample of which are given below. Note again that these describe what the content between the opening closing tags is; what it looks like is immaterial, in this context.

<code>
specifies that a line of text is code
<dfn>
specifies that a word is defined inline (to be useful, the opening den tag requires a title attribute with its value set to the definition of the term)
<abbr>
specifies that the word is an abbreviation; same requirements as dfn above
<del>
defines deleted text
<q>
defines a short quotation
<sup>
defines superscript text, such as for a footnote
<sub>
defines subscript text

Finally, note that all of these tags must be nested inside another that provides a context for the block of text as a whole: typically <p>, although there are many other possibilities.

Feel free to experiment with the above, but try to use them in the context of real-world examples – i.e. find a short quotation from a book and use the <q> tag around it, rather than using elements to “see what they look like”.

You must be signed up in order to leave comments.

web developer guide

featured comment

by Aisling Brock in New Business Card Design

what i'm reading

A Feast for Crows: A Song of Ice and Fire: Book Four
A Feast for Crows: A Song of Ice and Fire: Book Four

what i'm watching

Prometheus: Collector's Edition (Bilingual) [Blu-ray 3D + Blu-ray + DVD + Digital Copy]
Prometheus: Collector's Edition (Bilingual) [Blu-ray 3D + Blu-ray + DVD + Digital Copy]

what i'm playing

Borderlands
Borderlands

what i'm hearing

Planets
Planets

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.