0

Html challenge question

I was playing the html challenge and it asked can you have two body tags in one document. I knew that you can so i answered true. It marked me wrong. Now I know that you aren’t supposed to have two body tags but it does work at least here in sololearn playground. Is there a way someone can change it either say how many body tags are there suppose to be instead can there be?

18th Mar 2025, 3:30 AM
Zvi
Zvi - avatar
4 Respuestas
+ 2
Zvi "The <body> HTML element represents the content of an HTML document. There can be only one <body> element in a document." https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body While browsers might allow it, it's technically illegal ..
18th Mar 2025, 6:25 AM
Bob_Li
Bob_Li - avatar
+ 1
Can you show the original question Screenshot via Post or code, so that we can check it
18th Mar 2025, 4:41 AM
Alhaaz
Alhaaz - avatar
0
Only if my opponent takes the challenge, otherwise it will disappear like most challenges…
18th Mar 2025, 4:44 AM
Zvi
Zvi - avatar
0
Zvi So if he/she accept it than share a screenshot of that question else if you remember it well than, write it here.
18th Mar 2025, 4:49 AM
Alhaaz
Alhaaz - avatar