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 Build a Simple Website Text Editors and HTML Finishing the HTML

why do you use anchor tag inside the p tag for buttons. why not only use anchor tag?

anchor tag

2 Answers

idan ben yair
idan ben yair
10,288 Points

Hi Muhammad, you dont have to use the "p" tag when you are using the "a" tag. It depends on where is the "a" tag is located in the page, sometimes you would use "a" tag along side with "li" tag which is used for list items.

See more info here:

http://www.w3.org/TR/html401/struct/links.html

This is a really good website for you to get info.

Let me know if that helped :)

idan ben yair
idan ben yair
10,288 Points

Hi Muhammad, if you liked my answer please select "best answer" if its not too much trouble :)

Let me know if you have anymore question I will gladly help :)