WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1 the <a> tags Confusion on Mon Sep 05, 2011 6:53 am

Fragon


Registered Member
Registered Member
it says in w3schools that links are defined with <a> tags but then it shows <a href= <----wtf href?? whats href and what does it do?

PS:no am not there in HTML Razz I just went back for knowledge and to see if I missed anything or forgotten and it looks like i did Very Happy

2 Re: the <a> tags Confusion on Mon Sep 05, 2011 8:43 am

ankillien


Administrator
Administrator
Topic moved to HTML forum

href is an attribute of the <a> tag that holds the URL of where we want to redirect the user who clicks it.

If you want to create a link to yahoo, you'll use this code...

Code:
<a href="http://yahoo.com">Go to Yahoo!</a>

3 Re: the <a> tags Confusion on Tue Sep 06, 2011 12:15 am

Fragon


Registered Member
Registered Member
that's another thing I don't understand what does Attribute mean? I searched Google still didn't make any sense to me

4 Re: the <a> tags Confusion on Tue Sep 06, 2011 3:34 am

Mr.Joker


Decorate Desktop Contest Winner
Decorate Desktop Contest Winner
You know I also used google and look what I found.
Code:
(Hypertext REFerence) The HTML code used to create a link to another page. The HREF is an attribute of the anchor tag, which is also used to identify sections within a document. The HREF contains two components: the URL, which is the actual link, and the clickable text that appears on the page, called the "anchor text."


H REF = Hypertext REFerence

5 Re: the <a> tags Confusion on Tue Sep 06, 2011 8:51 am

ankillien


Administrator
Administrator
Fragon wrote:that's another thing I don't understand what does Attribute mean? I searched Google still didn't make any sense to me


Attribute is something that adds more values to the HTML tag. Some examples...

If you want to put an image, you will use <img> tags but just putting <img> on the page won't make sense. You have to put the URL of the image that should show up, hence you use src attribute with the <img> tag like this...

Code:
<img src="images/logo_image.gif">


Similarly just putting <a>Google</a> won't let the browser know where the link should go. So, you use the href attribute with <a> tag to tell the browser to create link to the URL specified in href attribute, like this...

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


For more info...
http://www.w3schools.com/html/html_attributes.asp

6 Re: the <a> tags Confusion on Tue Sep 06, 2011 1:38 pm

Mr.Joker


Decorate Desktop Contest Winner
Decorate Desktop Contest Winner
Ankillien he dont want to know what attribute is, he want to know what href mean, because you must undestand something you learn. He probably learn that h i heading, p is paragraph, img is imageand so on, so he se connection betwen those but didnt saw any betewn href and link. Thats all.

7 Re: the <a> tags Confusion on Tue Sep 06, 2011 2:02 pm

ankillien


Administrator
Administrator
Mr.Joker wrote:Ankillien he dont want to know what attribute is, he want to know what href mean, because you must undestand something you learn. He probably learn that h i heading, p is paragraph, img is imageand so on, so he se connection betwen those but didnt saw any betewn href and link. Thats all.


May be Neutral

But I see him clearly asking "I don't understand what does Attribute mean?", so I posted about that.

8 Re: the <a> tags Confusion on Tue Sep 06, 2011 2:24 pm

Mr.Joker


Decorate Desktop Contest Winner
Decorate Desktop Contest Winner
Fragon wrote:but then it shows <a href= <----wtf href?? whats href and what does it do?

You see, he asked about HREF. He need to know what href really mean. He even used arrow to point on href. xD

9 Re: the <a> tags Confusion on Tue Sep 06, 2011 2:35 pm

ankillien


Administrator
Administrator
Well, only he knows what he is asking. We should wait for him to post now Razz

10 Re: the <a> tags Confusion on Wed Sep 07, 2011 5:20 am

Fragon


Registered Member
Registered Member
Lol,this is Funny,but what I wanted to know was,what did href mean but at the same time I also wanted to know what attribute meant knowing that you would say attribute,I asked what did href mean now when you said "href is an attribute" <--right there you said that and i didn't understand what was href so then I asked what Attribute meant and you Explained it,Thank you for that now,I understand both of them.so No one is wrong,thank you again ankillien And Mr Joker Very Happy Very Happy

11 Re: the <a> tags Confusion on Wed Sep 07, 2011 9:11 am

ankillien


Administrator
Administrator
LOL...so finally the doubt is cleared Razz

Glad we could help out Very Happy

Solved > Locked

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum