Unexpected end tag | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Unexpected end tag

There is an error in my code which is Unexpected end tag (ignored) and I don't know how to fix it. My code looks something like this: <html> <head> testing </head> </html> What am I doing wrong?

25th Jun 2019, 6:33 PM
Addie
Addie - avatar
2 Answers
+ 13
<head> Tag is a container for non-visual elements... <title> Tag is a (you needed everytime) is the title for the document.... So testing is the title of your program? Then put it between <title> tag. <title> testing </title>
25th Jun 2019, 7:23 PM
JTLZ
+ 5
Testing should not go between the head tag like that. It should go between the title tags within the head tag. <!Doctype html> <html> <head> <title>testing</title> </head> </html>
25th Jun 2019, 6:44 PM
Francis Woli
Francis Woli - avatar