Why aren't there semicolons after each line | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why aren't there semicolons after each line

14th Jun 2016, 4:02 PM
Louis
5 Answers
+ 5
Because there is no need of semicolons. Html uses tags to build up the page, usually an opening one <tag> and a closing one </tag>.
14th Jun 2016, 4:21 PM
Adrian Jason Nizzetto
Adrian Jason Nizzetto - avatar
+ 2
In some programming languages like C or Java ; is used as end of statement but in html / is used in closing part of the the container tags to specify end like </html> and in empty tags it is put at the end of tag name like in <br />
17th Jun 2016, 9:48 AM
Ajay Kumar
+ 1
you're closing tag is basically like the end of tht tags line .
16th Jun 2016, 2:23 AM
Mohammad
Mohammad - avatar
+ 1
just think in Html the closing tag is like an semicolon
18th Jun 2016, 4:11 PM
saurav singh
saurav singh - avatar
0
this is HTML, not C or C++ there's a language change as the language generation is different for both platforms
13th Jul 2016, 6:02 PM
Kartik N
Kartik N - avatar