Browse DevX
Sign up for e-mail newsletters from DevX


HTML Advanced: Meta Tags : Page 3

Learn how to use meta-tags to make your site searchable and rateable plus see how meta-tags can add simple special effects!




Building the Right Environment to Support AI, Machine Learning and Deep Learning

Meta Tags for Server Interaction

<meta http-equiv="server command" content="data">

If you are using the meta tag to store server-specific information (like the author of the page) or to request some action from the server (like opening a new page or playing a sound) the tag will have two attributes, http-equiv and content.

The first attribute is http-equiv. It names the meta tag and alerts the browser that the value of this attribute needs to be passed along to the server for processing.

If you are using the metatag for an intranet function, your system administrator may have created a series of name values for this attribute that your own server will understand. Other servers that don't understand the value will just ignore the tag.

If you are using the meta tag to refresh the page or play a sound, this attribute will have the value "refresh." Most web servers have agreed to recognize this value in a meta tag and act appropriately.

<meta http-equiv="refresh">

The second attribute is content. The value of this attribute further defines the value in "http-equiv." For example, if you are playing a sound or loading a new page, the content attribute contains the URL of the page to load.

This meta tag tells the server to refresh the contents of the browser window. The refresh will happen in 30 seconds and the new page is named "index2.html:

<meta http-equiv="refresh" content="30; URL=index2.html">

Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date