| Home: Online Courses: Web Development: How to Use Meta Tags: Other Uses |
Other Uses for META Tags and the HTTP-EQUIV Attribute You can also use the HTTP-EQUIV tag to set cookies. You can use an expiration date when setting the cookie so it stays until then, if you don't specify a date, the cookie will be lost when the user quits their browser. An example of setting a cookie is: <META HTTP-EQUIV="Set-Cookie" CONTENT="cookievalue=xxx;expires=Wednesday, 29-Dec-99 13:14:26 GMT; path=/"> Another useful function of META tags is to force the window to the top of all windows, helping it escape from frames. A META tag like this would accomplish this function: <META HTTP-EQUIV="Window-target" CONTENT="_top"> Next Page: Using the Name Attributes
|
|
||
![]() |