SlideShare a Scribd company logo
1 of 30
Building and Marketing Websites
Pay per Click Advertising Known as PPC Advertiser  pay each time a user clicks on the advertiser's ad Cost per click (CPC) is amount the advertiser pays
<html> <head> <title>Simple Website</title>  <style type=“text/css”> 			p { color: red; } 		</style> 	</head> <body> <h1>Welcome</h1> <p>This is a demonstration.</p> 	</body> </html>
Body elements <h1> … </h1> <p> … </p> <ol> … </ol> <ul> … </ul> <strong> … </strong> <em> … </em> <imgsrc=“…” /> <!-- Comment -->
CSS
HTML describes the content in a Web page CSS describes how you want that content to look
HTML for Structure CSS for Presentation
Style sheet <head> 		<title>Simple Website</title> <style type=“text/css”> p { border:2px solid black; } </style>  </head> Made up of one or more style instructions (called rules)  Rules describe how an element or group of elements should be displayed.
Style sheet rules
Structure
Terms to describe structure Parent Child Sibling
Inheritance Elements pass down certain style properties to the elements they contain
Inheritance In general, properties related to the styling of text—font size, color, style, etc.—are passed down.
Overriding Inheritance
Conflicting styles Why does “em” style override “body” style? How does Browser choose which style to use?
Conflicting styles Specificity More specific the selector, the more weight it is given to override conflicting declarations Rule order “last-one-listed wins”
How do I style certain elements only? ,[object Object]
Some headings orange ,[object Object]
Classes Think of it like a club – someone starts a club and by joining you agree to all the rights and responsibilities of the club.
<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>
Class is an attribute <element attribute-name="value">Content</element> Just like “src” for image elements: <imgsrc=“peanut-butter.jpg” alt=“Sandwich” />
The CSS Rule Select <p> elements that belong to a certain class. Make them green. p.green{ color: green; }
<html> <head> <title>Simple Website</title>  <style type=“text/css”> p.green{ color: green; } 		</style> 	</head> <body> <h1>Welcome</h1> <p class=“green”>This is a demonstration.</p> 	<p>Business as usual</p> 	</body> </html>
I want my heading to be part of class!  	<body> <h1 class=“green”>Welcome</h1> <p class=“green”>This is a demonstration.</p> 		<p>Business as usual</p> 	</body>
How does the CSS rule change?
<html> <head> <title>Simple Website</title>  <style type=“text/css”> p.green, h1.green { color: green; } 		</style> 	</head> <body> <h1>Welcome</h1> <p class=“green”>This is a demonstration.</p> 	<p>Business as usual</p> 	</body> </html>
If you want all elements that are in the green class to have a style, then you can just write your rule like this: .green{ color: green; }
<html> <head> <title>Simple Website</title>  <style type=“text/css”> .green { color: green; } 		</style> 	</head> <body> <h1>Welcome</h1> <p class=“green”>This is a demonstration.</p> 	<p>Business as usual</p> 	</body> </html>

More Related Content

Viewers also liked

Physical Science: Chapter 5, sec3
Physical Science: Chapter 5, sec3Physical Science: Chapter 5, sec3
Physical Science: Chapter 5, sec3mshenry
 
Help, my security officer doesn’t trust me v0.4
Help, my security officer doesn’t trust me v0.4Help, my security officer doesn’t trust me v0.4
Help, my security officer doesn’t trust me v0.4Frank Breedijk
 
Greater Halifax Partnership: A Catalyst for Economic Growth
Greater Halifax Partnership: A Catalyst for Economic GrowthGreater Halifax Partnership: A Catalyst for Economic Growth
Greater Halifax Partnership: A Catalyst for Economic GrowthHalifax Partnership
 
Present simple vs. present continuous
Present simple vs. present continuousPresent simple vs. present continuous
Present simple vs. present continuousAlexandra Canal
 
Challenging Myths on HRM's Attitudes Towards Growth and Development 2008
Challenging Myths on HRM's Attitudes Towards Growth and Development 2008Challenging Myths on HRM's Attitudes Towards Growth and Development 2008
Challenging Myths on HRM's Attitudes Towards Growth and Development 2008Halifax Partnership
 
Developing a food safetytraining program for volunteers larry ramdin and y...
Developing a food safetytraining program  for volunteers   larry ramdin and y...Developing a food safetytraining program  for volunteers   larry ramdin and y...
Developing a food safetytraining program for volunteers larry ramdin and y...lramdin
 
