Best viewed in Firefox

Awesty Productions

Learning HTML Part 1

September 22nd, 2006 by awesty

In part 1 this tutorial I will teach you the basics of HTML.

What program to use

Beleive it or not, NotePad is one of the most common HTML editing programs. A few others are Microsoft FrontPage, Macromedia DreamWeaver and NotePad 2.

Microsoft FrontPage is called a WYSIWYG program (What you see is what you get). It does the coding for you, and you just tell it what you want. That is good if you don’t know any HTML and want to produce a website, but you have limitations in what your website can and can’t do.

DreamWeaver is an excellent program. You can use it as a WYSIWYG, or you can use it to code, so then you only need to know very basic HTML to make a website. DreamWeaver is also good because it colors different parts of the code with different colors so it is easier to find what you want and it looks much neater. It also suggests different tags to you while you are coding, so you don’t have to write the whole tag and might learn some new ones. It closes tags automatically.

NotePad 2 is a free program unlike the other two, and is basically the same as NotePad, but has been modded to make coding easier. It colors different parts of the code like DreamWeaver, and knows at least 10 different coding lannguages.

You can download NotePad 2 here. I recommend using that for this tutorial. If you use DreamWeaver you won’t learn as much. If you don’t want to download NotePad 2 just use regualr NotePad, it won’t interfier in how you do the tutorial.

Getting Started

HTML stands for Hyper Text Markup Language.

HTML is enssential if you want to make a website, it is also very easy once you know how it works.

HTML is made up of tags, like this one <html>. You might see some tutorials that teach you to write in CAPITALS, but you should get used to writing in lower case becasue xHTML (eXtensible Hyper Text Markup Language) only accepts lower case tags and in the futre it will replace HTML.

Each tag must be closed, like this: <html> </html>. The first one is the opening tag and the second one is the closing tag. In html some tags (like the ‘<p>’ paragragh tag) still work if you don’t close them, but you still should because you need to in xHTML.

There are only a few tags that don’t need to be closed, such as the line break tag ‘<br>’, the horizontal rule tag ‘<hr>’, and the input tag ‘<input>’. You can write them like I did just before, but you should write them like this: <br />, <hr /> and <input />. xHTML only accecpts the second type, so i suggest you write them like that.

Let’s start coding!

HTML is very simple, because the tags it is made up of explain themselves.

A basic HTML document should look like this:

<html>
<head>
</head>
<body>
</body>
</html>

The <html> tag tells the browser that everything inbetween it is HTML code. Anything between the <head> tag is not displayed on the page. But you can put other stuff in there like the page title, the page description and keywords and stlye sheets. Everything you want to appear on the page goes between the <body> tag.

<title>
The title tag displays the title of the page up in the top left corner of the browser on the bar that has the minimize and close buttons on it. Yours should say ‘Awesty Productions’ now.
The <title> tag goes between the <head> tags.
You can try it out right now. Open notepad or whatever program you want to use (if you are not sure look up the top) and put in the following code.

<html>
<head>
<title>My first web page!</title>
</head>
<body>
This is my first webpage!
</body>
</html>

Now save that as a .html or .htm file (it doesn’t matter which one, just like .jpg and .jpeg). Open you web browser and click on File > Open File… then select the html file you just made.
There should be a title up the top saying ‘My first web page’ and on the page there should be ‘This is my first webpage!’.

This is the end of this tutorial, but come back soon for part 2 to learn some more tags that you can put between the body tags to make you page look better.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • blinkbits
  • BlinkList
  • blogmarks
  • del.icio.us
  • digg
  • Furl
  • MyShare
  • NewsVine
  • Netscape
  • Reddit
  • Simpy
  • Slashdot
  • StumbleUpon
  • Technorati
  • YahooMyWeb

RSS feed | Trackback URI

18 Comments »

Comment by outbreak42
2006-09-25 13:55:25

Thank you very much… it’s much easier and simple to understand than many tutorials out there.

::cheers::

 
2006-09-25 22:35:16

[…] This is part 2 of ‘Learning HTML’. If you haven’t taken part 1 it is recommended that you do. You can find it here. […]

 
Comment by Adeel
2006-10-26 03:33:18

this is the best site i ever ever seen in my whole life!!!!!!!!!!!!

WOWWWWW!!!!!!!!!!!

 
Comment by H
2006-10-27 12:19:26

It really is helpful for some of my page problem:)
Thanks;)

 
Comment by roy
2006-10-31 19:39:54

this website is intruging

 
Comment by Mugurash
2006-11-06 23:49:18

One thing…when u “save as” in notepad..u dont have any option for Htm or html ! )Unicode, ansi and other types

 
Comment by awesty
2006-11-07 10:50:32

Yep.

In the box where it wants to to type in the file name just put in filename.htm or .html.

 
Comment by Joel
2006-12-05 12:46:22

Thanks for your help. Most tutorials are very technical and take alot of studying. I hope to see more from you in the future. Please send me any other tutorials you have.

 
Comment by Muddassar
2007-01-11 20:21:29

This is SIMPLE and GOOD. Thanks

 
Comment by Daisy
2007-01-13 11:12:41

Cool, this is the first HTML thing I understood!

 
Comment by Bryce K
2007-01-27 08:54:38

wow nice thats really cool

 
Comment by Anomymous
2007-02-15 06:23:16

html is fuuunnnn

 
Comment by Blankycan
2007-04-05 19:49:53

Oooooo…
Thank you so very much for all these turitals :D

 
Comment by Sneha S. Mane'
2007-06-18 21:15:21

Nice,n simple language u have used 4 explainations. Thanks 4 ds Good Tutorial.

 
Comment by Mati Sweyh Subscribed to comments via email
2007-10-23 22:12:38

Hello
I bad gays
I here I with you .

 
Comment by Masterni Subscribed to comments via email
2007-10-24 08:30:08

Greetings
I shall do posts and to read this forum

 
Comment by shanesite Subscribed to comments via email
2008-05-05 01:24:34

Hello awesty! I’ve been doing your flash tutorials and they have been very usefull. As a short break and to deepen my coding understanding i’ve decided to do html. This tutorial was verry good indeed and notepad2 jsut rocked. I’ve got dream weaver, so should i use that or notepad 2?

 
Name (required)
E-mail (required - never shown publicly)
URI
Subscribe to comments via email
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> in your comment.