Jump to content

<meta> Http-equiv Attribute


fabs

Recommended Posts

<meta> http-equiv attributeDefinition and usageThe http-equiv attribute provides an HTTP header for the information in the content attribute.The http-equiv attribute can be used to simulate an HTTP response header.The value of the http-equiv attribute depends on the value of the content attribute.If the name attribute is set, the http-equiv attribute should not be set.1. what is HTTP header?2. How could http-equiv simulate an HTTP response header?i dont understand those things

Link to comment
Share on other sites

An HTTP header is one of the bases of the HTTP protocol.It can provide information of the page, such as whether it should be cached or not, how big the file is, or what kind of file it is.The http-equiv attribute is accepted as an HTTP header at times, browsers will ignore some of them, but they accept certain ones.A simple use for the http-equiv attribute is to tell the browser what content type your page is and what character encoding it uses:

<meta http-equiv="Content-type" content="text/html;charset=UTF-8">

Link to comment
Share on other sites

I'd suggest you install and run a tool like Fiddler (see my signature) if you're really interested.WARNING: It may blow your mind if you understand what it's all about. If you don't want to be a "geek", this knowledge is likely to irreversably turn you into one.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...