<a>
Syntax for the hyperlink:
<a href="http://www.example.com" attributes events>label</a>
Syntax for the anchor:
<a href="#anchorName" attributes events>label</a>
Example:
<html>
<head>
<title>A element example</title>
</head>
<body>
<a name="top"></a>
<h2>Used as a hyperlink:</h2>
<p>
<a href="http://www.w3.org/">World Wide WebOrganization</a></ p>
<h2>Used as an anchor:</h2>
<p>
<a href="#par3">Go to paragraph #3 in this page</a>
</p>
<p>
<a href=" yourdocument.html#sty">Go to the yourdocument.htm page,sty location</a>
</p>
<p align="left">Paragraph #2</p>
This is a text. This is a text. This is a text. This is a text. This is a text.
This is a text. This is a text. This is a text. This is a text. This is a text.
This is a text. This is a text. This is a text. This is a text. This is a text. This is a text.
<p align="left">
<a name="par3">Paragraph #3</a>
</p>
<p align="left">
<a href="#top">Top</a>
</p>
</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: