Basic Computer Notions Introduction to HTML

Next Introduction Separation of form and content Tags Identify file contents as HTML Identify file contents as HTML (cont'd) Head and body Head Head (cont'd) Head (cont'd) Head (cont'd) Body Paragraphs Paragraphs (cont'd) Emphasis Emphasis (cont'd) Emphasis (cont'd) Headings Lists Lists (cont'd) Lists (cont'd) Lists (cont'd) Address Line break Horizontal rule 25 of 49 Links (cont'd) Links (cont'd) Links (cont'd) Links (cont'd) Links (cont'd) Links (cont'd) Links (cont'd) Links (cont'd) Images Images (cont'd) Images (cont'd) Images (cont'd) Images (cont'd) Links to images Links to images (cont'd) Links to images (cont'd) Links to other media Embedded objects Tables Frames Summary of elements Checking syntax Learning more about HTML Style guides for creating Web pages

Links

To create a link to another Web page, use the anchor tag <a> with the attribute href.

For example, this code creates a link to a file named testfile.html:
<a href="testfile.html">test</a>
The link is displayed like this: test

The value of the href attribute is interpreted as a uniform resource locator (URL). In this example, the URL consists of a relative address; since only the file name is specified, the target file is assumed to be located in the same directory as the current file.


Start Next
Bacon home page

Valid HTML 4.01! (valid except for embed element) Valid CSS!

Creative Commons
License
This work is licensed under a Creative Commons License.
R. Funnell

Last modified: Sat, 2007 Mar 10 15:45:22

Slide show generated from html.html by Weasel 2007 Mar 10