|
J & D Graphics HTML Guide Basic HTML Guide Part Two: The Basic Tags There are a few basic tags that every HTML document must contain, to define it to the web browser as a web page. The first, and most important of these is the <HTML> tag. Every tag in HTML has an opening and closing version, and the space in between them is interpreted using the rules set down by those tags. A closing tag is signified by a / placed in front of the tag name, for example, the closing tag for <HTML> is </HTML>. As the <HTML> tag is a document defining tag, it is the first and the last thing that the browser reads when interpreting your web page. Therefore, the opening tag <HTML> is the first line of your page and the closing tag </HTML> is the last line. It is a good idea to write these two lines before you even start writing the rest of your site, just so you don't forget. This rule applies to most of the tags that are used in HTML. The next tags that appear in the HTML document are the <HEAD> and <TITLE> tags. The <HEAD> tag tells the browser that this information should be processed first. Usually the only thing contained between the <HEAD> and </HEAD> tags is the title of the page, but sometimes JavaScript (another web programming language) appears here to. JavaScript is covered in the JavaScript Centre section of this site. The <HEAD> and <TITLE> tags are used as follows: <HEAD> This
will make the words "Your Page Title Here" appear in the title
bar of the web browser:
|
||||||||||||||||||||||||||||
[ - About
- Gallery - HTML Guide -
JavaScript - Subs
- ] |