Why do you have to use certain HTML tags?

Why do you have to use certain HTML tags?
0.0 0

#1

why do you have to use tags, like <fieldset> and <legend> when you can use css?


#2

There are a lot of reasons for using correct/proper HTML tags including accessibility and SEO. This article doesn’t specifically discuss fieldset or legend, but does give an idea on why to use the best tag available for each element of a page: https://internetingishard.com/html-and-css/semantic-html/

There’s a lot of good information on this out there on the Web and in books if you do some searching. Hope that helps :pineapple:


#3

thanks for your help- and the pineapple!