HTML: Working with Special Characters (Page 1 of 5 )
In the last article we discussed formatting, colors, and working with backgrounds. In this episode, we'll learn how to work with links and special characters, called Entities, in HTML.
Working with Links
Links in HTML allow the user to navigate pages. Duh. A link can be attached to text or images and even objects, such as pull down menus, buttons, and so forth. They typically link to another page either within your website or someone else’s website, though they can also link to different places on the same page. They may also point to a music or video file or even documents, such as a PDF.
Linking to a Page within Your Own Website
To link to a page within your website, you simply use the <a href> tag, like so:
<html>
<body>
<p>
<a href="lastpage.htm">Nerd</a>
</p>
</body>
</html>
Let’s say you had a website named funnypeople.com. The above code, when referenced by your browser, would interpret the line <a href=”nerd.htm”> as a link to the page funnypeople.com/nerds.htm. The word Nerd would be displayed in the browser and when the user clicked the word, it would load the funnypeople.com/nerds.htm page.
Next: Linking to Someone Else’s Website >>
More HTML Articles
More By James Payne