SlideShare a Scribd company logo
1 of 25
Building and Marketing Websites
<html>
    <head>
              <title>Simple Website</title>
    </head>                                     Web Server
    <body>
              <h1>Welcome</h1>
              <p>This is a demonstration.</p>
    </body>
</html>


                HTML
HTML Example
<html>
  <head>
     <title>Simple Website</title>
  </head>
  <body>
     <h1>Welcome</h1>
     <p>This is a demonstration.</p>
  </body>
</html>
“Nesting”
• Putting one element inside another
Nesting Relationship
<html>
    <head>                                        <html>
          <title>Simple Website</title>
    </head>
    <body>
                                            <head>      <body>
          <h1>Welcome</h1>
          <p>This is a demonstration.</p>
    </body>                                   <title>       <h1>
</html>

                                                             <p>
<html>

   <head>
      <title>Simple Website</title>
   </head>
   <body>
        <h1>Welcome</h1>
        <p>This is a demonstration.</p>
   </body>
</html>


• The Head provides information about the
  document
<html>
   <head>
        <title>Simple Website</title>
   </head>

   <body>
      <h1>Welcome</h1>
      <p>This is a demonstration.</p>
   </body>
</html>


• Body contains everything that we want to
  show up in the browser window.
Tags We’ve Seen
•   <h1> … </h1>
•   <h2> … </h2>
•   <p> … <p>
•   <ol> … </ol>
•   <ul> … <ul>
Image Tag
<html>
  <head>
     <title>Simple Website</title>
  </head>
  <body>
     <h1>Peanut Butter</h1>
     <img src=“peanut-butter.jpg” />
  </body>
</html>
How Browser Displays Images
1. Loads HTML
2. Looks through HTML for image tags
3. Asks Server for each image it finds in HTML

                                    peanut-butter.jpg




           HTML
Empty Elements

• Don’t have text content
• Don’t have a closing tag
• They end with “ /> ”
  – This is called terminating (or closing) the element


     <img src=“peanut-butter.jpg” />
     <h1 />
Element Attributes
• Instructions that clarify or modify an element.

• src (short for source) is example of attribute
• For img tags, src attribute is required



<img src=“peanut-butter.jpg” alt=“Google” />
Element Attributes
<element attribute-name="value">Content</element>
<element attribute-name="value" />

• May be several attributes applied to an
  element, separated by spaces


 <img src=“peanut-butter.jpg” alt=“Sandwich” />
Summary
         <img src=“peanut-butter.jpg” />

• Tells the browser to get an graphic file from
  Server and insert it into page

• Empty Elements
• Element Attributes
Tags for adding emphasis
• <em> … </em>
  – Emphasized text

• <strong> … </strong>
  – Strongly emphasized text

• Used only for text!
Block Elements
      vs
Inline Elements
Block Elements
• Paragrahs <p> … </p>
• Headings <h1> … </h2>
• Lists <ol> … </ol>

• Block-level element begins on a new line, and
  some space is also usually added above and
  below the entire element by default.
Inline Elements
• <em> … </em>
• <strong> … </strong>
• <img src=“test” />

• Go with the flow
Block vs Inline
• Block elements are the major building blocks
  of your Web page
• Inline elements for small pieces of content
CSS
• HTML describes the content in a
  Web page

• CSS describes how you want that
  content to look
HTML for Structure

CSS for Presentation
CSS
• www.csszengarden.com
• Separate language with its own syntax
Style element
<html>
   <head>
      <title>Simple Website</title>
      <style type=“text/css”>

      </style>
   </head>
   <body>
        <h1>Welcome</h1>
        <p>This is a demonstration.</p>
   </body>
</html>

More Related Content

What's hot

Browser Mechanics & CSS
Browser Mechanics & CSSBrowser Mechanics & CSS
Browser Mechanics & CSSLara Schenck
 
HTML and CSS Sitting in a Tree. K i s s i n O M G
HTML and CSS Sitting in a Tree. K i s s i n O M GHTML and CSS Sitting in a Tree. K i s s i n O M G
HTML and CSS Sitting in a Tree. K i s s i n O M Gshane becker
 
