Title Text Goes Here



Download 2.8 Mb.
View original pdf
Page21/37
Date16.06.2022
Size2.8 Mb.
#59010
1   ...   17   18   19   20   21   22   23   24   ...   37
com-225-web-technology-theory
HTML Text Formatting
HTML defines a lot of elements for formatting output, like
bold or italic text.
Below area lot of examples that you can tryout yourself

Text Formatting Tags
Tag
Description

Defines bold text

Defines big text

Defines emphasized text

Defines italic text

Defines small text

Defines strong text

Defines subscripted text

Defines superscripted text

Defines inserted text

Defines deleted text


TYPE THE DOCUMENT TITLE
39

"Computer Output" Tags
Tag
Description

Defines computer code text

Defines keyboard text

Defines sample computer code

Defines teletype text

Defines a variable Defines preformatted text

Citations, Quotations, and Definition Tags
Tag
Description

Defines an abbreviation

Defines an acronym

Defines an address element

Defines the text direction

Defines along quotation

Defines a short quotation

Defines a citation

Defines a definition term

FONT Tag Good or Bad? Explicitly changing font types can also be accomplished through the capabilities of the tag. Inmost web browsers, the default font type for an HTML document is Times New Roman. The tag can be used with face, size, and color="#hexValue" attributes to change the font style of characters to be displayed by a web browser. face must equal the name of the font to be used, such as font="arial". size must equal the size of the characters in points (pt, such assize pt, or relative values. color must equal the hexadecimal color value of the characters, such as color" (black hexadecimal value. For an example, consider the following PT font size rendered in Arial Type The above HTML code would produce the following results in a web browser

TYPE THE DOCUMENT TITLE
40 PT font size rendered in Arial Type
The following HTML code segment illustrates the size of possible point values when using the font tag
1 point arial type text
2 point arial type text
3 point arial type text
4 point arial type text
5 point arial type text
6 point arial type text
7 point arial type text

Download 2.8 Mb.

Share with your friends:
1   ...   17   18   19   20   21   22   23   24   ...   37




The database is protected by copyright ©ininet.org 2024
send message

    Main page