Jump to content

Html <meta>


fabs

Recommended Posts

i have learned about html <meta> in http://www.w3schools.com/html/html_meta.aspand there was a note from W3Cbut i did not understand that notethe note is W3C states that "Some user agents support the use of META to refresh the current page after a specified number of seconds, with the option of replacing it by a different URI. Authors should not use this technique to forward users to different pages, as this makes the page inaccessible to some users. Instead, automatic page forwarding should be done using server-side redirects" at http://www.w3.org/TR/html4/struct/global.h...adef-http-equiv.anybody could help me??

Link to comment
Share on other sites

One header browsers accept is the "Refresh" header. It allows you to tell the user agent (a.k.a. "the browser") to refresh the page after a certain amount of seconds. This header also allows you to specify a different URI which would be loaded instead of the current page. The combination of a refresh and a new URI is basically a redirect.If you set the HTTP header with the server, that's "server-side redirect". If you set it within the HTML file with the meta element (or with JavaScript, but that's another topic), that's "client-side redirect".Did you saw Fiddler yet? The above (and more) should make sence after you do.

Link to comment
Share on other sites

hai robot.could you explain me about the function of http-equiv attribute???
Ingolme already covered that well in that other topic of yours. Is there a particular thing from his explanation that you didn't understood? If the answer is "everything", load a page while having Fiddler on, and look carefully at everything in the response section. If using Fiddler seems difficult for you, watch the Fiddler videos.
Link to comment
Share on other sites

Guest FirefoxRocks
robotso we could say that http-equiv is same with HTTP header????
That is one of the reasons the attribute is called http-equiv. If I had this code:
<?php header("Content-Language: en-CA"); ?><!DOCTYPE html><html><head><meta http-equiv="Content-Language" content="en-GB">... (rest of document) ...

Then the browser (user-agent) would totally ignore the <meta> tag because I already specified the HTTP header called Content-Language. But if I didn't, then the browser will assume I sent the HTTP header called "Content-language" with a value of "en-GB".Hope this helps.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...