Pamela - Brining back the pleasure of hand-written HTML - Montréal Python 8
Pamela - Brining back the pleasure of hand-written HTML - Montréal Python 8Pamela - Brining back the pleasure of hand-written HTML - Montréal Python 8
Pamela - Brining back the pleasure of hand-written HTML - Montréal Python 8spierre
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5Terry Ryan
 
BEAUTIFUL CSS PRESENTATION EASY TO MADE
BEAUTIFUL CSS PRESENTATION EASY TO MADEBEAUTIFUL CSS PRESENTATION EASY TO MADE
BEAUTIFUL CSS PRESENTATION EASY TO MADErana usman
 
Completion - App Coding - My Deadlines: Group Work
Completion - App Coding - My Deadlines: Group WorkCompletion - App Coding - My Deadlines: Group Work
Completion - App Coding - My Deadlines: Group WorkTeam_Conscientia
 
HTTP REQUEST RESPONSE OBJECT - WEB APPLICATION USING C# LAB
HTTP REQUEST RESPONSE OBJECT - WEB APPLICATION USING C# LABHTTP REQUEST RESPONSE OBJECT - WEB APPLICATION USING C# LAB
HTTP REQUEST RESPONSE OBJECT - WEB APPLICATION USING C# LABpriya Nithya
 
HTML5, The Open Web, and what it means for you - Altran
HTML5, The Open Web, and what it means for you - AltranHTML5, The Open Web, and what it means for you - Altran
HTML5, The Open Web, and what it means for you - AltranRobert Nyman
 
Experience Manager 6 Developer Features - Highlights
Experience Manager 6 Developer Features - HighlightsExperience Manager 6 Developer Features - Highlights
Experience Manager 6 Developer Features - HighlightsCédric Hüsler
 
Css with example
Css with exampleCss with example
Css with examplereshmy12
 
Introduction to Jquery
Introduction to JqueryIntroduction to Jquery
Introduction to JqueryGurpreet singh
 
HTML5: It goes to ELEVEN
HTML5: It goes to ELEVENHTML5: It goes to ELEVEN
HTML5: It goes to ELEVENMathias Bynens
 
An Introduction To HTML5
An Introduction To HTML5An Introduction To HTML5
An Introduction To HTML5Robert Nyman
 
Top 10 HTML5 features every developer should know!
Top 10 HTML5 features every developer should know!Top 10 HTML5 features every developer should know!
Top 10 HTML5 features every developer should know!Gill Cleeren
 

What's hot (20)

Browser Mechanics & CSS
Browser Mechanics & CSSBrowser Mechanics & CSS
Browser Mechanics & CSS
 
HTML and CSS Sitting in a Tree. K i s s i n O M G
HTML and CSS Sitting in a Tree. K i s s i n O M GHTML and CSS Sitting in a Tree. K i s s i n O M G
HTML and CSS Sitting in a Tree. K i s s i n O M G
 
Artdm171 Week4 Tags
Artdm171 Week4 TagsArtdm171 Week4 Tags
Artdm171 Week4 Tags
 
Pamela - Brining back the pleasure of hand-written HTML - Montréal Python 8
Pamela - Brining back the pleasure of hand-written HTML - Montréal Python 8Pamela - Brining back the pleasure of hand-written HTML - Montréal Python 8
Pamela - Brining back the pleasure of hand-written HTML - Montréal Python 8
 
2images
2images2images
2images
 
19 div
19 div19 div
19 div
 
programming
programmingprogramming
programming
 
Hello, Canvas.
Hello, Canvas.Hello, Canvas.
Hello, Canvas.
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
BEAUTIFUL CSS PRESENTATION EASY TO MADE
BEAUTIFUL CSS PRESENTATION EASY TO MADEBEAUTIFUL CSS PRESENTATION EASY TO MADE
BEAUTIFUL CSS PRESENTATION EASY TO MADE
 
Completion - App Coding - My Deadlines: Group Work
Completion - App Coding - My Deadlines: Group WorkCompletion - App Coding - My Deadlines: Group Work
Completion - App Coding - My Deadlines: Group Work
 
HTTP REQUEST RESPONSE OBJECT - WEB APPLICATION USING C# LAB
HTTP REQUEST RESPONSE OBJECT - WEB APPLICATION USING C# LABHTTP REQUEST RESPONSE OBJECT - WEB APPLICATION USING C# LAB
HTTP REQUEST RESPONSE OBJECT - WEB APPLICATION USING C# LAB
 
