<meta>: Specifying Content Type, Character Set, and More
A <meta> tag has a number of uses. For example, it can be used to specify values that are equivalent to HTTP response headers. For example, if you want to make sure that your MIME type and character set for an English-based HTML document is set, you could use
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
Because meta is an empty element, you would use the trailing-slash syntax shown here:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
Most people would agree that using the UTF-8 character set is probably a good idea for Western-language page authors because it gives them access to international character glyphs when needed without causing them any trouble:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" > <title>Page title here</title> </head> |
Other Elements in the head
In addition to the title and meta elements, under the HTML 4.01 and XHTML 1.0 the elements allowed within the head element include base, link, object, script, and style. Comments are also allowed. A brief discussion of the other head elements and comments follows.
<base> <script>, <link>, <style>
++++++++++++++
<base href="http://seedocx.com/html" >
++++++++++++++
<script type="text/javascript" href="ajaxtcr.js"></script>
++++++++++++++
<link rel="stylesheet" media="screen" href="seedocx.css" type="text/css" >
++++++++++++++
<style type="text/css" media="screen">
h1 {font-size: xx-large; color: red; font-style: italic;} /* all h1 elements render as big, red and italic */
</style>