HTML/Introduction

This introduction currently has little content, but it is expected to cater even the most beginner in web programming. A more develop resource can currently be found at What is HTML.

HTML is a language for describing web pages and stands for Hyper Text Markup Language. HTML is not a programming language, it is a markup language made up of markup tags. HTML uses markup tags to describe web pages. These tags usually come in pairs, are surrounded by angle brackets and generally have 'opening' and 'closing' tags, i.e. <html></html>

The purpose of a web browser, such as Google Chrome or Firefox, is to read HTML documents and display them as web pages. You only need 8 tags to create a webpage.

Basic HTML Structure

edit
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body></body>
</html>
<html></html>
Begin your HTML webpage and all the coding inside
<head></head>
HTML tags contain the code which is not really seen by the website user. It contains for instant javascript or title tags. You will learn more in the next few pages
<title></title>
HTML tag contains the title of the webpage which you see at the top of your browser tab
<body></body>
HTML tags contain, like it says, the body of the webpage which the user can see

Example

edit

Blank Webpage

edit
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body></body>
</html>

After you have written the tags above, save as HTML file. You may open the HTML file that you have saved and as the example suggests, you will be greeted with a blank webpage.

Greeting Webpage

edit

To display something in your newly created webpage, add something in between title tags and body tags.

<!DOCTYPE html>
<html>
<head>
<title>Greeting Webpage</title>
</head>
<body>
Welcome to my webpage
</body>
</html>

When you open the file, you will see both "Greeting Webpage" and "Welcome to my webpage" display. Where's the title, you may asks? This will be a little challenge for you to find it. 😀

See More

edit


Learning HTML
Previous: (none) — Next: WYSIWYG vs. Manual Coding in HTML