<a> anchor Tag

23 Jan 2009, dilip Comments: | Views: 233 | | Category: Html tags

Click On the Stars to Rate:
  • Currently 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0

 

The Above image shows the basic Working of anchor Tag.

It is the anchor tag that differentiates between hyper text and normal text. The normal text is sequential it goes in linear way, where as hyper text is connected like web. That is why it is called world wide web.

 

The links we see on all websites are created by anchor tags. On clicking we are directed to another page. The working of <a> tag is as shown in above picture , on web page only the text 'Click here' will be seen.

The below code is provided to demonstrate the working of <a> tag. Copy paste on notepad and saves mypage.html and see the result.

 <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>This is the title of Your Page </title> </head> <body> write any thing here ..blah .. blah... it will be displayed in your webpage <a href='http://dilipkumar.in' target="_blank">Click Here</a> to visit My Home Page </body> </html>  

After opening the page when you click on the 'click here' text the home page of my site opens in new window. You can change the link by changing the tex after href="" in the "" you can add any link like http://yahoo.com etc.. 'http:// ' is compulsory for a link. The page opens in new window because the 'target' attribute is equaled to '_blank' the other values are '_self' '_parent' when equaled to '_self' the page opens in the same window '_parent' is used when the frames are used. Frames will be covered afterwards.

Your comments are invited please

        Subscribe RSS Feed Of Our Blog
Comments: 0

Web Designing Home Page

Related Articles

Web Design » Html tags

<DIV>.... </DIV> Tag - Generic Block Container.
<H1>...</H1> The Heading Level One
<table>
<img> tag
<a> anchor Tag

Share This Page

Catch All World Cup Action ,Videos of Highlights, Live Score

RSS Feed

 Subscribe Our RSS Feed

 

Follow dilipkumar_in on Twitter

 

Random Link