Things this site will teach you...
- HTML
- DHTML
- XHTML
- XML
- CSS
- DOM
- JAVASCRIPT
- SSI
- PLUG-INS
DHF |
Lesson One Chapter One - [The Basic Layout]
The <head></head> tag
The <head> section of an HTML page contains things like scripts and meta-tags which will not be shown on screen but are still needed. The <head> tag is put straight after the <html> tag and the </head>
is put before the body. It looks like this.
Example One -
Your Page's Title
...Other information about the document...
Hello There, this is example one!
Here are the main things that go between the <head> and </head> tags...
- The <title></title>
- This should be the first thing in the <head> and you write <title>Your pages title here!</title>, it should not be more than about ten words in legnth as search engines won't show all of it. Your title should also contain key words that describe your page, again to make it better for search engines. Your page title will be shown on the bar at the top of the page and on the favourites menu.
- Page meta tags
- Meta tags go between the title tags and describe your site. A simple Meta-tag used on a lot of pages is this one: <meta name="description" content="A description of your site goes here" />. This is used on a lot of pages because this writes the site description on search engine results pages. As you can see meta tags have two sections (or attributes): the name and the description. Another example of a meta-tag could be <meta="keywords" name="Put words that describe your site here. Seperate them with commas. eg... HTML, stylesheets, web developers, whateverelse."/>. That one gives keywords about your site to search engines. See the 'how to make a tag' section to see why the meta tags need a /> at the end.
- Scripts (JavaScript, VB Script)
- Scripts like JavaScript are often put in the head tag. They are used to liven up webpages and go between the <script></script>. More will be said about this in the Java Script lessons.
- Stylesheets
- ..are often used in the head tags. They will be covered in the CSS lesson and look like this...
Now you know every little detail about the <head> tag you can only learn more from using JavaScripts and Style sheets in the head. The next page is about the next main tag, and arguably the most important, the <body></body> tag.
[Previous] [Home]
[Contents] [Next]
|
|