7/20/2020 Basic structure of an HTML document
Search this site...
Home HTML XHTML ASP JavaScript Scripting Tools
Home » HTML » HTML basics » Creating an HTML document » Basic structure
Print | Email | Bookmark
HTML topics Basic structure of an HTML document
HTML basics
An HTML document has two* main parts:
What is HTML?
1. head. The head element contains title and meta data of a web document.
HTML editors
2. body. The body element contains the information that you want to display on a web page.
Creating an HTML document
* To make your web pages compatible with HTML 4, you need to add a document type declaration
Basic structure of an
HTML document (DTD) before the HTML element. Many web authoring software add DTD and basic tags
automatically when you create a new web page.
Understanding elements
In a web page, the first tag (specifically, <html>) indicates the markup language that is being used for
Understanding attributes
the document. The <head> tag contains information about the web page. Lastly, the content appears
Displaying an HTML in the <body> tag. The following illustration provides a summary.
document
Adding comments in HTML
Making your HTML code
readable
Working with text
Specifying metadata
Adding hyperlinks
Inserting graphics
Creating image maps
Adding tables
Creating forms Summary of Basic HTML Tags
Reference pages
LEARN ONLINE RESOURCES SITE LINKS
www.scriptingmaster.com/html/basic-structure-HTML-document.asp 1/2
7/20/2020 Basic structure of an HTML document
HTML Scripting Tools Feedback Link to ScriptingMaster
XHTML Scripts Site Map Links
ASP About Request a link
JavaScript Terms of Service
Scripting Tools Privacy policy
©2020 Techna Center, LLC. All rights reserved.
www.scriptingmaster.com/html/basic-structure-HTML-document.asp 2/2