HTML5, The Open Web, and what it means for you - Altran
HTML5, The Open Web, and what it means for you - AltranHTML5, The Open Web, and what it means for you - Altran
HTML5, The Open Web, and what it means for you - Altran
 
Experience Manager 6 Developer Features - Highlights
Experience Manager 6 Developer Features - HighlightsExperience Manager 6 Developer Features - Highlights
Experience Manager 6 Developer Features - Highlights
 
Css with example
Css with exampleCss with example
Css with example
 
Introduction to Jquery
Introduction to JqueryIntroduction to Jquery
Introduction to Jquery
 
HTML5: It goes to ELEVEN
HTML5: It goes to ELEVENHTML5: It goes to ELEVEN
HTML5: It goes to ELEVEN
 
An Introduction To HTML5
An Introduction To HTML5An Introduction To HTML5
An Introduction To HTML5
 
HTML X CSS
HTML X CSSHTML X CSS
HTML X CSS
 
Top 10 HTML5 features every developer should know!
Top 10 HTML5 features every developer should know!Top 10 HTML5 features every developer should know!
Top 10 HTML5 features every developer should know!
 

Viewers also liked

D:\งานส่ง\G48 53011810075
D:\งานส่ง\G48 53011810075D:\งานส่ง\G48 53011810075
D:\งานส่ง\G48 53011810075BenjamasS
 
Integrating Customary and Statutory Systems. The struggle to develop a Legal ...
Integrating Customary and Statutory Systems. The struggle to develop a Legal ...Integrating Customary and Statutory Systems. The struggle to develop a Legal ...
Integrating Customary and Statutory Systems. The struggle to develop a Legal ...Verina Ingram
 
Halifax’s Finance and Insurance Industry: Our Opportunity
Halifax’s Finance and Insurance Industry: Our OpportunityHalifax’s Finance and Insurance Industry: Our Opportunity
Halifax’s Finance and Insurance Industry: Our OpportunityHalifax Partnership
 
Visitation neptune
Visitation neptuneVisitation neptune
Visitation neptuneLisa Baird
 
Present-perfect
Present-perfectPresent-perfect
Present-perfectVicky
 
Mission mercury
Mission mercuryMission mercury
Mission mercuryLisa Baird
 
本当は怖いオープンデータ・ビッグデータ
本当は怖いオープンデータ・ビッグデータ本当は怖いオープンデータ・ビッグデータ
本当は怖いオープンデータ・ビッグデータpgcafe
 
A GREATER Halifax: 2011-16 Economic Strategy for Halifax
A GREATER Halifax: 2011-16 Economic Strategy for HalifaxA GREATER Halifax: 2011-16 Economic Strategy for Halifax
A GREATER Halifax: 2011-16 Economic Strategy for HalifaxHalifax Partnership
 

Viewers also liked (20)

D:\งานส่ง\G48 53011810075
D:\งานส่ง\G48 53011810075D:\งานส่ง\G48 53011810075
D:\งานส่ง\G48 53011810075
 
2014 Halifax Index Presentation
2014 Halifax Index Presentation2014 Halifax Index Presentation
2014 Halifax Index Presentation
 
Roca-Amador 25 9 -2011-m
Roca-Amador 25  9 -2011-mRoca-Amador 25  9 -2011-m
Roca-Amador 25 9 -2011-m
 
bjjk
bjjkbjjk
bjjk
 
Integrating Customary and Statutory Systems. The struggle to develop a Legal ...
Integrating Customary and Statutory Systems. The struggle to develop a Legal ...Integrating Customary and Statutory Systems. The struggle to develop a Legal ...
Integrating Customary and Statutory Systems. The struggle to develop a Legal ...
 
The Halifax Index 2012 Summary
The Halifax Index 2012 Summary The Halifax Index 2012 Summary
The Halifax Index 2012 Summary
 
Halifax’s Finance and Insurance Industry: Our Opportunity
Halifax’s Finance and Insurance Industry: Our OpportunityHalifax’s Finance and Insurance Industry: Our Opportunity
Halifax’s Finance and Insurance Industry: Our Opportunity
 
Halifax Economic Strategy 2012
Halifax Economic Strategy 2012Halifax Economic Strategy 2012
Halifax Economic Strategy 2012
 
