Building and Marketing Websites
Marketing
• Landing page
– Page people go to after they click on ad
Landing PageFacebook Ad
HTML Elements
Links
Tables
Links
• Anchors are inline elements
• May only contain text and other inline
elements.
<a href=“http://www.google.com”><img src=“…” /></a>
<a href=“http://www.google.com”>This is a link</a>
Links: href attribute
• Absolute URL
– Provide the full URL for the document, including
the protocol (http://)
<a href=“http://www.google.com”>This is a link</a>
Links: href attribute
• Relative URL
– Can be used when you are linking to another
document on your own site (i.e., on the same
server).
<a href=“test.html”>This is a link</a>
Tables
• Rows
– tr = table row
• Cells:
– th = table header
– td = table data
• Actual content goes into cells
CSS Review
<style type=“text/css”>
</style>
Font Sizes
Font Sizes
body {
font-size: small;
}
Classes
Used to classify elements into a
conceptual group.
New Topics
Color
• Computers create the colors you see on a
monitor by combining three colors: red,
green, and blue
• You can create a recipe for a color by telling
the computer how much of the three to mix in
White
Color
Color
• Amount of color is described on a scale from
0 (none) to 255 (full-blast)
• Can also be provided as a percent
– 100% = 255
Any color you see on your monitor can be
described by a series of three numbers: a red
value, a green value, and a blue value.
Ways to specify color
• By name
Ways to specify color
• By red, green, blue values
=
80% of 255 is 204,
40% of 255 is 102, and
0% of 255 is 0.
Ways to specify color
• By “hex code”
Color Summary
Box Model
Every element in a document, both
block-level and inline, generates a
rectangular element box
Content Area
• Holds “content” of the element (e.g. text or
images)
Inner edges
• Edges of the content area
• Get sized when you apply width and height
Padding
• Area held between the content area and an
optional border.
• Optional.
Border
• Line that surrounds the element and its
padding.
• Optional.
Margin
• Space added on the outside of the border
• Optional.
Outer edge
• Total area the element takes up on the page

Pres