|
|
|
|
HTML Head
|
|
|
|
|
The head element in HTML defines information about the HTML document. This may be general information about styles, title & meta information.
The head element essentially contains elements that should not be displayed by the browser. There are just a few tags that according to the HTML standard are considered legal to be included inside the head section. These include: <title>, <meta>, <base>, <style>, <link>, and <script>. |
|
|
|
|
| Example:
<head>
<title> This is the Title </title>
</head>
|
One thing to remember here is that, although the elements included inside the head element are not displayed by the browser, few elements like <h1> or <p> when defined inside the head element are displayed by the browser.
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. |
|
|
|
|
| |
|
|
| Use only hexadecimal #RGB values for colors. The behavior of named colors is browser-idiosyncratic and totally unpredictable. |
|
| |
|
|
|
|
| You can resize your images without a graphics program by changing the HEIGHT and WIDTH in your image tag. |
|
| |
|
|
|
| |
|
|
|
|
|
|