<meta>
information about your page (for a browser, search engine, etc.)
<meta name="description" content="Authors' web site for Building Java Programs." /> <meta name="keywords" content="java, textbook" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
head
of your HTML pagemeta
tags often have both the name
and content
attributes
meta
tags use the http-equiv
attribute instead of name
meta
element to describe the page<head> <meta name="author" content="web page's author" /> <meta name="revised" content="web page version and/or last modification date" /> <meta name="generator" content="the software used to create the page" /> </head>
meta
generator
tag (why?)meta
element to aid search engines<head> <meta name="description" content="how you want search engines to display your page" /> <meta name="keywords" content="words to associate with your page (comma-separated)" /> </head>
meta
element to aid browser / web server<meta http-equiv="refresh" content="how often to refresh the page (seconds)" /> </head> <meta http-equiv="Content-Type" content="what type of document this is (may include internationalization information such as character encoding)" />
meta
Content-Type
tag gets rid of the W3C "tentatively valid" warning<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
meta
refresh
tag can also redirect from one page to another:<meta http-equiv="refresh" content="5;url=http://www.bjp.com" />
<link rel="shortcut icon" type="MIME type" href="filename" />
<link rel="shortcut icon" type="image/gif" href="cse.gif" />
link
tag, placed in the HTML page's head
section, can specify an icon for a web page
.ico
format named favicon.ico
in the root directory of the web server (instructions)classifications of data that travel over the internet
MIME type | file extension |
---|---|
text/html | .html |
text/plain | .txt |
image/gif | .gif |
image/jpeg | .jpg |
video/quicktime | .mov |
application/octet-stream | .exe |
a way of representing any Unicode character within a web page
character(s) | entity |
---|---|
< > | < > |
é è ñ | é è ñ |
™ © | ™ © |
π δ Δ | π δ Δ |
И | И |
" & | " & |
&
on a web page?<p><a href= "http://www.google.com/search?q=marty+stepp&ie=utf-8&aq=t"> Search Google for Marty</a></p>
<p><a href= "http://www.google.com/search?q=marty+stepp&ie=utf-8&aq=t"> Search Google for Marty</a></p>