How to get started with HTML

How to create a HTML Document


There are many ways you can make a HTML page. You can make them on:
A websitePros:Instant Publishing
Cons:Some websites cost money, free sites may also occasionally crash
If you want a good free hosting website use UEUO.
A Word Editor like NotepadPros:Good for practice, Never Crashes
Cons:No Instant Publishing, No error checker
Many people use notepad while they are training. Every computer comes with either notepad or wordpad, they are basic but they work fine... If you want a more HTML programming friendly program that is free try HTML Notepad.
A professional program like DreamweaverPros:Error Checker, Not much coding experience needed
Cons:Can be very costly
Many people that don't know HTML as well just use programs like Adobe Dreamweaver, but programs like that can cost $100-$400. You do not really learn the code and it is what people call a "box software" but it does get the job done.


When you start up any HTML document you want to put <html> at the top of the page, and </html> at the bottom.

Your html document should look like this.

When you save your document you want to save your file ending with .html, which saves it into a html document. E.X. Myfile.html

To open up your html document with your internet browser to see what your html page will look like just find your html file where ever you saved it. Then double click it.
To open your html document so you can edit it you must right click it instead of left clicking, and a menu will pop up. Then from the menu go to Open with<<notepad. or wordpad, etc.



When you want to do something in html you use commands. <Command> When you add that your command is now active at every point after the command to the end of the page. To end a command you add </Command>, its usually just your opening command with a backslash / infront. Make sure whats in the Angle Brackets< > is the same in your opening command, and your closing command.
Second tab content
Third tab content

#2

The following "formatting" tags are simply just to format your text. To use these all you have to do is create your opening and closing tags of whatever text formatting property you want, and then insert the text you want to have those properties in between the tags.
Tag
Name
Example
Output
<b> Bold <b>Example</b> Example
<u> Underline <u>Example</u> Example
<i> Italic <i>Example</i> Example
<tt> Teletype <tt>Example</tt> Example
<blink> Blink <blink>Example</blink> Example
<strike> Strike <strike>Example</strike> Example
<big> Big <big>Example</big> Example
<small> Small <small>Example</small> Example
<h1>
<h2>
<h3>
<h4>
<h5>
<h6>
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
<p align="left"> Align Left <p align="left">Example</p align="left"> Example
<p align="right"> Align Middle <p align="middle">Example</p align="middle"> Example
<p align="right"> Align Right <align="right">Example</align="right"> Example
Tag
Name
Example
Output
<font size="10"> Font Size <font size="10">Example</font> Example
<font face = "Old English Text MT"> Font Face <font face = "Old English Text MT">Example</font> Example

#3

First tab content.
Second tab content
Third tab content

#4

First tab content.
Second tab content
Third tab content

#5

First tab content.
Second tab content
Third tab content

#6

First tab content.
Second tab content
Third tab content

ATTENTION: I will not longer be working on this tutorial... All of my tutorials will now be held on my new site.
Back to Education Back to Programming
HTML C# C++
Choose A Section

Getting Started with HTML           Text Formatting           Working with Pictures           Links           Text Boxes & Tables           Lists           Other          




Free Web Hosting
Getting Started with HTML

There are alot of ways you can make a html page. You can either use a site the allows you to make pages with html and put then online. If you dont know a site you want use FREETZI. If you want to just make a page with html on your computer thats not online or to practice with you can use notepad or wordpad.


When you start up any HTML document you want to put <html> at the top of the page, and </html> at the bottom.


Your html document should look like this.


When you save your document you want to save your file ending with .html, which saves it into a html document. E.X. Myfile.html


To open up your html document with the internet to see what your html page will look like just find your html file where ever you saved it. Then double click it.

To open your html document so you can edit it you must right click it instead of left clicking, and a menu will pop up. Then from the menu go to Open with<<notepad. or wordpad, ect.



When you want to do something in html you use commands. <Command> When you add that your command is now active at every point after the command to the end of the page. To end a command you add </Command>, its usually just your opening command with a backslash / infront. Make sure whats in the Angle Brackets< > is the same in your opening command, and your closing command.


To Title your page put <Title>Title Name</Title> somewhere in your document. I usually just put at top, right under <html>.

