Introduction to HTML

This article needs illustration.

Create our first website with HTML
First, make sure you have installed an IDE or text editor.

Create a new file, type in something, like "Hello world". Save this file as "Hello.html".

You have already created a website. Open this file, you will see what you typed.

Structure of an HTML file
An actually html file is structured using tags.

Here is the structure of a valid html file: <!doctype html> <- Required tag to indicate html file <- Start of html file content <- Head tag contains metadata of the website Title <- title tag for title of the website <- Other metadata tag <- Start writing the page here <- More tags <- Tags with children need ending tag

The file start with a !doctype tag to indicate this is a html file. Next is the html tag, which marks the start and finish of the file.

Inside the html tag is 2 other tag: head and body. Head tag includes tags that have metadata of the website like the title, style file location, script file location, ... Body tag is where we write the interface of the website by using content tags.