
| <html> <head> <title> Title of the document </title> </head> <body> The content of the document ...... </body> </html> |
| <h1> This is heading 1 </h1> <h2> This is heading 2 </h2> <h3> This is heading 3 </h3> <h4> This is heading 4 </h4> <h5> This is heading 5 </h5> <h6> This is heading 6 </h6> |
| <p> This is some text in a paragraph. </p> <p align="left"> Paragraph text align to the left side. </p> <p align="center"> Paragraph text align to center. </p> <p align="justify"> Paragraph text align to justify. </p> |
| This text contains <br/> a line break. |
| Some text here <hr/> and some text here. it make horizontal line between the text Attribute are align (center, left, right) noshade size (specifies the thickness of the horizontal rule. value is in pixels) width(specifies the width of the horizontal rule. value is in %) <hr align="center" size =10 width=50% > |
| click <a hrep-"http://www.yahoo.com"> here </a> to go to yahool. |
| <b>text</b> | write text as bold |
| <i>text</i> | write text in italics |
| <u>text</u> | write underlined text |
| <sub>text</sub> | lower text and makes it smaller |
| <sup>text</sup> | lifts text and makes it smaller |
| <blink></blink> | guess yourself! (Note: Netscape only.) |
| <strikek> |
strikes a line through the text |
| <tt>text</tt> | writes text as on a classic typewriter |
<pre>text</pre> |
writes text exactly as it is, including spaces. |
| <em>text</em> | usually makes text italic. |
| <strong>text</strong> | usually makes text bold. |
| <big>text</big> | increase the size by one |
| <small>text</small> | decrease the size by one |
<h1>text</h1> |
writes text in biggest heading |
<h6>text</h6> |
writes text in smallest heading |
| <font size="1">text</font> | writes text in smallest fontsize. (8 pt) |
| <font size="7">text</font> | writes text in biggest fontsize (36 pt). |
| Hello! This is my First page. This local text looks different. This text looks like the first line. |
|
<html> <head> <title>My Page</title> </head> <body> <basefont color="green" face="arial" size="4"> Hello! This is my page.<br><br> <font color="red" face="arial" size="2"> This local text looks different. </font> <br><br> This text looks like the first line. </body> </html> |
All you need to do is type in the code, then save the document, making sure to put an .html extension or an .htm extension to the file (for instance "mypage.html").
Basically, a computer sees an "A" as simply an "A" - whether it is (bold, italic, big or small).| This is an example of <b>bold</b> text. |
| <html> <head> This section is for the title and technical information of the page </head> <body> This section is for all that you want to show on the page. </body> </html> |
• Text
Formatting
Resizing
Layout
Listing
• Links
To local pages
To pages at other sites
To bookmarks
• Images
Inserting images (GIF and jpg)
Adding a link to an image
• Backgrounds
Colors
Images
Fixed Image
• Tables
• Frames
• Forms
• Metatags
• Hexadecimal Colors
| Structure Tags | |||
| Function | Start Tag | Attribute | Ending Tag |
| HTML File | <html> | none | </html> |
| File header | <head> | none | </head> |
| File title | <title> | none | </title> |
| Comments | <!--> | Your comments go between the start and end tags. Put a space between the -- and your comments. | <!--> |
| Body | <body> | background="filename" bgcolor="color value" text="color value" link="color value" vlink="color value |
</body> |
| Division | <div> | align="right/left/center" style="property:value;" class="classname" |
</div> |
| Span (inline) | <span> | style="property:value;" class="classname" |
</span> |
| Basic Text Tags | |||
| Function | Start Tag | Attributes | End Tag |
| Line Break | <br> | Clear="left/right/all" | </br> or <br/> |
| Paragraph | <p> | align="center/right" | </p> |
| Bold | <b> | none | </b> |
| Italic | <i> | none | </i> |
| Typewriter Text | <tt> | none | </tt> |
| Headline | <h1>to<h6> | align="center/right" | </h1> ---</h6> |
| Font | <font> | face="name, name" size="+/-value/fixed size" color="color value" Note: the font tag is being phased out in favor of CSS styles. |
</font> |
| Horizontal Rule | <hr> | size="XX" width ="XX/XX%" noshade |
</hr> --- <hr/> |
| Block Quote | <blockquote> | none | </blockquote> |
| Division | <div> | align="left/center/right" | </div> |