ESWC 2015 - EU Networking Session
ESWC 2015 - EU Networking SessionESWC 2015 - EU Networking Session
ESWC 2015 - EU Networking SessionErik Mannens
 
Ll bean huntingboot
Ll bean huntingbootLl bean huntingboot
Ll bean huntingbootjessradio
 
N.u. fichas setembro 2011
N.u. fichas setembro 2011N.u. fichas setembro 2011
N.u. fichas setembro 2011Belén Lorenzo
 
The health benefits of walking and playing paskins
The health benefits of walking and playing   paskinsThe health benefits of walking and playing   paskins
The health benefits of walking and playing paskinsUCL
 
Physical Science Ch 10
Physical Science Ch 10Physical Science Ch 10
Physical Science Ch 10mshenry
 
Amiel pangilinan how to use windowslive moviemaker
Amiel pangilinan how to use windowslive moviemakerAmiel pangilinan how to use windowslive moviemaker
Amiel pangilinan how to use windowslive moviemakerAmiel Pangilinan
 
How to use spybot search and destroy
 How to use spybot search and destroy How to use spybot search and destroy
How to use spybot search and destroyAmiel Pangilinan
 

Viewers also liked (20)

Physical Science: Chapter 5, sec3
Physical Science: Chapter 5, sec3Physical Science: Chapter 5, sec3
Physical Science: Chapter 5, sec3
 
Help, my security officer doesn’t trust me v0.4
Help, my security officer doesn’t trust me v0.4Help, my security officer doesn’t trust me v0.4
Help, my security officer doesn’t trust me v0.4
 
Kevin liles
Kevin lilesKevin liles
Kevin liles
 
Greater Halifax Partnership: A Catalyst for Economic Growth
Greater Halifax Partnership: A Catalyst for Economic GrowthGreater Halifax Partnership: A Catalyst for Economic Growth
Greater Halifax Partnership: A Catalyst for Economic Growth
 
Present simple vs. present continuous
Present simple vs. present continuousPresent simple vs. present continuous
Present simple vs. present continuous
 
Challenging Myths on HRM's Attitudes Towards Growth and Development 2008
Challenging Myths on HRM's Attitudes Towards Growth and Development 2008Challenging Myths on HRM's Attitudes Towards Growth and Development 2008
Challenging Myths on HRM's Attitudes Towards Growth and Development 2008
 
Pres
PresPres
Pres
 
Developing a food safetytraining program for volunteers larry ramdin and y...
Developing a food safetytraining program  for volunteers   larry ramdin and y...Developing a food safetytraining program  for volunteers   larry ramdin and y...
Developing a food safetytraining program for volunteers larry ramdin and y...
 
Around the garden
Around the gardenAround the garden
Around the garden
 
ESWC 2015 - EU Networking Session
ESWC 2015 - EU Networking SessionESWC 2015 - EU Networking Session
ESWC 2015 - EU Networking Session
 
Ll bean huntingboot
Ll bean huntingbootLl bean huntingboot
Ll bean huntingboot
 
Def jam comeback
Def jam comebackDef jam comeback
Def jam comeback
 
Redes Sociales
Redes SocialesRedes Sociales
Redes Sociales
 
N.u. fichas setembro 2011
N.u. fichas setembro 2011N.u. fichas setembro 2011
N.u. fichas setembro 2011
 
Dentist appointment
Dentist appointmentDentist appointment
Dentist appointment
 
The health benefits of walking and playing paskins
The health benefits of walking and playing   paskinsThe health benefits of walking and playing   paskins
The health benefits of walking and playing paskins
 
Physical Science Ch 10
Physical Science Ch 10Physical Science Ch 10
Physical Science Ch 10
 
V crm
V crmV crm
V crm
 
Amiel pangilinan how to use windowslive moviemaker
Amiel pangilinan how to use windowslive moviemakerAmiel pangilinan how to use windowslive moviemaker
Amiel pangilinan how to use windowslive moviemaker
 
How to use spybot search and destroy
 How to use spybot search and destroy How to use spybot search and destroy
How to use spybot search and destroy
 

Similar to Pres

Similar to Pres (20)

Html tags
Html tagsHtml tags
Html tags
 
