Search Blog

Creating HTML Links for Websites and Blogs

The General format/syntax for a HTML link is:


<a href="[URL/Address]">[Link Text]<a>


In creating a HTML link an <a> tag is used with the "href" attribute and this attribute is often used to link text to some other documents. The URL must begin with "http://www." to generate the link in the browser and the text contained can be any except the "<" & ">" characters. The [URL/Address] section can be removed and the link or address of web page can be added here & the [Link Text] text can be removed and the text for the link can be added.

For example:


Input:


<a href="http://www.akblogs.com/">My Blog</a>

Output:


My Blog

Clicking this link will open the website http://www.akblogs.com/ in the same page.
Share:

No comments:

Post a Comment

Trending this Week