Links and images are the most popular things on web pages. They are easy
to add (just two basic HTML tags) and they bring excitement to your
plain text pages. Here you will learn about the
The
For example, to create a text link, you write:
A (anchor) tag.
Adding Links
A link is called an anchor in HTML, and so the tag to represent it is theA
tag. When you add a link, you must point to the web page address that
you want your users to go to when they click the link. You specify this
with the href attribute.
The
href attribute stands for “hypertext reference” and it's value is the URL where you want your link to go to.
For example, to create a text link, you write:
<a href="URL of the web page to go to">Text that will be the link</a>
So to link to the About.com Web Design/HTML home page, you write:
<a href="http://webdesign.about.com">About Web Design and HTML</a>
You can link nearly anything in your HTML page including images. Simply surround the item you want to be a link with the <a href=""> and </a> tags. You can also create placeholder links by leaving out the href attribute. HTML5 makes it valid to link block-level elements like paragraphs and DIV elements.

0 comments:
Post a Comment