HTML Basics
CSS Basics
1 _________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
HYPERTEXT MARKUP LANGUAGE (HTML)
K0032
2 __________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
STRUCTURE OF AN HTML PAGE
K0032
3 _________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
*Property of STI
K0032
4 __________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
for HTML5
<html> defines the whole document
K0032
5 _________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
*Property of STI
K0032
6 __________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
Links <a>
<p><a
href="http://www.sti.edu/
">Visit our STI Homepage
</a></p>
K0032
7 _________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
*Property of STI
K0032
8 __________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
Images <img>
<body>
This is the first paragraph, at the very
beginning of the body of this document.
<br> The tag above signals the start of
this second paragraph. When rendered
by a browser, it will begin slightly below
the end of the first paragraph, with a bit
of extra white space between the two
paragraphs. <b> this is the last
paragraph in the example.
</body>
K0032
9 _________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
*Property of STI
K0032
10 _________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
<p>
HTML is <em>really</em>,
<strong>REALLY</strong> fun!
</p>
*Property of STI
K0032
11 ________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
<ul>
<li>No shoes/li>
<li>No Shirt</li>
<li>No problem!</li>
</ul>
*Property of STI
K0032
12 _________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
<p>
<font face=Areal>Welcome to Greasy
Joes. </font> You will
<b>never</b>, <i>ever</i>,
<u>EVER</u> beat <font size=+4
color =red> OUR </font> prices!
</p>
Welcome to Greasy Joes. You will never, ever, EVER
beat OUR prices!
*Property of STI
K0032
13 ________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
*Property of STI
K0032
14 _________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
CSS Declaration
p {color:blue; text-align:center;}
*Property of STI
K0032
15 ________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
*Property of STI
K0032
16 _________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
h1 {
text-align: center;
}
p.date {
text-align: right;
}
p.main {
text-align: justify;
}
*Property of STI
K0032
17 ________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
}
h2 {
}
h3 {
text-decoration: overline;
text-decoration: line-through;
text-decoration: underline;
*Property of STI
K0032
18 _________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
p.uppercase {
text-transform: uppercase;
}
p.lowercase {
text-transform: lowercase;
}
p.capitalize {
text-transform: capitalize;
}
*Property of STI
K0032
19 ________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
p {
text-indent: 50px;
}
*Property of STI
K0032
20 _________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
p {
font-family: "Times New Roman",
Times, serif;
}
*Property of STI
K0032
21 ________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
K0032
22 _________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
body {
background-color: #b0c4de;
}
*Property of STI
K0032
23 ________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
body {
backgroundimage: url("paper.gif");
}
*Property of STI
K0032
24 _________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
body {
backgroundimage: url("gradient_bg.png")
;
}
*Property of STI
K0032
25 ________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
CSS BACKGROUND PROPERTIES
Background image set position and no repeat. The
CSS background-position property is used to
position a background image
body {
backgroundimage: url("img_tree.png");
background-repeat: no-repeat;
}
*Property of STI
K0032
27 ________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
body {
backgroundimage: url("gradient_bg.png");
background-repeat: repeat-x;
}
*Property of STI
K0032
26 _________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________
___________________________