Professional Documents
Culture Documents
TO
HTML
COMMENT TAGS
* If you want to leave yourself
notes in an HTML document, but don’t
want those notes to show up in the
browser window, you need to use the
comment tag.
<!– Hi, I’m a comment. -->
Mr. Alex M. Custodio
Text Formatting Tags
<b> - defines as bold text
<big> -defines big text
<em> - defines emphasized text
<i> - defines italic text
<small> - defines small text
<strong> - defines strong text
<sub> - defines subscripted text
<sup> - defines superscripted text
<ins> - defines inserted text
Mr. Alex M. Custodio
The HTML <font> tag
<font color=“red”> Sample Text </font>
The Image Tag and the Src Attribute
In HTML, images are defined with the
<img> tag.
The <img> tag is empty, which means
that it contains attributes only and has no
closing tag.
<img src=“url”>
* URL points to the location where the
image is stored.
Mr. Alex M. Custodio
The Alt Attribute
The ALT Attribute is used to define an
“altenate text” for an image.
<img src=“boat.gif” alt=“Big Boat”>
The Background
The <body> tag has two attributes where
you can specify backgrounds. The background
can be a color or an image.
* bgcolor
The bgcolor attributes specifies a
background-color for an HTML page.
Mr. Alex M. Custodio
The value of this attribute can be a
hexadecimal number, an RGB value, or a color
name:
<body bgcolor=“#000000”>
<body bgcolor=“rgb(0,0,0)”>
<body bgcolor=“black”>
* Background
- The Background attributes specifies a
background-image for an HTML page.
Unordered List
An unordered list is a list of items. The list
of items are marked with numbers.
An ordered list starts with the <ol> tag. Each list
item starts with the <li> tag.
List Tags
<ol> - Defines an ordered list
<ul> - Defines an unordered list
<li> - Defines a list item
<dl> - Defines a definition list
<dt> - Defines a definition term
<dd> - Defines a definition description
Mr. Alex M. Custodio
THANK YOU!