Professional Documents
Culture Documents
Formatting Text
Formatting Text
TEXT
Text
› It is the most important aspect of any website.
› It also provides the most valuable information found on the
web and is the most important feature when it comes to
“searchability” – it is a term that refers to how easy it is to
find your web page in search engines.
Two (2) types of Fonts
1. Serif font – it starts and ends with a stroke.
› Examples: Times New Roman, Georgia, and Cambria
Tag Description
1. <em> </em> It is used to emphasize text,
appearance is usually italicized.
2. <strong> </strong> It is used to give stronger
emphasis and greater
importance to text.
Emphasized Text
› <em> and <strong>
- These are two phrasing elements that are used to emphasize the
meaning or importance of a word or group of words.
Tag Description
1. <em> </em> It is used to emphasize text,
appearance is usually italicized.
2. <strong> </strong> It is used to give stronger
emphasis and greater
importance to text.
<em> vs. <i>
1. <i> - it is used to italicize technical terms, scientific
names, foreign words, and other similar terms.
Tag Description
1. <code> </code> This code is strictly used in the
definition od computer code
text like HTML.
2. <samp> </samp> It is similar to <code>, but it
refers mainly to the output of
the computer code.
Tag Description
3. <kbd> </kbd> It is use to distinguish keyboard
text from non-keyboard text.
It refers to text typed in by a
user.
4. <var> /<var> It is used to indicate that a
particular text in the code is a
variable.
It typically used when writing
JavaScript codes.
Citations, Quotations, &
Definition Tags
› Citations – are used to give credit to a reference source
used on a web page.
› Quotations – it represents information that does not
belong to the web page author.
› Definition Tags – are used for terms and definitions.
Tag Description
1. <abbr> </abbr> It indicates acronym or
abbreviation.
For example:
<abbr title=“Hyper Text Mark
Up Language”> HTML </abbr>
2. <bdo> </bdo> • It is used to override the
default direction of text that
is left to right; often use for
languages such as Hebrew and
Arabic.
• It uses the attributes <bdo
dir=“rtl”> to go to right to
left.
Tag Description
3. <q> </q> • It is used only for short
quotes.
• It uses the attribute <q
cite=“url”>.
4. <cite> </cite> • It is used to define the title
of a book or painting or any
form of work used in a web
page.
• Do not be confused with the
tags <blockquote> and <q>
5. <dfn> </dfn> • It is used to enclose a term
so as to stand out from the
definition it follows.
Preformatted Text
› The use of <pre> refers to preformatted text in a web
page.
› The output will appear as mono-spaced and all spaces
are counted as is.