Ludmi y mika
Ludmi y mikaLudmi y mika
Ludmi y mika
 
Rene descartes
Rene descartesRene descartes
Rene descartes
 
Visitation neptune
Visitation neptuneVisitation neptune
Visitation neptune
 
Media evaluation
Media evaluationMedia evaluation
Media evaluation
 
Present-perfect
Present-perfectPresent-perfect
Present-perfect
 
Mission mercury
Mission mercuryMission mercury
Mission mercury
 
本当は怖いオープンデータ・ビッグデータ
本当は怖いオープンデータ・ビッグデータ本当は怖いオープンデータ・ビッグデータ
本当は怖いオープンデータ・ビッグデータ
 
Halifax: Economic Trends
Halifax:  Economic Trends Halifax:  Economic Trends
Halifax: Economic Trends
 
Summit on Youth in NS Economy
Summit on Youth in NS EconomySummit on Youth in NS Economy
Summit on Youth in NS Economy
 
Halifax Index 2012 Presentation
Halifax Index 2012 PresentationHalifax Index 2012 Presentation
Halifax Index 2012 Presentation
 
Iguales y diferentes inadi
Iguales y diferentes   inadiIguales y diferentes   inadi
Iguales y diferentes inadi
 
A GREATER Halifax: 2011-16 Economic Strategy for Halifax
A GREATER Halifax: 2011-16 Economic Strategy for HalifaxA GREATER Halifax: 2011-16 Economic Strategy for Halifax
A GREATER Halifax: 2011-16 Economic Strategy for Halifax
 

Similar to Pres

LIS3353 SP12 Week 4
LIS3353 SP12 Week 4LIS3353 SP12 Week 4
LIS3353 SP12 Week 4Amanda Case
 
What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)Ahsan Rahim
 
If you know nothing about HTML, this is where you can start !!
If you know nothing about HTML, this is where you can start !!If you know nothing about HTML, this is where you can start !!
If you know nothing about HTML, this is where you can start !!Dr Sukhpal Singh Gill
 
Html basics-auro skills
Html basics-auro skillsHtml basics-auro skills
Html basics-auro skillsBoneyGawande
 
Semantic HTML5
Semantic HTML5Semantic HTML5
Semantic HTML5Terry Ryan
 
Basics of html for web development by software outsourcing company india
Basics of html for web development   by software outsourcing company indiaBasics of html for web development   by software outsourcing company india
Basics of html for web development by software outsourcing company indiaJignesh Aakoliya
 
W6 - Intro to HTML.pdf
W6 - Intro to HTML.pdfW6 - Intro to HTML.pdf
W6 - Intro to HTML.pdfTekobashiCarlo
 
Javascript part 2 DOM.pptx
Javascript part 2 DOM.pptxJavascript part 2 DOM.pptx
Javascript part 2 DOM.pptxdeepa339830
 
HTML tutorial chapter 1
HTML tutorial chapter 1HTML tutorial chapter 1
HTML tutorial chapter 1jeweltutin
 
計算機概論20161205
計算機概論20161205計算機概論20161205
計算機概論20161205志宇 許
 

Similar to Pres (20)

Html intro
Html introHtml intro
Html intro
 
Html coding
Html codingHtml coding
Html coding
 
LIS3353 SP12 Week 4
LIS3353 SP12 Week 4LIS3353 SP12 Week 4
LIS3353 SP12 Week 4
 
HTML Basics
HTML BasicsHTML Basics
HTML Basics
 
HTML-Basic.pptx
HTML-Basic.pptxHTML-Basic.pptx
HTML-Basic.pptx
 
What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)
 
If you know nothing about HTML, this is where you can start !!
If you know nothing about HTML, this is where you can start !!If you know nothing about HTML, this is where you can start !!
If you know nothing about HTML, this is where you can start !!
 
HTML and CSS
HTML and CSSHTML and CSS
HTML and CSS
 
uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
 
Pres
PresPres
Pres
 
Html basics-auro skills
Html basics-auro skillsHtml basics-auro skills
Html basics-auro skills
 
Semantic HTML5
Semantic HTML5Semantic HTML5
Semantic HTML5
 
Html2
Html2Html2
Html2
 
