Basic HTML Tags For Beginners
72HTML Tags
Now that you have read my How To HTML Code For Dummies you are ready to learn about HTML tags.
HTML tags are used to modify many different aspects of your web page.
This guide will teach you some of the basic tags used in HTML coding.
Background Tags
You can use tags to change the background of your web page.
To change the background you have to add to the <BODY> tag.
To add color to your page you have to add a <BACKGROUND COLOR> tag, or <BGCOLOR="color">
Sample:
<HTML>
<HEAD>
<TITLE>
Dingy's Website
</TITLE>
</HEAD>
<BODY BGCOLOR=RED>
Hello, welcome to my web page. This is a sample website that I made for you to change!
</BODY>
</HTML>
You can also add an image, from your computer, to your background. Simply replace "imagefile.jpg" below with the name of the image on your computer that you want to use.
Sample:
<HTML>
<HEAD>
<TITLE>
Dingy's Website
</TITLE>
</HEAD>
<BODY BACKGROUND="imagefile.jpg">
Hello, welcome to my web page. This is a sample website that I made for you to change!
</BODY>
</HTML>
Font Tags
There are many ways that you can create special, unique text on your webpage.
Some of the basic font editing tags are bold, italic, and underlining. Then you can change the size and color as well.
We'll start with the first three tags that I mentioned. These are very easy to learn, use, and remember.
Note: always remember to close("/") your tags.
<B>This is how you code BOLD text</B>
<I>This is how you code ITALIC text</I>
<U>This is how you code UNDERLINED text</U>
These codes are very easy to remember; B=Bold, I=Italic, and U=Underlined.
Now you are ready to change the size of your text. The way you change text size is by using a "font" tag.
<FONT SIZE=12>This is size 12 text.</FONT>
<FONT SIZE=18>This is size 18 text.</FONT>
<FONT SIZE=5>This is size 5 text.</FONT>
Play around with text sizes until you find the size that fits your page.
After you find the text size to use, you need to figure out what color you would like your text to be, default text color is black so if you don't code in a text color your text will automatically be black.
Here's how you change the text color.
<FONT COLOR=RED>This text is red!</FONT>
<FONT COLOR=GREEN>This text is green!</FONT>
<FONT COLOR=LIGHTGREEN>This text is light green!</FONT>
Notice that there is no space in "lightgreen" in the html code! Do not put a space here or the code will not work correctly.
You can simply put the name of a color in your code or you can put the color's code number from a color chart that can be found either on your computer(paint) or through a web search. An example is;
<FONT COLOR=330033>This text is purple!</FONT>
Now you can put it all together!
<FONT SIZE=22 COLOR=330033>This text is size 22 and the color is purple(330033)</FONT>
<FONT SIZE=10 COLOR=RED><B><I><U>This text is size 10, red, BOLD, italic, and underlined!</FONT>
Try these out and play with the codes and see what you come up with!
Spacing
Know you know how to enter text on your website and how to customize your background and fonts. How about spacing it all out?
You don't want your paragraphs to be crunched together, right?
Your web browser will automatically crunch everything together, so you have to tell it not to.
Here's how you fix that...
<HTML>
<HEAD>
<TITLE>
Dingy's Website
</TITLE>
</HEAD>
<BODY BACKGROUND="imagefile.jpg">
Hello, welcome to my web page. <P>This is a sample website that I made for you to change!</P>
</BODY>
</HTML>
Notice the "P" in the code? That is a paragraph tag! Look at what it does to that sentence in your web browser.
A paragraph tag does exactly what it sounds like, it makes a new paragraph!
What if you want the text right below another sentence with no space?...
<HTML>
<HEAD>
<TITLE>
Dingy's Website
</TITLE>
</HEAD>
<BODY BACKGROUND="imagefile.jpg">
Hello, welcome to my web page. <BR>This is a sample website that I made for you to change!</BR>
</BODY>
</HTML>
Did you see the difference there? The "BR" tag makes a break in the text, instead of having a space between the two sentences you just have one line under the other!
These two are pretty easy to remember too!
BR=Break(no space)
P=Paragraph(space)
The End
Now you know a little bit more about HTML coding your webpage.
Please keep an eye out for my following hubs on HTML coding!
Thanks and Good Luck with your webpages!
PrintShare it! — Rate it: up down flag this hub
Comments
VERY IMFORMAL i was basicly the same as mary may!!!
wow this is good









Mary May says:
3 months ago
This is GREAT! It really helped me at school! I even got perfect and my classmates PRAISED me caused it is so simple but still AMAZING!
THANK YOU! THANK YOU! THANK YOU!