KMUTNB - Internet Programming 3/7
KMUTNB - Internet Programming 3/7KMUTNB - Internet Programming 3/7
KMUTNB - Internet Programming 3/7
 
Intro Html
Intro HtmlIntro Html
Intro Html
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
XHTML basics
XHTML basicsXHTML basics
XHTML basics
 
HTML & CSS
HTML & CSSHTML & CSS
HTML & CSS
 
Html basics IML 140 (weeks 2-3)
Html basics IML 140 (weeks 2-3)Html basics IML 140 (weeks 2-3)
Html basics IML 140 (weeks 2-3)
 
Using Forms in Share
Using Forms in ShareUsing Forms in Share
Using Forms in Share
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
Java Script
Java ScriptJava Script
Java Script
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
 
HTML5
HTML5HTML5
HTML5
 
YL Intro html
YL Intro htmlYL Intro html
YL Intro html
 
HTML5 - One spec to rule them all
HTML5 - One spec to rule them allHTML5 - One spec to rule them all
HTML5 - One spec to rule them all
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
Ajax ons2
Ajax ons2Ajax ons2
Ajax ons2
 
Learning HTML
Learning HTMLLearning HTML
Learning HTML
 
Intro 1 sept_14_2010
Intro 1 sept_14_2010Intro 1 sept_14_2010
Intro 1 sept_14_2010
 

Pres

  • 2. Pay per Click Advertising Known as PPC Advertiser pay each time a user clicks on the advertiser's ad Cost per click (CPC) is amount the advertiser pays
  • 3. <html> <head> <title>Simple Website</title> <style type=“text/css”> p { color: red; } </style> </head> <body> <h1>Welcome</h1> <p>This is a demonstration.</p> </body> </html>
  • 4. Body elements <h1> … </h1> <p> … </p> <ol> … </ol> <ul> … </ul> <strong> … </strong> <em> … </em> <imgsrc=“…” /> <!-- Comment -->
  • 5. CSS
  • 6. HTML describes the content in a Web page CSS describes how you want that content to look
  • 7. HTML for Structure CSS for Presentation
  • 8. Style sheet <head> <title>Simple Website</title> <style type=“text/css”> p { border:2px solid black; } </style> </head> Made up of one or more style instructions (called rules) Rules describe how an element or group of elements should be displayed.
  • 11. Terms to describe structure Parent Child Sibling
  • 12. Inheritance Elements pass down certain style properties to the elements they contain
  • 13. Inheritance In general, properties related to the styling of text—font size, color, style, etc.—are passed down.
  • 14.
  • 15.
  • 17. Conflicting styles Why does “em” style override “body” style? How does Browser choose which style to use?
  • 18. Conflicting styles Specificity More specific the selector, the more weight it is given to override conflicting declarations Rule order “last-one-listed wins”
  • 19.
  • 20.
  • 21. Classes Think of it like a club – someone starts a club and by joining you agree to all the rights and responsibilities of the club.
  • 22. <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>
  • 23. Class is an attribute <element attribute-name="value">Content</element> Just like “src” for image elements: <imgsrc=“peanut-butter.jpg” alt=“Sandwich” />
  • 24. The CSS Rule Select <p> elements that belong to a certain class. Make them green. p.green{ color: green; }
  • 25. <html> <head> <title>Simple Website</title> <style type=“text/css”> p.green{ color: green; } </style> </head> <body> <h1>Welcome</h1> <p class=“green”>This is a demonstration.</p> <p>Business as usual</p> </body> </html>
  • 26. I want my heading to be part of class! <body> <h1 class=“green”>Welcome</h1> <p class=“green”>This is a demonstration.</p> <p>Business as usual</p> </body>
  • 27. How does the CSS rule change?
  • 28. <html> <head> <title>Simple Website</title> <style type=“text/css”> p.green, h1.green { color: green; } </style> </head> <body> <h1>Welcome</h1> <p class=“green”>This is a demonstration.</p> <p>Business as usual</p> </body> </html>
  • 29. If you want all elements that are in the green class to have a style, then you can just write your rule like this: .green{ color: green; }
  • 30. <html> <head> <title>Simple Website</title> <style type=“text/css”> .green { color: green; } </style> </head> <body> <h1>Welcome</h1> <p class=“green”>This is a demonstration.</p> <p>Business as usual</p> </body> </html>

Editor's Notes

  1. Font-family: serif;