HTML for Complete Beginners

HTML stands for Hyper Text Markup Language and is the computer language that most of the Internet is written in. HTML is made up of tags and sets of tags, a set being two tags that are linked: a start tag and an end tag. HTML is a bit like a person, the head comes first, then the body. As I've just mentioned the very first main tag of every single HTML document is usually the HTML tag, which is a start tag and is written as . Accompanying it will be the very last tag of the document, the end tag, . Notice the / this means it is an end tag. Every start tag must have an end tag. Start tags begin a section of code and end tags finish it. I say the very first "main" tag as there can be a tag before it, the DOCTYPE tag. This tag gives the browser information about what type of HTML is being used. The head section begins with the tag and ends with the tag. It has information about the page itself and consists of the page title, the meta tags (more on those in a minute), and the code for any page transitions you may have. The page title is self-explanatory and is written as Your page title The meta tags, particularly the There is also a meta description tag which used to tell the search engines how to describe the website on their results pages, now I've seen them use the first few lines of text for their description. The next of the main tags is the body tag, which is written as and respectively. It contains the main part of your HTML code. On my personal homepage it starts off with the code for the background. In this case it is a JPEG image. You can put almost anything in the body section, navigation bars, page banners, tables, images, horizontal lines, hyperlinks and so on. However all of the things that I have just mentioned cannot go anywhere else except the body section. Let's look at the code for some simple things. Headings: Heading 1 is

Heading 2 is

Heading 3 is

and so on. Paragraphs begin with and end with

A 100 * 200 image with a description is: my image That's enough for a simple web page.