You can also ask the question, what is the basic html page structure?
Well I am also going to discuss the structure of html .how write the basic codes?
let’s start the structure of html .you can see the below the picture and you will be always follow the structure. I am explain the structure of html
<!DOCTYPE html> tag represent is a combination of two words first words is DOC mean DOCUMENT and 2nd words is a TYPY mean how was type of document? Mean browser check the version of html in this tag. All HTML documents must start with a document type declaration <!DOCTYPE html>. It is not a case sensitive.
<html> and </html> represent html tags and all document write inside the <html> tags . you can see the picture better understanding.
<title> tag using for web page title like web page name show in the window title name. it is also closing </title> tag before head tag closing.
<body> this body section. This is web page body All the text and images write on this section and show in the web browser. When you write All codes in the body section then you must close the body tag and html tag.If any tag of body section is opened then these tag that are opened are implement in all codes. Then your desire output is destroy.so that be carefully implement all tags in body section.
NOTE: All the start with the specific name and also close with the same name with “/” this is closing sign of tags. Some tags are opening but not closing like <img> <br> etc.