The HTML Skeleton

Contact Us or call 1-877-932-8228
The HTML Skeleton

The HTML Skeleton

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:

Code Sample:

HTMLBasics/Demos/Skeleton.html
<!DOCTYPE HTML> 
<html> 
<head> 
<meta charset="UTF-8"> 
<title></title> 
</head> 
<body> 
	<!--Content that appears on the page--> 
</body> 
</html>

The <head> Element

The <head> element contains content that is not displayed on the page itself. Some of the elements commonly found in the <head> are:

  • Title of the page (<title>). Browsers typically show the title in the "title bar" at the top of the browser window.
  • Meta tags, which contain descriptive information about the page (<meta>)
  • Script blocks, which contain javascript or vbscript code for adding functionality and interactivity to a page (<script>)
  • Style blocks, which contain Cascading Style Sheet rules (<style>).
  • References (or links) to external style sheets (<link>).

The <body> Element

The <body> element contains all of the content that appears on the page itself. Body tags will be covered thoroughly throughout this manual.

Whitespace

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.

Code Sample:

HTMLBasics/Demos/Whitespace.html
<!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.

Next