Basics of html for web development by software outsourcing company india
Basics of html for web development   by software outsourcing company indiaBasics of html for web development   by software outsourcing company india
Basics of html for web development by software outsourcing company india
 
W6 - Intro to HTML.pdf
W6 - Intro to HTML.pdfW6 - Intro to HTML.pdf
W6 - Intro to HTML.pdf
 
Dhtml chapter2
Dhtml chapter2Dhtml chapter2
Dhtml chapter2
 
Javascript part 2 DOM.pptx
Javascript part 2 DOM.pptxJavascript part 2 DOM.pptx
Javascript part 2 DOM.pptx
 
HTML tutorial chapter 1
HTML tutorial chapter 1HTML tutorial chapter 1
HTML tutorial chapter 1
 
HTML 5 Basics Part One
HTML 5 Basics Part OneHTML 5 Basics Part One
HTML 5 Basics Part One
 
計算機概論20161205
計算機概論20161205計算機概論20161205
計算機概論20161205
 

Pres

  • 2. <html> <head> <title>Simple Website</title> </head> Web Server <body> <h1>Welcome</h1> <p>This is a demonstration.</p> </body> </html> HTML
  • 3. HTML Example <html> <head> <title>Simple Website</title> </head> <body> <h1>Welcome</h1> <p>This is a demonstration.</p> </body> </html>
  • 4. “Nesting” • Putting one element inside another
  • 5. Nesting Relationship <html> <head> <html> <title>Simple Website</title> </head> <body> <head> <body> <h1>Welcome</h1> <p>This is a demonstration.</p> </body> <title> <h1> </html> <p>
  • 6. <html> <head> <title>Simple Website</title> </head> <body> <h1>Welcome</h1> <p>This is a demonstration.</p> </body> </html> • The Head provides information about the document
  • 7. <html> <head> <title>Simple Website</title> </head> <body> <h1>Welcome</h1> <p>This is a demonstration.</p> </body> </html> • Body contains everything that we want to show up in the browser window.
  • 8. Tags We’ve Seen • <h1> … </h1> • <h2> … </h2> • <p> … <p> • <ol> … </ol> • <ul> … <ul>
  • 9. Image Tag <html> <head> <title>Simple Website</title> </head> <body> <h1>Peanut Butter</h1> <img src=“peanut-butter.jpg” /> </body> </html>
  • 10. How Browser Displays Images 1. Loads HTML 2. Looks through HTML for image tags 3. Asks Server for each image it finds in HTML peanut-butter.jpg HTML
  • 11. Empty Elements • Don’t have text content • Don’t have a closing tag • They end with “ /> ” – This is called terminating (or closing) the element <img src=“peanut-butter.jpg” /> <h1 />
  • 12. Element Attributes • Instructions that clarify or modify an element. • src (short for source) is example of attribute • For img tags, src attribute is required <img src=“peanut-butter.jpg” alt=“Google” />
  • 13. Element Attributes <element attribute-name="value">Content</element> <element attribute-name="value" /> • May be several attributes applied to an element, separated by spaces <img src=“peanut-butter.jpg” alt=“Sandwich” />
  • 14. Summary <img src=“peanut-butter.jpg” /> • Tells the browser to get an graphic file from Server and insert it into page • Empty Elements • Element Attributes
  • 15. Tags for adding emphasis • <em> … </em> – Emphasized text • <strong> … </strong> – Strongly emphasized text • Used only for text!
  • 16. Block Elements vs Inline Elements
  • 17. Block Elements • Paragrahs <p> … </p> • Headings <h1> … </h2> • Lists <ol> … </ol> • Block-level element begins on a new line, and some space is also usually added above and below the entire element by default.
  • 18.
  • 19. Inline Elements • <em> … </em> • <strong> … </strong> • <img src=“test” /> • Go with the flow
  • 20. Block vs Inline • Block elements are the major building blocks of your Web page • Inline elements for small pieces of content
  • 21. CSS
  • 22. • HTML describes the content in a Web page • CSS describes how you want that content to look
  • 23. HTML for Structure CSS for Presentation
  • 24. CSS • www.csszengarden.com • Separate language with its own syntax
  • 25. Style element <html> <head> <title>Simple Website</title> <style type=“text/css”> </style> </head> <body> <h1>Welcome</h1> <p>This is a demonstration.</p> </body> </html>