Html tags is necessary to use or not?

Tell us what’s happening:

Your code so far

I 

<h2>CatPhotoApp</h2>



<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass .</p>

You can see I used different tags but I always thought it is necessary to write <html> tag before starting any other tag . So basically my question is if I use any other tag without using html is it ok?

In the case of FCC’s challenges, I think all the other tags are provided by the test suite.

In general, in some cases some tags could be omitted: https://html.spec.whatwg.org/#optional-tags

1 Like

Personally, I think labels are mandatory. Since they are the structure of a web page and to become CEO, the proper use of tags is essential. Later, when you know JavaScript at a higher level, you can write them from Js, but you still have to know how to use them.

Yes, use good HTML practices. Good practices may be optional but just makes the code better to read and prevent errors in the future: https://www.w3schools.com/html/html5_syntax.asp and https://www.webfx.com/blog/web-design/20-html-best-practices-you-should-follow/ for more info

1 Like