Title is What you see at the top of your internet browser and on the tab bar.


NOTE: You can have any kind of capitals when you are making a command. It could be <title>, <TITLE>, <TiTlE>, it doesn't matter.



Text Formatting

Here are just a bunch of ways you can format your text.

Tag
Name
Example
Output
<b> Bold <b>Example</b> Example
<u> Underline <u>Example</u> Example
<i> Italic <i>Example</i> Example
<tt> Teletype <tt>Example</tt> Example
<blink> Blink <blink>Example</blink> Example
<strike> Strike <strike>Example</strike> Example
<big> Big <big>Example</big> Example
<small> Small <small>Example</small> Example
<h1>
<h2>
<h3>
<h4>
<h5>
<h6>
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
<br> Line Break First Line<br>Second Line First Line
Second Line
<hr> Horizontal Rule <hr/>
<hr> Horizontal Rule <hr width="75%" size="7" />
<hr> Horizontal Rule <hr width="30" size="7" noshade />
<hr> Horizontal Rule <hr width="100%" color="#ff0000" size="4" />
Font Size <font size=10>Example</font size=10> Example
<p align="left"> Align Left <p align="left">Example</p align="left">

Example

<center> Align Center <center>Example</center>
Example
<p align="right"> Align Right <p align="right">Example</p align="right">

Example

<font size="10"> Font Size <font size="10">Example</font> Example
<font face = "Old English Text MT"> Font Face <font face = "Old English Text MT">Example</font> Example


Working with Pictures

To put a picture on a page you can do this <img src="http://link you found picture">, It should end it like .jpg, or .gif, ect..
Heres a Example <img src="dwb.ueuo.com/Matrix.jpg">

This is the picture in its original form.


To Change picture size you would add this.


<img src="http://link you found picture" width="300" height="300">
Heres a Example <img src="images/Matrix.jpg" width="300" height="300">

Pretty simple After file you add width="size#" height="size#" The bigger width is the bigger it is from left to right, and the bigger the height is it gets bigger up and down.


To add a border to a picture you add this.


<img src="http://link you found picture" width="300" height="300" BORDER=3 BORDERCOLOR=RED >
Heres a Example <img src="Matrix.jpg" width="300" height="300" BORDER=3 BORDERCOLOR=RED >

Pretty simple After file you add border=Size# The bigger the number the wider the border around the picture is, and for BORDERCOLOR=AnyColor


Make a Image a Clickable Link

To make a Image so you can click it and it will redirect you to another site or page you would add these statements.
<A href="Link Sent To"><IMG SRC="Link of Image"></A>


Image Mapping

To make a image map you first need to add a image.
<img src="Picture link" width="Width Size" height="Height Size" alt="Picture Name" usemap="#Map Name" />
You can see at the end I added alt="Picture Name" usemap="#Map Name". I added alt="Picture Name" so you can easily refer back to any image.
I added usemap="#Map Name" because that makes a picture into the map.
You can see I have width="Width Size" height="Height Size" because it is very, very useful to set a picture to a specific size so then you know exactly what the size is.
This makes it a lot easier when setting coordinates.


Next you should add <map name="Map Name">
This statement says that this is where we are going to start to work on our Image Map.
Then after that just add </map>
This statement simply says this is where our Image map ends.
So all the code between those two statements will go into making your Image Map.


Every clickable shape you want to add on your picture you should have something similar to this.
<area shape="shape" coords="number 1,number 2,number 3, ect." href="Link to Picture" alt="Picture1 Name" />

Now to break all that down.
area shape="shape"
This states what shape you are trying to make on the Image Map.
You can make a Rectangle by adding rect in between the " "(QuotationMarks)
You can make a Circle by adding circle in between the " "(QuotationMarks)
You can make a Polygon(Polygon can be Triangle, Pentagon, Hexagon, Octagon, ect.) by adding poly in between the " "(QuotationMarks)


coords="number 1,number 2,number 3, ect."
This states where you are going to put your shape on the Image Map
There are different kinds of coordinates for each shape.
For a rectangle You have 4 Coordinates X1,Y1,X2,Y2.(X is Horizontal (Left to right), Y is Verticle(Up and Down))
X1 & Y1 are coordinates for the top left corner. While X2 & Y2 are coordinates for the bottom right corner.


