| Basic HTML Tags |
Text is formatted in HTML by the use of markup tags. Below are listed some of the basic tags most commonly used. The basic structure of an HTML document is as follows:
Some tags have a beginning and ending tag while others don't require ending tags. Each line break or paragraph requires a tag since HTML doesn't see carraige returns, indentations, or white space. For a more complete list of tags see the Bare Bones Guide to HTML.
| The Code in This Column... | Will Display Like This |
|---|---|
|
<HTML> <HEAD> <TITLE>Simple Page</TITLE> </HEAD> <BODY> Hello World! </BODY> </HTML> |
Hello World! |
| The Code in This Column... | Will Display Like This |
|---|---|
|
<HTML> <HEAD> <TITLE>Simple Page</TITLE> </HEAD> <BODY> <B>Hello</B><I>World!</I> </BODY> </HTML> |
Hello World! |
| The Code in This Column... | Will Display Like This |
|---|---|
|
<HTML> <HEAD> <TITLE>Simple Page</TITLE> </HEAD> <BODY> <H1>Hello World!</H1> <H2>Hello World!</H2> <H3>Hello World!</H3> <H4>Hello World!</H4> <H5>Hello World!</H5> </BODY> </HTML> |
Hello World!Hello World!Hello World!Hello World!Hello World! |
| The Code in This Column... | Will Display Like This |
|---|---|
|
<HTML> <HEAD> <TITLE>Simple Page</TITLE> </HEAD> <BODY> Hello World!<BR> How Are You?<P> I'm a little confused, myself. </BODY> </HTML> |
Hello World! How Are You? I'm a little confused, myself. |
| The Code in This Column... | Will Display Like This |
|---|---|
|
<HTML> <HEAD> <TITLE>Simple Page</TITLE> </HEAD> <BODY> Hello World!<BR> How Are You?<BR> <HR> I'm a little confused, myself. </BODY> </HTML> |
Hello World! How Are You? I'm a little confused, myself. |
| The Code in This Column... | Will Display Like This |
|---|---|
|
<HTML> <HEAD> <TITLE>Simple Page</TITLE> </HEAD> <BODY> <H2>A Greeting</H2> <HR> Hello World!<BR> I am trying to learn how to write my own HTML pages and it's a <I>lot</I> easier than I thought.<P> But I'm a little confused. </BODY> </HTML> |
A GreetingHello World! I am trying to learn how to write my own HTML pages and it's a lot easier than I thought. But I'm still a little confused. |
| The Code in This Column... | Will Display Like This |
|---|---|
Sometimes text has to line up.<P> <PRE> ^ ^ O O L \___/ </PRE> |
Sometimes text has to line up.
^ ^ O O L \___/ |
Sometimes text has to line up. ^ ^ O O L \___/ |
Sometimes text has to line up. ^ ^ O O L \___/ |