Introduction[]
HTML Yay! This is your first time ever coding a website. How exciting! But don't you want to know what importance the HTML holds? HTML is used to design web pages as simple as that. HTML is very easy to learn but it is a very powerful markup language that can control web designs. HTML together with CSS helps make web pages look beautiful. So let's start learning coding! To start off:
- Open Notepad, if you are Windows user.
- Open TextMate, if you are a Macintosh user.
There are other text editors too. At bottom is a list of recommended Text editors that can be helpful and easy to use.
Starting off[]
To start off on the first line put <!DOCTYPE html>
, this shows it is HTML code.
Then put <html>
on the line below to show the start of the HTML document. After that, write down </html>
because this ends the HTML document.
It should look like this:
<!DOCTYPE html>
<html>
</html>
Next Step[]
Next, in between <html>
and </html>
type down <head>
everything you put between that and a </head>
tag (tags are markups between <>). They don't appear on the pages.
It should look like this:
<!DOCTYPE html>
<html>
<head>
</head>
</html>
<body>
tags[]
The final basic bit of structuring html is the body tag.
This is simply <body>
or </body>
. All the code that actually shows goes between them.
It should look like this now:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
</body
</html>
Saving[]
To save your work follow these intructions:
- Click Save (Control + S)
- Write the file name
- After the filename write .html
- So the file should look like this: filename.html
- Click Save
(This website will look blank. For now atleast.) To know how to add things inside go to: Lesson 2>>.)