Post a New Question | Current Questions | Chat With Live Tutors
Homework Help: Computers: Programming Languages: HTML Tags
Jason Foss
Mark Up Tags
In HTML, mark up Tags are used in an HTML document to make the text do what you want it to.
HTML
At the very beginning of any HTML document you must type <HTML> and then at the end you must type </HTML>. It tells your browser that it is viewing a HTML document.
Head
The Heading is the first part of your HTML document. You place the title here. Start the head with <HEAD> and end it with </HEAD>.
Title
Title is what is displayed at the top of the browser's screen. The title should be entered in the HEAD of the document and is entered like this <TITLE>The Page title</TITLE>.
Body
The Body is the main Part of any HTML document. This is where you add your pages text. Body is entered like this <BODY> You add all the text you want and when you're done, time for you to add </BODY>.
Headings
Headings are the title of individual paragraphs or parts of a page. There are 6 different levels of headings, 1 being the most prominent. Headings are add like this: <H#>text of heading<h#>.
Paragraphs
Paragraphs are formed by adding a <P> to the beginning and </P> to the end.
Lists
There are 2 types of lists, numbered and unnumbered. The code for a list is as follows: <UL>Title of list <LI>item <LI>item 2 <LI>item 3 </UL> That will produce this form
Title of list
- item
- item 2
- item 3
For a numbered list, replace the UL's with OL's. An example of a number list is
3 things
- Cat
- Dog
- Goat
Preformatted Text(pre)
The preformatted text is for text that has been preformatted. Preformatted text will be cut in half, but preformated responds to carriage returns. To put something into the preformatted format, put a <PRE> at the beginning and a </PRE> at the end.
Forced Line Breaks
To start a new line outside of the PRE format, simply type in <BR> and the text will end on one line and start another.
Horizontal Rules
To create a horizontal line across the screen (a divider), simple type in <HR> and line will form below the current line of text. Looks like this
Formatting Text
The Following examples are how to change the type of font.
Bold
To make something bold, type <B> at the beginning and </B> at the end.
Italics
To make something Italic, type <I> at the beginning and </I> at the end.
Underlined
To underline something, type <U> at the beginning and </U> at the end.
Fixed Width font, Typewriter Text
To typewriter Text an area, type <TT> at the beginning and </TT> at the end.
Codes for displaying <, >. and &
(Case Sensitive!)The <, >. and & characters have special meaning and can't be displayed by simply typing them in. To display a < type in <. For >, type in >, and for &, type in &
Linking
The main feature of HTML is how easy it is to link to other pages and E-mail addresses.
Other Address
To link to another e-mail address, all you have to do is type this in: <A HREF=URL HERE>Type in the word that will like it here</A>
E-mail addresses
For E-mail Address, type this in <A HREF=mailto:E-mail Address Here>The Word that will be the link here</A>
Finished Document
This following is the basic programming you need to have in your html document Note: The link I have provided is just an example and does not need to be in your document. You don't need a link to create a HTML document.
<HTML> <HEAD> <TITLE></TITLE> </HEAD> <BODY> <P>This is the first paragraph</P> <P>This is the second paragraph</P> </BODY> </html>
Homework Help: Computers: Programming Languages
For Further Reading
|