HTML Head
Examples
The title of a document
The title information inside a head element is not displayed in the browser
window.
One target for all links
This example demonstrates how to use the base tag to let all the links on a page
open in a new window.
The Head Element
The head element contains general information, also called meta-information, about
a document. Meta means "information about".
You can say that meta-data means information about data, or meta-information means information about information.
Information Inside the Head Element
The elements inside the head element should not be displayed by a browser.
According to
the HTML standard, only a few tags are legal inside the head
section. These are: <base>, <link>, <meta>, <title>, <style>,
and <script>.
Look at the following illegal construct:
<head>
<p>This is some text</p>
</head>
|
In this case the browser has two options:
- Display the text because it is inside a paragraph element
- Hide the text because it is inside a head element
If you put an HTML element like <h1> or <p> inside a head element
like this, most browsers will display it, even if it is illegal.
Should browsers forgive you for errors like this? We don't think so. Others
do.
Head Tags
| Tag |
Description |
| <head> |
Defines information about the document |
| <title> |
Defines the document title |
| <base> |
Defines a base URL for all the links on a page |
| <link> |
Defines a resource reference |
| <meta> |
Defines meta information |
| Tag |
Description |
| <!DOCTYPE> |
Defines the document type. This tag goes before the <html> start tag. |
Make your web applications look like a million bucks
|
|
Most web applications today use boring methods to present data to their viewers using grids or simple HTML tables. FusionCharts induces "life" into the web applications by converting monotonous data into lively charts, gauges & maps.
FusionCharts works with all technologies like ASP, ASP.NET, PHP, ColdFusion, Ruby on Rails, JSP, HTML pages etc.
and connects to any database to render animated & interactive charts. It takes less than 15 minutes and no expertise
whatsoever to build your first chart and just a glance of it to captivate your audience. This fact is endorsed by our
12,000 customers and 150,000 users which include a majority of the Fortune 500 companies.
And yeah, your applications could look like a million bucks by spending just $69.
So go ahead, download your
copy of FusionCharts and start "wow-ing" your customers now!
|
 |
W3Schools' Online Certification Program
The perfect solution for professionals who need to balance work, family, and career building.
More than 4000 certificates already issued!
|
The HTML Certificate documents your knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
|