Professional Documents
Culture Documents
Topic 3 - Basic HTML Formatting
Topic 3 - Basic HTML Formatting
topicTHREE
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
• At the end of this chapter the students
should be able to:
– Specify different sizes of font that can be
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
• This chapter will allow you to modify
your font using various tags available.
The main tag for font element is <font>.
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
<html>
<head>
<title>Basic Text Formatting</title>
</head>
<body>
<big>This text is big</big>
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
• To improve the readability of your webpage,
you might want to use bold text or italic
from time to time.
• Both the <b> and the <i> tags can be placed
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
• The italics tags should be used to highlight a
key word or phrase.
• These tags are not intended to stylize or
shape your font face.
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
<i><b> ……. <b></i> <i><b>This text is italic & bold</b></i> This text is italic & bold
WEB.DESIGN
of Text
<font
color<font color = "red"> ……. </font>
red</font>
=
"red">
HTML
Font Color
WEB.DESIGN
Changing
<font size = "16"> ……. </font> <font size = "16"> This text size is 16! This text size is 16!
</font>
WEB.DESIGN
Changing
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
• Using color in a web design is an
important aspect because it will involve
a favorable first impression vice versa.
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
• Although many webmaster stated that a dark
background with light text is easier to be read but
most Web sites are developed just the opposite of
the view.
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
• The main color on your page is the
background color.
• This color will define everything else on your
page and by working around this color will
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
• After you have decided on and added your
background color to your Web site you will then
need to decide on what color would most
compliment it when used for your text.
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
• The bgcolor attribute specifies a
background-color for an HTML page.
• The value of this attribute can be a
Olive
Black
Blue
Purple
Red
Fuchsia
Gray
Silver
Teal
Green
Lime
White
Yellow
Maroon
W3C Standard Color Names
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
• Preformatted text between the start and
end PRE tag is rendered using a fixed
with font, in addition whitespace
characters are treated literally.
<pre>……</pre>
<pre>
This is
</pre>
It preserves
and line breaks.
preformatted text.
HTML
both spaces
Text
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
• Quotation text can be defined using the
blockquote tag.
• The blockquote element is a
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
<blockquote>……</ Here comes a long quotation:
blockquote > <blockquote>
This is a long quotation. This is a long quotation. This is a long quotation.
This is a long quotation. This is a long quotation.
</blockquote>
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
• One of the easiest ways to impact the design
of a Web page is with the fonts that you use.
• But many beginning Web designers often go
crazy changing fonts every couple words and
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
Site
• Sans-serif fonts are those fonts
that have no "serifs": the little
hooks on the end of the letters.
• If you've taken any print design
courses you've probably been told
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
Site
• This means that when your readers view a page
of serif font on the screen, the little serifs all blur
together and start making the text harder to read.
• Always use sans-serif fonts for your Web page
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
• While serif fonts are hard to read online, they are
perfect for print.
• If you have print friendly versions of your site, this is
the perfect place to use serif fonts.
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
• Even if your site isn't about computing,
you can use monospace to provide
instructions, give examples, or imply
typewritten text.
• Monospace letters have the same width
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
Body Text
• Fantasy and cursive fonts are not as wide-spread
on computers, and in general can be hard to read
in large chunks.
• While you might like the effect of a diary or other
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
Body Text
• Use fantasy and cursive fonts in images and
as headlines or call-outs.
• Keep them short and be aware that
whatever font you choose will probably not
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
• Superscripted text can be placed onto
your website using the <sup> tag.
• You may id these tags for use with
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
• The abbreviation tag allows you to pass on
useful information about an abbreviation
without spelling it out on the page.
• For example, we might use the abbreviation
WEB.DESIGN
IMD311 – Introduction to Web Content Management & Design
• The appearance of the abbreviation can
depend on the browser being used, but
all major browsers support the