What happens when we use ol tag as opening and ul tag as closing. Its interesting happened see answer below. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What happens when we use ol tag as opening and ul tag as closing. Its interesting happened see answer below.

12th Jul 2017, 3:30 AM
Priyanshu kumar Chaudhary
Priyanshu kumar Chaudhary - avatar
2 Answers
12th Jul 2017, 3:31 AM
Priyanshu kumar Chaudhary
Priyanshu kumar Chaudhary - avatar
+ 2
It happend nothing at all... as browsers are intended to correct malformed/invalid html ^^ But if in this case correction is obviously done, as the error is relatively explicit (wrong closing case), it may be less explicit, and you cannot really predict what will happen in others browsers, and how it will be corrected :P However, search engine would downrank your page/site if not valid Html (they are not mandatory as browsers to open the Html document as well as they can)...
12th Jul 2017, 5:40 AM
visph
visph - avatar