Search Contact information
University of Cambridge Home Department of Engineering
University of Cambridge >  Engineering Department >  computing help

META lines in HTML files

In the HEAD part of an HTML file the META tag can be used for various purposes. It's used in 2 ways - the property you're setting can be chosen using name= or HTTP-EQUIV=. In either case you set the property's value by using content= as the next 2 examples show

<meta name="keywords" content="concrete,bridges,engineering"> <meta HTTP-EQUIV="expires" CONTENT="Wed, 1 Jan 2003 12:00:00 GMT">

HTTP-EQUIV

This affects the header of the document when it's sent, thus helping the browser to display the document

name

This tends to be used to provide extra information for archiving purposes. There are many options - you can invent your own too. The following examples show some commonly used features

© Cambridge University Engineering Dept
Information provided by Tim Love (tpl)
Last updated: February 2003