<head>
Description:
This element creates the header section of an HTML document. In the header section, you can define the title of the document, establish links to CSS style sheets, reference JavaScript code, and so on.
Syntax:
<head attributes events> . . . </head>
Example:
<html>
<head>
<title>head element example</title>
<link rel="stylesheet" type="text/css" href="yourstylesheet.css"
<script language="javascript">
alert("Hello World");
</script>
</head>
<body>This is the content of the page
</body>
</html>
Home
HTML CSS Book
HTML reference
HTML CSS Book
HTML reference
Tag:
- <a>
- <acronym>
- <address>
- <area>
- <article>
- <aside> for SideBar
- <audio>
- <b>
- <base>
- <bdi>
- <bdo>
- <blockquote>
- <body>
- <br>
- <button>
- <canvas>
- <caption>
- <cite>
- <code>
- <col>
- <colgroup>
- <dd>
- <del>
- <details> for expandable section
- <dfn>
- <div>
- <dl>
- <!DOCTYPE>
- <dt>
- <em>
- <embed>
- <fieldset>
- <figure> for content with caption
- <footer> for footers
- <form>
- <frame>
- <frameset>
- <head>
- <header> for headers
- <hgroup> for header grouping
- <hN>
- <hr>
- <html>
- <i>
- <iframe>
- <img>
- <input>
- <ins>
- <kbd>
- <keygen>
- <label>
- <legend>
- <li>
- <link>
- <mark> to highlight
- <map>
- <meta>
- <meter>
- <nav> for navigation
- <noscript>
- <object>
- <ol>
- <output>
- <optgroup>
- <option>
- <p>
- <param>
- <pre>
- <progress>
- <q>
- <ruby>, <rt>, and <rp> Elements
- <rt>
- <ruby>
- <samp>
- <script>
- <section> marks sections
- <select>
- <span>
- <strong>
- <style>
- <sub>
- <sup>
- <table>
- <tbody>
- <td>
- <textarea>
- <tfoot>
- <thead>
- <th>
- <time> for date and time
- <title>
- <tr>
- <ul>
- <var>
- <video>
Related: