matt ryall’s weblog

Leaving the rest to your imagination since 2002.

Site

Portrait of Matt Ryall

 

About me

Feed icon Articles feed

Feed icon Comments feed

Archive

Photography

Europe trip 2004

More photos

Software

NoteWiki

Other Pages

About Me

Uni timetable

SysProg Journal

The List

HTML tag of the day: VAR

18 August 2007

It's amazing what you discover when reading another site's style guide: the HTML VAR tag.

The specification suggests using it to mark up 'an instance of a variable or program argument'. Here's an example:

This macro requires the <var>count</var> parameter, which specifies how many items to display.

By default in most browsers, the contents of the <var> tag will render as italic text:

This macro requires the count parameter, which specifies how many items to display.

This seems like a really useful tag to me, especially for technical documentation. Fortunately, it isn't one of those tags on the chopping block to be removed in HTML 5.

 

Comments on this article have been closed.