Top Banner
Building and Marketing Websites
25

Pres

Nov 04, 2014

Download

Technology

Andrey L

 
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Pres

Building and Marketing Websites

Page 2: Pres

Marketing

• Google advertising– Search

• PPC / CPC

• CPA– Cost per action– “action” can be mean different things

Page 3: Pres

More HTML elements

Links , Tables

Page 4: Pres

Links

<a href=“http://www.google.com”>This is a link</a>

Page 5: Pres

Links

• href attribute required• Specifies destination of the link

• Content of element acts as a label for the link. • In the browser the label appears with an

underline to indicate you can click on it

<a href=“http://www.google.com”>This is a link</a>

Page 6: Pres

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>

Page 7: Pres

Links: href attribute

• href attribute provides the address of the page (its URL) to the browser

• 2 ways to specific URL

Page 8: Pres

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>

Page 9: Pres

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>

Page 10: Pres

Tables

Page 11: Pres

Tables

Page 12: Pres
Page 13: Pres
Page 14: Pres

Tables

• Rows– tr = table row

• Cells:– th = table header– td = table data

• Actual content goes into cells

Page 15: Pres

Tables

• What about columns?

– The number of columns in a table is determined by the number of cells in each row

– Make sure you have the same number of cells in each row!

Page 16: Pres

Back to CSS

Page 17: Pres

Inheritance

• Elements pass down certain style properties to the elements they contain

Page 18: Pres
Page 19: Pres

Classes

Used to classify elements into a conceptual group.

Page 20: Pres

<html><head>

<title>Simple Website</title> </head><body>

<h1>Welcome</h1><p class=“green”>This is a

demonstration.</p><p>Business as usual</p>

</body></html>

Page 21: Pres

Font Sizes

body {font-size: 14px;

}

Page 22: Pres

Font Sizes

body {font-size: 14px;

}h1 {

font-size: 150%;}

Percentage tells the font how big it should be relative to another font size.

Page 23: Pres

Font Sizes

body {font-size: 14px;

}h1 {

font-size: 150%;}h2 {

font-size: 1.2em;}

Similar to em. Specifies a scaling factor.

Page 24: Pres

Font Sizes

Page 25: Pres

Font Sizes

body {font-size: small;

}