You can create Web pages with a standard text editor, such as Notepad, by typing in HTML tags. HTML tags are formatting instructions that tell the Web browser how to display your document. Tags consist of pairs of text words that are each enclosed within less than and greater than signs (< >). For example, the following HTML code displays the word Hello World in bold type face when displayed in a Web browser: <B>Hello World</B>. So, this would appear as Hello World.
You can also nest tags to apply muliple properties. So, to appy italics type face only to the word World, while applying bold type face to the entire statement, you would do the following: <B>Hello <I>World</I></B>. This would appear as: Hello World. Note that you should avoid overlapping tags; the following is not valid HTML syntax and may produce unusual results depending on the type of Web browser: <B>Hello <I>World</B></I>.
To create Web pages with a text editor<HTML> <HEAD> <TITLE> </TITLE> </HEAD> <BODY> </BODY> </HTML>
Tip You should probably review the HTML specification (available from many Web sites on the Internet) to fully utilize and understand HTML. Additionally, use your Web browser's source viewing feature to view the HTML source file for almost any Web page. You can use this feature to learn how other HTML authors have designed their Web pages.
HTML Tag | Description |
---|---|
<P> </P> | Starts, ends a paragraph. |
<Hn> </Hn> | Starts, ends heading text. The value n specifies different font sizes and should be an integer from 1 to 6. |
<U> </U> | Starts, ends underlined text. |
<UL> </UL> | Starts, ends a bulleted list of items. Each list item must begin with a <LI> tag. |
<OL> </OL> | Starts, ends a numbered list of items. Each list item must begin with a <LI> tag. |
<LI> | Denotes a list item. An end tag is not required. |
<B> </B> | Starts, ends boldface type. |
< IMG SRC=image file> | Inserts an image into a Web page. |
< BGSOUND SRC=sound file> | Plays a background sound after the page loads. Note This feature is supported only by Microsoft Internet Explorer version 2.0 or later. |
<FONT SIZE=n FACE=font type> < /FONT > | Starts, ends text font characteristics, for example size, color, or typeface. |
<A HREF=file > </A> | Creates a hyperlink to a location in a file or to another document. For example, the following creates a link that users can click to view another HTML document: <a href="mainpage.html"> Go back to main page. </a> |
<HTML> </HTML> | Indicates that the contents of the file are in the HTML language. Typically, these are the first and last tags in every HTML document. |
<HEAD> </HEAD> | Contains HTML document heading information, such as the document title and other descriptive information. Web browsers and Web page search programs can use this information. However, you should not put the text of your document within this tag. |
<TITLE> </TITLE> | Denotes the title of the HTML document. The title appears in the Web browser's title bar, but not with your main text. |
<BODY> </BODY> | Contains content that you want to appear on your Web page. |