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

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]

1the <a> tags Confusion  Empty the <a> tags Confusion Mon Sep 05, 2011 8:23 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

2the <a> tags Confusion  Empty Re: the <a> tags Confusion Mon Sep 05, 2011 10:13 am

ankillien

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>

3the <a> tags Confusion  Empty Re: the <a> tags Confusion Tue Sep 06, 2011 1:45 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

4the <a> tags Confusion  Empty Re: the <a> tags Confusion Tue Sep 06, 2011 5:04 am

Mr.Joker

Mr.Joker
Mr. WebArtz
Mr. WebArtz
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

5the <a> tags Confusion  Empty Re: the <a> tags Confusion Tue Sep 06, 2011 10:21 am

ankillien

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

6the <a> tags Confusion  Empty Re: the <a> tags Confusion Tue Sep 06, 2011 3:08 pm

Mr.Joker

Mr.Joker
Mr. WebArtz
Mr. WebArtz
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.

7the <a> tags Confusion  Empty Re: the <a> tags Confusion Tue Sep 06, 2011 3:32 pm

ankillien

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.

8the <a> tags Confusion  Empty Re: the <a> tags Confusion Tue Sep 06, 2011 3:54 pm

Mr.Joker

Mr.Joker
Mr. WebArtz
Mr. WebArtz
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

9the <a> tags Confusion  Empty Re: the <a> tags Confusion Tue Sep 06, 2011 4:05 pm

ankillien

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

10the <a> tags Confusion  Empty Re: the <a> tags Confusion Wed Sep 07, 2011 6:50 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

11the <a> tags Confusion  Empty Re: the <a> tags Confusion Wed Sep 07, 2011 10:41 am

ankillien

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

Glad we could help out Very Happy

Solved > Locked

Sponsored content


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