For a circle You have 3 Coordinates X1,Y1, Radius.
X1 & Y1 are coordinates for the center of the circle. While radius are coordinates for how far the circle will go out from the center point.


For a Polygon You have Any evenamount Coordinates X1,Y1,X2,Y2,X3,Y3, ect..
For a Polygon you can enter any amount of X,Y coordinents, Make sure you have same amount of X,Y coordinates, and they are in order.
Every single X,Y coordinate makes a point on your picture, after all your points are made, this statement connects them and then makes area between all the points the clickable area.


Then you simply add the statement that will load the page you want everyone to be directed to when they click your shapes coordinent.
href="Put Link Here"


Then you add this statement. It is very simple and just makes it easier for you to refer back to your link.
alt="Picture1 Name"


Then you just finish this whole statement with /> to rap everything up.


Here is my Example.


Planets Sun Mercury Venus Earth Mars Jupiter Saturn Uranus Neptune Pluto

Here is the html code I used to make this Image Map.


<img src="http://web.jjay.cuny.edu/~acarpi/NSC/images/9planets.jpg" width="559" height="321" alt="Planets" usemap="#planetmap" />
<map name="planetmap">
<area shape="circle" coords="-44,206,79" href="http://science.nationalgeographic.com/staticfiles/NGS/Shared/StaticFiles/Science/Images/Content/glowing-sun-sun-prominence-ga.jpg" alt="Sun" />
<area shape="circle" coords="71,221,6" href="http://image01.ctvdigital.com/images/pub2upload/2/2008_1_15/mercury-far-side-first-imag.jpg" alt="Mercury" />
<area shape="circle" coords="105,215,14" href="http://esamultimedia.esa.int/images/venusexpress/50_VENUS8_H.jpg" alt="Venus" />
<area shape="circle" coords="142,212,10" href="http://youthenergy.ca/wp-content/uploads/2009/04/earth-image.jpg" alt="Earth" />
<area shape="circle" coords="183,208,11" href="http://spiff.rit.edu/classes/phys230/lectures/seti/mars_big.jpg" alt="Mars" />
<area shape="circle" coords="233,200,30" href="http://thebigfoto.com/wp-content/uploads/2009/04/jupiter.jpg" alt="Jupiter" />
<area shape="circle" coords="297,202,16" href="http://www.paulrdavis.com/SaturnComplete.jpg" alt="Saturn" />
<area shape="circle" coords="373,190,16" href="http://thedailytamasha.files.wordpress.com/2009/02/uranus-the-seventh-plant.jpg" alt="Uranus" />
<area shape="circle" coords="468,183,14" href="http://superkillerzombie.files.wordpress.com/2009/01/neptune.jpg" alt="Neptune" />
<area shape="circle" coords="537,169,6" href="http://www.iranian.com/main/files/blogimages/pluto.jpg" alt="Pluto" />
</map>




Links
To put a link on the page you can add the following code.
<A HREF = "Site">Text shown as link</A>

E.X. <A HREF = "http://www.google.com">Text you want to be clicked</A>

Text you want to be clicked

