At its simplest, an HTML page contains what can be thought of as a skeleton - the main structure of the page. It looks like this:
<!DOCTYPE HTML> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <!--Content that appears on the page--> </body> </html>
<head> element contains content that is not displayed on the page itself. Some of the elements commonly found in the
<title>). Browsers typically show the title in the "title bar" at the top of the browser window.
<body> element contains all of the content that appears on the page itself. Body tags will be covered thoroughly throughout this manual.
Extra whitespace is ignored in HTML. This means that all hard returns, tabs and multiple spaces are condensed into a single space for display purposes.
<!DOCTYPE HTML> <html> <head> <meta charset="UTF-8"> <title>Whitespace Example</title> </head> <body> This is a sentence on a single line. This is a sentence with extra whitespace throughout. </body> </html>
The two sentences in the code above will be rendered in exactly the same way.