HTML Document Structure
An HTML document consists of several parts that together determine how a webpage is displayed in a browser. The HTML document begins with a <!DOCTYPE html> declaration, which informs the browser that it is an HTML5 document. After this, there is the <html> element, which tells the browser that all the content of the document is HTML code.
Next come the <head> and <body> elements.
HTML Head
The head element contains information that is not visible in the browser but is important for building the document. For example, meta tags can be added to the head element to determine the page's language and character set. In addition, link and script elements can be added to the head element to bring CSS style sheets and JavaScript code to the page.
Learn to hack — start here
Hundreds of interactive courses, virtual labs and CTF challenges in your browser. Start a free trial — no card required.