Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML Introduction to HTML and CSS (2016) Getting Familiar with HTML and CSS Welcome to HTML and CSS

"Attributes help us give the browser more information about how the tag should work or look." What does this mean?

I don't understand what is meant here, at all.

1 Answer

I think an example would help you understand. For example if you have a link: <a>My Website!</a> That would give you a link but it would not know where to take you. So you give it an href attribute. <a href=“Http://www.mywebsite.com”>My Website!</a> The href ATTRIBUTE tells the browser where to send the user when they click on a link.

I hope this helps!

Thanks :)

Thanks so much, I really appreciate examples. It makes things much easier to grasp/understand. So you can modify the default behavior of the element, right?

So for example, in your example you are saying with the default behavior of the "a tag" it won't go anywhere, but you can modify this with an attribute, so that it does. Please correct me if I am wrong!

Yes you are correct. :)