Posts

Showing posts with the label CSS3

Understanding the Basic Structure of an HTML Document

Image
Doctype Declaration The doctype declaration should be the very first thing in an HTML document. It's not an HTML tag; it's an instruction to the web browser about what version of the HTML the page is written in. Example: <!DOCTYPE html> HTML Element The <html> tag is the container for all other HTML elements (except for the <!DOCTYPE> tag). Example: <!DOCTYPE html> <html> </html> Head Element The <head> element is a container for metadata (data about data) and is placed between the <html> tag and the <body> tag. Example: <!DOCTYPE html> <html> <head> </head> </html> Title Element The <title> tag is required in all HTML documents and it defines the title of the document. Example: <head> <title>Page Title</title> </head> Meta charset The <meta charset> element is used to specify the character set used...