Here you will see how the basic html document structure looks like. The page includes a doctype declaration with a html, head, title and body element.
Doctype tells the browser what version oh html is using in the document.
For latest version html5 it is written as <!DOCTYPE html>
Read Also: HTML Forms
The other elements are:
html: Everything is wrtten between html tags.
body: Here text, images, form, tables are used.
Let’s see a simple document structure:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Untitled Document</title> </head> <body> ... </body> </html>