Welcome to the first HTML tutorial. In this tutorial you will learn the basics of HTML, such as how to structure a basic page.
Below is the most basic HTML page. See below the code for an explanation of each part:
Code :Your first webpage Hello :)
Output:Hello :)
Now let's examine the code more closely. Firstly we must start and close any HTML document with
Code :tags. Anything between these two tags will be rendered as HTML. Following the opening html tag are the
Code :tags. The head section of the document contains general information the page might require. In this case it contains just
Code :tags. If you look at the very top of your browser in the bar you'll see something similar too:
Whatever you enter between the head tags will appear in that area. Finally the
Code :section. This is the main bulk of the page and anything you want to appear on the page is put between the two body tags.
That concludes the first tutorial. In the next tutorial we will cover formatting such as aligning your text, changing it's colour, setting bold/italics/underlined. We will also look paragraphs and headings!
|
|
||
To post comments you must sign in to your account below!
If you do not currently have an account click here to create one now!