Home arrow HTML arrow Page 2 - HTML: Working with Special Characters
HTML

HTML: Working with Special Characters


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.

Author Info:
By: James Payne
Rating: 4 stars4 stars4 stars4 stars4 stars / 2
February 13, 2008
TABLE OF CONTENTS:
  1. · HTML: Working with Special Characters
  2. · Linking to Someone Else’s Website
  3. · Opening a Link In a New Window
  4. · How to Create a Mailto Link
  5. · Special Characters/Entities in HTML

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
HTML: Working with Special Characters - Linking to Someone Else’s Website
(Page 2 of 5 )

It is also possible to link to another person’s website using the <a href> tag. Here is how you do it:


<html>

<body>


<p>

<a href="http://www.google.com/">Google</a>

</p>


</body>

</html>

The above code creates a page with the word Google on it. The <a href> tag places the link to google.com into the word Google. When the user clicks the word, it loads the Google web page.

Inserting a Link Within An Image

You can also place a link within an image. This is useful for creating buttons that link to other pages on your website or banners that link to someone else’s site.


<html>

<body>

<p>

<a href="somepage.htm">

<img border="0" src="somegraphic.gif" width="75" height="40">

</a>

</p>


</body>

</html>

The code above creates a page with an image on it. It then places a link within the image that will load the somepage.htm page when the user clicks on it.


blog comments powered by Disqus
HTML ARTICLES

- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5
- BBC Adopts HTML 5, Mozilla Addresses Issues
- Advanced Sticky Footers in HTML and CSS
- HTML and CSS Sticky Footers
- Strategy Analytics Predicts HTML5 Phones to ...
- HTML5 Guidelines for Web Developers
- Learning HTML5 Game Programming
- More Engaging CSS3 and HTML Background Effec...
- Engaging HTML and CSS3 Background Effects
- More Web Columns with CSS3 and HTML
- Columns with CSS3 and HTML
- Creating Inline-Block HTML Elements with CSS
- Drag and Drop in HTML5: Parsing Local Files

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 9 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials