Forum Moderators: open
I was wondering if html/htm file do not have the http-equiv meta tag. Which one is best suitable for the webpage ur editing.
In some of my previous work, this one was automatically in there, as i used dreamweaver.
Now that i am editing another persons code who used frontpage or another tool. They never placed the http-equiv line.
I have done google search on the meta tag, and found on different variations of it.
Can anyone provide a basic outline of it and if using the line below is fine for a html website.
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
META and HTTP headers
The http-equiv attribute can be used in place of the name attribute and has a special significance when documents are retrieved via the Hypertext Transfer Protocol (HTTP). HTTP servers may use the property name specified by the http-equiv attribute to create an [RFC822]-style header in the HTTP response. Please see the HTTP specification ([RFC2616]) for details on valid HTTP headers.
Your example is the correct syntax for the charset metadata...
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
Another option is to use UTF-8, which is a newer encoding which covers almost all modern languages.