As you can see right before the</A> is the text shown and what is between the " "(Quotation Marks) is the link you want to be directed to when you click it. My Example is linked to Google (http://www.google.com). Don't forget to add the http:// !

Links can go anywhere text can go Lists, Tables, Forms, ect.

To place Links into Forms or tables Please Look at My Text Boxes & Tables Lesson and just paste the link code where you would put normal text.


To put a link on the page that will bring you to a certain section of the page.

To put a link leading to another part of the same page you have a couple variables.
<A NAME = "SectionName">
<A HREF="#SectionName">VisualSectionName</A>


<A NAME = "SectionName"> This states that the spot on the page you place this will be named what you call with whatever you put in between the " "(Quotation Marks). This also makes it possible to refer back to that exact spot later.
Note: you will not see the actual name of the section on your page when its loaded. Also that The page is redirected to your section the page will load with where you put the Section Name at the very top of the page.

<A HREF="#SectionName">VisualSectionName</A> This states the place where the actual link will be placed on your page, when you click it your page will direct you to where ever you set the Naming Statement. The Page will load

Here is an Example:
<A HREF="#LinksSection">Links</A>
I also placed <A NAME = "LinksSection"> at the top of my Link Tutorial Section.
Result
Links
Notice in the link bar that after my link it says #LinksSection saying that this is the part of the page you loaded.


Link to Email

To use a link to open Microsoft Office Outlook or some other email program, so when people click on a link they can email you, you can add this.
<A HREF="mailto:youremail@yourprovider.com">Your Name</a>


To break this down you can see it has (<A HREF=) Which means that there is a link and it equals "mailto:youremail@yourprovider.com"
mailto: is just a quick statement defining that you will be sending a email so it opens the appropriate program. Make sure (mailto:youremail@yourprovider.com) is between the " "(Quotation Marks).

After that it is pretty simple Before the @ symbol is your personal email name (E.X. GameMaster365, Lol247, MasterCheifRules987)
After the @ is your email provider, (E.X. @yahoo.com, @gmail.com, @hotmail.net.)


To have people able to send emails to you through a forum or something please look at my Forum Tutorial.


To put a Link into a drop down list that's clickable add this.

<form name="jump">
<select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">
<option value="Site 1 Link">Site 1 Text</option>
<option value="Site 2 Link">Site 2 Text</option>
<option value="Site 3 Link">Site 3 Text</option>
</select>
</form>


Here is my example...

<form name="jump">
<select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">
<option value=http://www.google.com">Google</option>
<option value="http://www.youtube.com">Youtube</option>
<option value="http://www.yahoo.com">Yahoo</option>
</select>
</form>

Result




Text Boxes & Tables

Add a Text Box
To add a text bow where someone can enter there own text enter the following code.
<TEXTAREA NAME="text" COLS=#ofColumns ROWS=#ofRows></TEXTAREA>
This is pretty simple, TextArea states that this is a place where a user can enter text. Name="Text: is just what you would make the textbox. (Cols=#ofColumns)states how many Columns(Vertical Up&Down) there will be in the text box. (Rows=#ofRows) states how many Rows(Horizonal Left&Right) there will be.

Example
<TEXTAREA NAME="text" COLS=40 ROWS=#10></TEXTAREA>

Result






To make a textbox where someone can't change the text inside you can add this.
"readonly"
This makes it so someone can only read the textbox and not alter it.
Example
<TEXTAREA NAME="text" COLS=40 ROWS=#1 "readonly">
You can not edit this. </TEXTAREA>

Result:


To add a drop down selection box add the following code.

Select an option:
<form>
<select>
<option>option 1</option>
<option>option 2</option>
<option selected>option 3</option>
<option>option 4</option>
<option>option 5</option>
<option>option 6</option>
</select>
</form>
Note: The option selected one is the one that the box is defaulted and set to when the page is first loads.

Select an option:




Lists

It is very easy to make a list.

Here is a example of a basic numbered list
<OL> means Ordered List
<LI> means List Item


<ol>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
</ol>
Numbered
  1. Item 1
  2. Item 2
  3. Item 3
  4. Item 4
To Change list type all you have to do is change the Ordered List at the beginning of the list.
<ol start="5">
Numbered Special Start
  1. Item 1
  2. Item 2
  3. Item 3
  4. Item 4

<ol type="a">
Type="a" States that the list will be made with lowercase letters.
Lowercase Letters
  1. Item 1
  2. Item 2
  3. Item 3
  4. Item 4

<ol type="A">
Type="A" States that the list will be made with uppercase letters.
Capital Letters
  1. Item 1
  2. Item 2
  3. Item 3
  4. Item 4
<ol type="A" start="3">
Type="A" States that the list will be made with uppercase letters.
start="3" States that this list will start at the third item in the list.
Capital Letters Special Start
  1. Item 1
  2. Item 2
  3. Item 3
  4. Item 4

<ol type="i">
Type="i" States that the list will be made with lowercase Roman Numerals.
Lowercase Roman Numerals
  1. Item 1
  2. Item 2
  3. Item 3
  4. Item 4

<ol type="I">
Type="iI" States that the list will be made with uppercase Roman Numerals.
Capital Roman Numerals
  1. Item 1
  2. Item 2
  3. Item 3
  4. Item 4

<ol type="i">
Type="i" States that the list will be made with lowercase Roman Numerals.
start="9" States that the list will start at the nineth item in the list.
Capital Roman Numerals Special Start
  1. Item 1
  2. Item 2
  3. Item 3
  4. Item 4


Symbols on lists


To put symbols in a list you add type="symbol" after the Opening LI Statement.

You can add symbols like circles, squares, disks.


Here is a Example

<li type="circle">List item 1</li>
<li type="square">List item 2</li>
<li type="disk">List item 3</li>

  • List item 1
  • List item 2
  • List item 3



  • Other

    Defenitions

    <DL> means Definition List.
    <DT> means Definition Term.
    <DD> means Definition Description.

    Example

    <dl>
    <dt><b>Definition Term</b></dt>
    <dd>          Definition Description</dd>
    <dt><b>Definition Term</b></dt>
    <dd>          Definition Description</dd>
    </dl>

    Results

    Definition Term
              Definition Description
    Definition Term
              Definition Description



    Marquee


    To add a Marquee on your page you can add that following code.
    <marquee bgcolor="#Color Code" loop="-1" scrollamount="2" width="50%">Example Marquee</marquee>

    Now to break that down.

    marquee is a simple function saying that you are going to make a marquee.

    bgcolor="#Color Code" bgcolor means backgroundcolor. Then this statement says it equals "#Color Code".
    A Color code should look like "#FF0000"(Red), "#2B60DE"(RoyalBlue), "#00FF00"(Green). You can get the HTML Color Code for any color
    Here.

    loop="-1" Loop means how many times it will scroll across before it stops. I set it to -1 because it will never go -1 times around so it will go around forever.

    scrollamount="2" ScrollAmount is how fast your text will scroll across your marquee.

    width="50%" Width means How long it will be (Horizontally). You can set this to a percent so when people open your page at different screen sizes It will keep the same ratio.

    Then finally between the (>) Closing of the opening statement, and the (</marquee>) Closing statements you will put the text that you want to show scrolling across the screen in the marquee.

    Example
    <marquee bgcolor="#00FF00" loop="-1" scrollamount="2" width="50%">My Example of a scrolling Marquee</marquee>

    Result
    My Example of a scrolling Marquee

    Check Box and Radio


    To add a Radio you would add this.

    <form method=post action="/cgi-bin/http:YourSiteCGIBin">
    Select an option:
    <input type="radio" name="option"> Option Item 1
    <input type="radio" name="option"> Option Item 2
    <input type="radio" name="option"> Option Item 3
    </form>

    Result:

    Select an option:
    Option Item 1 Option Item 2 Option Item 3


    Most Sites have a CGI bin, this is where something like polls, statistics and everything are kept like a database.
    You can just add the link to your CGI bin. Then when the information is sent the information will be sent into your CGI bin which you later on can access by logging into where ever you made it and looking at your data.
    Input type="radio" states that the shape of when you are choosing is a radio, which is a circle.
    name="option" states that someone can only choose one of the options not multiple.



    To add a checkbox you would add this.

    <form method=post action="/cgi-bin/http:YourSiteCGIBin">
    Select an option:
    <input type="checkbox" name="selection"> Selection Item 1
    <input type="checkbox" name="selection"> Selection Item 2
    <input type="checkbox" name="selection"> Selection Item 3
    <input type="Submit" value="Submit">
    </form>

    Result:

    Select an option:
    Selection Item 1 Selection Item 2 Selection Item 3


    A checklist also has the same thing you need to add for the CGI bin because anything you want to recieve information from other people needs a CGI bin to collect it.
    Input type="checkbox" states that the shape of when you are choosing is a checkbox.
    name="selection" states that someone can choose any of the options, whether its none, one, multiple, or all.
    input type="Submit" value="Submit" is simply just adding a submit button.




    I Hope you liked this Tutorial. Please tell me what you think or what I can add by emailing me on my Any Ideas? page.