What is syntax in html? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is syntax in html?

Give answer briefly.

22nd Feb 2020, 2:43 AM
Dinesh Pandey
Dinesh Pandey - avatar
2 Answers
+ 4
It's the way html tags are structured, mostly with start tags and closing tags. For example: <div></div> However, there are some that do not have closing tags.For example: <br/> <hr/>
22nd Feb 2020, 2:46 AM
Cmurio
Cmurio - avatar
+ 3
And additional ; Syntax is the typing of the correct code to make the language work. If you miss semicolons or closing of tags or parentheses or misspell code words, you will have a syntax error for the language you are coding in.
22nd Feb 2020, 3:54 AM
Aman[A.I]
Aman[A.I] - avatar