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 trialMuhammad Bilal
914 Pointswhy do you use anchor tag inside the p tag for buttons. why not only use anchor tag?
anchor tag
2 Answers
idan ben yair
10,288 PointsHi 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
10,288 PointsHi 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 :)