Professional Documents
Culture Documents
1 _________________________ 2 __________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
3 _________________________ 4 __________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
STRUCTURE OF AN HTML PAGE STRUCTURE OF AN HTML PAGE
<!DOCTYPE html> DOCTYPE declaration <body> describes the visible page content
for HTML5
<h1> to <h6> describes a heading
<html> defines the whole document
<head> provides information about the <p> describes a paragraph
document
<title> provides the title for the
document
5 _________________________ 6 __________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
<p><a
<p>I am the first paragraph</p> href="http://www.sti.edu/
<hr/> ">Visit our STI Homepage
</a></p>
<p>I am the second paragraph</p>
7 _________________________ 8 __________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
MORE ABOUT HTML TAGS MORE ABOUT HTML TAGS
Images <img> Line break <br>
9 _________________________ 10 _________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
<p> <ul>
HTML is <em>really</em>, <li>No shoes/li>
<strong>REALLY</strong> fun! <li>No Shirt</li>
</p> <li>No problem!</li>
</ul>
11 ________________________ 12 _________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
MORE ABOUT HTML TAGS POOR WAY OF PRODUCING STYLES
Ordered list <ol>
<p>
<font face=Areal>Welcome to Greasy
Example of ordered list Joes. </font> You will
1. Luzon <b>never</b>, <i>ever</i>,
<u>EVER</u> beat <font size=+4
2. Visayas color =red> OUR </font> prices!
3. Mindanao </p>
13 ________________________ 14 _________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
body {
color: blue;
}
h1 {
color: #00ff00;
}
h2 {
CSS Declaration color: rgb(255,0,0);
}
p {color:blue; text-align:center;}
15 ________________________ 16 _________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
CSS PROPERTIES - TEXT ALIGNMENT CSS PROPERTIES - TEXT DECORATION
used to set the aligning elements to left, used to set or remove decoration from text
right, center, etc
h1 {
h1 { text-decoration: overline;
text-align: center; }
} h2 {
p.date { text-decoration: line-through;
text-align: right; }
} h3 {
p.main { text-decoration: underline;
text-align: justify; }
}
*Property of STI K0032 *Property of STI K0032
17 ________________________ 18 _________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
19 ________________________ 20 _________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
CSS PROPERTIES - FONT FAMILY CSS BACKGROUND PROPERTIES
allows to prioritize font family names CSS background properties are used to define
(Times New Roman, Arial, Lucida etc.) the background effects of an element
and/or generic family names (serif, sans
serif) The following CSS properties are used for
p { background effects:
font-family: "Times New Roman", Background-color
Times, serif; Background-image
} Background-repeat
Background-attachment
Background-position
21 ________________________ 22 _________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
body {
body { background-
background-color: #b0c4de; image: url("paper.gif");
}
}
23 ________________________ 24 _________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
CSS BACKGROUND PROPERTIES CSS BACKGROUND PROPERTIES
Background image repeated horizontally or Background image repeated horizontally or
vertically vertically
If the image is repeated only horizontally (use
repeat x), for the background to look better
body {
background-
image: url("gradient_bg.png") body {
; background-
} image: url("gradient_bg.png");
background-repeat: repeat-x;
}
*Property of STI K0032 *Property of STI K0032
25 ________________________ 26 _________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
___________________________ ___________________________
body {
background-
image: url("img_tree.png");
background-repeat: no-repeat;
}
27 ________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________