Let’s create a simple page that’s in the programming arena as “Hello World”. Generally as you learn new programming languages the first thing you learn how to do is get the language to say hi to everyone. Let’s start.
Here is the proper way to create a webpage that says “Hello World!”
Type the Start and End HTML tags into a new HTML document you created with notepad.
<HTML>
</HTML>
In between these two tags you will type all of the code related to this page. The proper way to write text in HTML is to use the <p></p> tag, this stands for paragraph.
<HTML>
<P>Hello World!</P>
</HTML>
Click “Save” after typing this. Then go view it in Internet Explorer!
When you open this up in Internet Explorer, you should see at the top right corner Hello World! Congratulations! Lets move on now to formatting the text.
You have just learned how to create a webpage and add text. What if you wanted the text aligned left, center or right? Here’s how you would do it.
<HTML>
<P align=right>Hello World!</P>
</HTML>
You can change the word "right" to left or center as well. Now you know how to write paragraphs and align text, let’s add some color to the text, bold the text and italicize it.
Adding some color. You must use a new tag called <Font></Font>. The below example will show you Hello World! in red. Type any color you want, it knows most common colors. The more complicated colors can be used by adding the rgb number instead of stating the color name.
<HTML>
<P align=right> <font color=red>Hello World!</font></P>
</HTML>
Bolding the text using the <B></B> tag.
<HTML>
<P align=right><B>Hello World!</B></P>
</HTML>
Italicizing the text using the <I></I> tag.
<HTML>
<P align=right><I>Hello World!</I></P>
</HTML>
Congratulations, you have just learned how to create you own web pages and how to add and format text.