Top Banner
WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis Seapan Instructors : HTML Tags to format your text
22

WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

Dec 22, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

WEB PAGES: CREATING AND MAINTAINING **

Tom Keane & Mayis SeapanInstructors:

HTML Tags to format your text

Page 2: WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

Basic HTML Tags

<HTML> </HTML>

<HEAD> </HEAD>

<TITLE> </TITLE>

<BODY> </BODY>

On ALL Web Pages

Page 3: WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

<H1…6> </H1…6>

THE HEADING TAG

<H1> </H1>

<H2> </H2>

<H3> </H3>

<H4> </H4>

<H5> </H5>

<H6> </H6> smallest

largest

HEADING

HEADING

Note!

• Always on its own line !

<H2>HEADING </H2>

<H4>HEADING</H4>

Page 4: WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

Tag Options

<H1…6> </H1…6>

THE HEADING TAG

ALIGN = “left, right, center”This is Centered

This is left

This is right

<h2 align=“center”>This is centered</h2>

<h1 align=“left”>This is left</h1>

<h2 align=“right”> This is right </h2>

Page 5: WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

Tag Options

<P> </P>

Paragraph Tag

ALIGN = “Left, Right, Center”

<P align=“left”>

<P align=“right”>

<P align=“center”>

Default

<P align=“center”>This text will be centered</P>

Page 6: WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

No Tag Options

<BR>

Break Tag

Starts a new lineSimilar to a carriage return but does not start a new paragraph

Does not need to be “closed”

This is the first line

This is the next line

This is the first line <BR> This is the next line

Page 7: WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

Main HeadingAll of this paragraph

is centered on the page

<h1 align = “center”> Main Heading </h1>

<p align=“center”>

All of this paragraph<br>

is centered on the page <br>

</p>

Page 8: WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

Basic HTML Tags

<B> </B> - bold

<I> </I> -italic

<U> </U> -underline

Text Formatting Tags

<SUB> </SUB> = Subscript

e.g. H2O

<SUP> </SUP> = Superscript

e.g. Today is February 25th

H<sub>2</sub>O

Today is February 25<sup>th</sup>

Page 9: WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

Basic HTML Tags

< P > < /P >

< BR >

<B> < /B >

< I > < /I >

<U> </U>

Formatting Tags

<SUB> </SUB>

<SUP> </SUP>

&nbsp; non-breaking spaceThis is one space, but this has extra spaces.

This is one space, but &nbsp; &nbsp; &nbsp; this has extra spaces.

Page 10: WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

Main HeadingAll of this paragraph

is centered on the page

<h1 align = “center”> <u>Main Heading </u></h1>

<p align=“center”>

All of &nbsp; <b> this paragraph </b><br>

is <u><i> centered </i></u> on the page <br>

</p>

Page 11: WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

Tag Options

<FONT> </FONT>

THE FONT TAG

SIZE

COLOR

FACE

Page 12: WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

Tag Options

<FONT> </FONT>

THE FONT TAG

SIZE = “1 … 7”

<FONT size=“1”>

<FONT size=“2”> <FONT size=“3”>

<FONT size=“4”> <FONT size=“5”> <FONT size=“6”>

<FONT size=“7”>

smallest

largest

This is LargeThis is <font size=“7”>Large</font>

Default

Opposite to the Heading tag

Page 13: WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

Tag Options

<FONT> </FONT>

THE FONT TAG

color = “one of 16 standard colors”

<FONT color=“red”> aqua

black

blue

fuchsia

gray

green

lime

maroon

navy

olive

purple

red

silver

teal

white

yellow

This is: red and blue

This is: <font color=“red”>red</font> and <font color=“blue”>blue</font>

Page 14: WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

Tag Options

<FONT> </FONT>

THE FONT TAG

This is <FONT size=“7” color=“green”>Large & Green</FONT>

This is Large & Green

This is <FONT size=“7”><font color=“green”>Large & Green</font></FONT>

Options may be grouped or distributed

Tags should be “nested”

Page 15: WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

This is Large & Green

This is <FONT size=“7”><font color=“green”>Large & Green</font></FONT>

This is Large & Green only largeThis is <FONT size=“7”><font color=“green”>Large & Green</font>only large</FONT>

Page 16: WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

Tag Options

<FONT> </FONT>

THE FONT TAG

FACE = “name1, name2, name3, …”

These are different types of Font Faces

Page 17: WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

Tag Options

<FONT> </FONT>

THE FONT TAG

FACE = “name1, name2, name3, …”

• Browsers have VERY limited “Font Face” Support

• The “Font Face” file must reside on the Users Computer

• Name must match – might not look the same – MAC’s -PC’s

Page 18: WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

Tag Options

<FONT> </FONT>

THE FONT TAG

FACE = “name1, name2, name3, …”

These 12 fonts are installed on both PC and MAC

and are considered as ‘safe’

arial

arial black

comic sans ms

courier

courier new

georgia helvetica

impact

palatino

times new roman

trebuchet ms

verdana

Page 19: WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

Tag Options

<FONT> </FONT>

THE FONT TAG

FACE = “name1, name2, name3, …”

arial

arial blackcomic sans mscourier

courier new

georgia helvetica

impact

palatinotimes new roman

trebuchet msverdana

Font-Family

generic-Family

<FONT face = “verdana, helvetica, sans-serif”>Hello</FONT>

cursivefantasy

monospaceSerif

Sans-serif

Page 20: WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

Fonts – Let’s Practice

Make a web page for:

Welcome to my Web Page I did it myself

Blue, size = 4, underlineItalic, Underline, size = 3

Arial, size = 3 Color= “red”

Welcome to

<u> <i> my</i>

<font size=“4” color = “blue”>Web Page</font></u>&nbsp;

<FONT face = “arial”> I did it

<font color = “red”> myself </font> </FONT>

`

Page 21: WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

Tag Options

<H1…6> </H1…6>

THE HEADING TAG

ALIGN = “left, right, center”

This is Centered

This is left

This is right

<h2 align=“center”>This is centered</h2>

<h1align=“left”>This is left</h1>

<h2 align=“right”><font color = “red”

face = “arial”> This is right </font ></h2>

Can “nest” font color and face in the heading tag

Page 22: WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.

Basic HTML Tags

<HTML> </HTML>

<HEAD> </HEAD>

<TITLE> </TITLE>

<BODY> </BODY>

On ALL Web Pages

<P> </P> <BR>

<FONT> </FONT>

<H1>… <H6> to </H1>… </H6>

<B> </B>, <I> </I>, <U> </U>

<SUP> </SUP>, <SUB> </SUB>

&nbsp;

Formatting Tags

<P align=“Left”> <P align=“Right”> <P align=“Center”><FONT size=“1…7” color=“color name” face=“name1, name2, name3, …>

Tag Options

Colors – aqua, black, blue, fuchsia, gray, green, lime, maroon,

navy, olive, purple, red, silver, teal, white, yellow