Hey Everyone!
I'm gonna take some time making a small tutorial for beginners.
First of all, HTML stands for Hyper Text Mark-up Language. HTML is a computer language. To write HTML, you should use Notepad. You can create web pages with HTML that you can host online on a FTP host.
This is the basic way an HTML source code would look like
- Code:
-
<HTML>
<HEAD><TITLE>Enter a title here.</TITLE></HEAD>
<BODY>
Enter anything here
</BODY>
</HTML>
Note that it doesn't matter whether you type in capital or lower-case letters.
Here are some codes:
<b>anything here</b> OR <strong>anything here</strong> are used to make your text
bold. Open the bold tag where you want to start making your text bold, and close it where you want to stop. To close a tag, you must write the same one as the opening tag, but only add a forward slash to it. Ex: <b></b>
<i>anything here</i> is used to
italicize your text. Open the italicize tag where you want to start making your text italic, and close it where you want to stop. To close a tag, you must write the same one as the opening tag, but only add a forward slash to it. Ex: <i></i>
<u>anything here</u> is used to
underline your text. Open the underline tag where you want to start making your text underlines, and close it where you want to stop. To close a tag, you must write the same one as the opening tag, but only add a forward slash to it. Ex: <u></u>
<BR> is used to make a line break. If you just press the Enter button and continue typing, your text will stay on the same line. There is no need to close this tag.
<center>anything here</center> is for placing your text in the middle of the screen. You must remember to close this tag where you want to stop centering your text.
If you want to add a color background to your webpage, you must look at the opening <BODY> tag.
This is what you must do to add background color.
- Code:
-
<BODY BGCOLOR=WhatEverColorYouWant>
This tag must be closed when you've finished doing everything. The closing </BODY> tag must be placed before the closing </HTML> tag.
To insert a horizontal line, simply use this tag:
- Code:
-
<hr>
You do not have to close this tag.
To change the width and color of the line, here's what you must do:
- Code:
-
<hr color=WhatEverColorYouWant width=Percent%>
To change a font color, size, or style, here is what to do:
- Code:
-
<font color=WhatEverColorYouWant size=SizeNumber face=Style Name>type anything</font>
This tag must be closed. Also, about the size, you can only choose numbers from 1 to 7. 7 is the largest.
To insert a text box, here's what you must do:
- Code:
-
<input>
This tag doesn't have to be closed.
To insert a button, here's what you must do:
- Code:
-
<button>Text on button here</input>
This tag must be closed.
To make a marquee, here's what you must do:
- Code:
-
<marquee>Text Here</marquee>
This tag must be closed.
In HTML, you cannot insert more than one space between each word, letter, etc...
Therefore, to place more than one space, insert the following code between each letter or word you want to insert 2 spaces.
- Code:
-
 
If you write this code more than once between a word or letter, it will insert spaces multiplied by the times you wrote   and by 2.
To insert an exponent, simply do this:
- Code:
-
<sup>number here</sup>
This tag must be closed.
To insert a subscript, simply do this:
- Code:
-
<sub>number here</sub>
This tag must be closed.
Well, that's all for the first session. Hope you learned something from it. These are just for beginners. I will make more Tuts soon.
Bye!