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 trialKarl Pupé
6,718 Pointslegends vs headings
Hi!
Just a quick question - Looking at the video, I completely understand why we would use <fieldset> tags but I was wondering: instead of using the <legend> tag could we not use a <h1> or <h2> tags instead?
Would it make a difference or must we use the <legend> tag?
Thank you guys for your help!
1 Answer
Steven Parker
231,236 PointsI don't understand the question about "could we not use a or tags instead".
But based on the title "legends vs headings", there's a difference in the way these thing appear. A legend appears as part of the border that gets drawn around the fieldset, but a heading would appear inside it.
Karl Pupé
6,718 PointsKarl Pupé
6,718 PointsHi Steven!
Apologies for the spelling mistake - your answer was spot on - just what I needed!
Thank you!