What if I miss a tag | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What if I miss a tag

I'm new. I just start learning HTML. I tries wrote a page but missing tags like: <html>, </p> or didnt put title rag between head tag. But it seems like there is no problem. I want to ask what problems that I may have when I miss tags. FYI, I only use html, head, body, text font, heading.

29th May 2017, 2:48 AM
Đạt Quốc Nguyễn
Đạt Quốc Nguyễn - avatar
5 Answers
+ 3
Yes. That has to do with how browsers implemented the standards of HTML. HTML5 standard made that official. BUT, best practice is to use <!doctype html>, <html>, <head>, <meta charset='...'>, <body>, <title> tags. And when you are doing a serious web page I sugest you use them.
29th May 2017, 2:57 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 1
There were many version of HTML before. If you want your to be treated like HTML5 by the browsers you should use <!DOCTYPE html> before the <html> tag. The 'meta' is used to declare, well meta information about your page. It is used inside the <head> tag. It is a good practice to declare the character set that your page uses and some browser will expect it. The more common is 'utf-8'. You can declare it like this: <meta charset='utf-8'>.
29th May 2017, 3:09 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 1
I understand now. I appreciate your help. Thank you so much, Ulisses Cruz
29th May 2017, 3:17 AM
Đạt Quốc Nguyễn
Đạt Quốc Nguyễn - avatar
0
Thank you, Ulisses Cruz. But there are some I dont know in your answer: <!doctype html>, <meta charset='...'> tags. I dont know those tags.
29th May 2017, 3:03 AM
Đạt Quốc Nguyễn
Đạt Quốc Nguyễn - avatar
0
If your question was answered mark the correct answer, please.
29th May 2017, 3:23 AM
Ulisses Cruz
Ulisses Cruz - avatar