Вы находитесь на странице: 1из 3

TWO MAIN PARTS OF HTML 1.

Head consist of the titles, subtitles and some other information of the HTML document. It is the first part of the document that has the navigation bar of the user when calling the page. a. The heading is the most currently used to describe the components of the web page. b. It has only six sizes that ranges from 1-6, which 1 is the largest. c. The tag is <head> <h1>your heading goes this way</h1> 2. Body - This part is the largest part of the document where all the main content of the web page is written here. This part contains all the text, images and links that are displayed on the screen. a. The tag is <body> the body goes here</body> THE HTML FORMATTING TAGS 1. The BREAK tag <br> this tag is used to force web browser to move to the next line. It has no end tag. 2. The PARAGRAPH tag <p> </p> is used for inserting paragraphs into your document. It is done by placing a <p> tag at the beginning of the paragraph and </p> at the end of the paragraph. a. The PARAGRAPH ALIGNMENT tag 1. The RIGHT alignment tag <p align =right></p> It enforces the text be displayed at the right alignment of the browser screen.

2. The LEFT alignment tag <p align=left></P> it enforces the text to be displayed at the left alignment of the web browser screen. 3. The CENTER alignment tag <p align=center></p> It enforces the text to be displayed at the center of the browser screen. 4. The JUSTIFY alignment tag<p align=justify></p> it enforces the text to be displayed in justified manner of the browser screen. 3. Formatting FONTS in HTML a. The BOLD text tag <b></b> b. The ITALIC text tag <i></i> c. The UNDERLINE text tag <u></u> d. The TELETYPE text tag <tt></tt> e. The STRIKE-THROUGH text tag <strike></strike> f. The SUPERSRCIPT text tag <sup></sup> g. The SUBSCRIPT text tag <sub></sub> h. The SMALL FONT text tag <small></small>

i. The BIG FONT text tag <big></big> 4. BASE FONT TAGS Netscape does not recognize base font tags but in Internet explorer will do. a. Attributes of a base font tags 1. Face - <font face=font1,font2,font3></font> 2. Size - <font size=N></font> N represents 1-7 numbers. 3. Color -<font color=red></font> color can be on its hexadecimal value Sample: <font face=comic sans size=4 color=red(#ff0000 hex value)> 5. COLORING text and background a. Coloring text using the <body> tag 1. <body text=aqua> 2. <body link=blue> 3. <body vlink=aqua> there are two kinds of links namely the ACTIVE link and VISITED link. a. <body vlink=green alink=blue> b. Two ways to enhance the background with color. i. Add color to it <body bgcolor=blue> ii. Add tiled image to it < body background=img.jpg> 6. Separating text using HORIZONTAL LINES <hr> a. Attributes of <hr> tag 1. Size sets the thickness of the line in pixels 2. Width sets the width if the lines in percentage of the viewing 3. Color sets the color of the line using either rgb value or one of the presets 4. Align aligns the line to the left, right or at the center of the web page <hr size=2 width=75% color=red align=right 7. Using IMAGES in HTML a. The basic IMAGE tag is <img src=image.jpg> i. Alignment tags for Images 1. Left align -aligns the image at the left side of the browser 2. Right align -displays the image at the right side of the browser 3. Center align -sets the image at the center of the browser 4. Top -image will be displayed at the top of the screen 5. Bottom -image will be displayed at the bottom of the screen a. Example: <img src=image.jpg align=bottom> ii. The WIDTH and HEIGHT 1. Attributes

HEXADECIMAL VALUE OF COLORS GREEN LIME NAVY TEAL MAROON #008000 #00FF00 #000080 #008080 #800000 OLIVE YELLOW BLUE AQUA RED #808000 #FFFF00 #0000FF #00FFFFF #FF0000 BLACK SILVER GRAY WHITE FUCHSIA #000000 #COCOCO #808080 #FFFFFF #FF00FF

Вам также может понравиться