SlideShare a Scribd company logo
Hey! :-)
An Introduction to the Web, HTML, CSS & Javascript
45 minutes.
Objectives
• Familiarize the Web & the Browser
• First-steps into HTML, CSS & Javascript
• Motivate towards further exploration
HTML
   CSS
Javascript
HTML
(HyperText Markup Language)
HTML
(HyperText Markup Language)
           Tags
HTML
(HyperText Markup Language)
           Tags
      .html document
  <html> <head> <body>
HTML
(HyperText Markup Language)
           Tags
      .html document
 <html> <head> <body>
 </html> </head> </body>
Structure of an HTML
      Document
Structure of an HTML
      Document
 <html>
  <head>
   <!--header content here-->
  </head>
  <body>
   <!--body content here-->
  </body>
 </html>
CSS
Cascading Style-Sheets
CSS
          Cascading Style-Sheets


• Provides styling which defines how to
  display the HTML elements
CSS
          Cascading Style-Sheets


• Provides styling which defines how to
  display the HTML elements
• Separates the Data contents from the
  Presentation
CSS
           Cascading Style-Sheets


• Provides styling which defines how to
  display the HTML elements
• Separates the Data contents from the
  Presentation
• External Stylesheets can save a lot of work
Tables vs CSS
Tables vs CSS

• “Table” is an HTML element originally
  intended to display data in the form of a
  table.
Tables vs CSS

• “Table” is an HTML element originally
  intended to display data in the form of a
  table.
• HTML takes care of Data.
  Stylesheet (CSS) takes care of Design.
CSS Syntax
Selector      Declaration        Declaration



            Property Value   Property      Value
CSS Syntax
       Selector      Declaration        Declaration



                   Property Value   Property      Value



• Selectors can be tags, ids or classes.
CSS Syntax
       Selector      Declaration        Declaration



                   Property Value   Property      Value



• Selectors can be tags, ids or classes.
• Enclosed in braces.
CSS Syntax
       Selector      Declaration        Declaration



                   Property Value   Property      Value



• Selectors can be tags, ids or classes.
• Enclosed in braces.
• Property-Value pairs which end in semicolon.
Inserting CSS into a Page
Inserting CSS into a Page
• Internal CSS:
      <head>
         <style type="text/css">
            p { margin-left:20px; }
            body { background-image:url("images/back40.gif"); }
         </style>
      </head>
Inserting CSS into a Page
• Internal CSS:
        <head>
           <style type="text/css">
              p { margin-left:20px; }
              body { background-image:url("images/back40.gif"); }
           </style>
        </head>

•   External CSS:
       <head>
          <link rel="stylesheet" type="text/css" href="mystyle.css" />
       </head>
Inserting CSS into a Page
• Internal CSS:
         <head>
            <style type="text/css">
               p { margin-left:20px; }
               body { background-image:url("images/back40.gif"); }
            </style>
         </head>

•   External CSS:
        <head>
           <link rel="stylesheet" type="text/css" href="mystyle.css" />
        </head>


•   Inline CSS:
     <p style=" color:#FF0000; margin-left:20px ">This is a paragraph.</p>
CSS Box Model
JavaScript
• It is a client-side scripting language
• It is an interpreted language
• It was designed to add interactivity to
  webpages

         Java != JavaScript
• JavaScript was influenced by Scheme & Self
• It was designed by Brendan Eich of Netscape
• Originally called LiveScript
• JScript is Microsoft version of JavaScript
• JavaScript, JScript, ECMAScript etc are all
  essentially the same.
What can it do?

• It can read & write to HTML webpages
• It can react to events
• It can do mathematical calculations
• It can be used to validate data
• It can be used to create cookies
Inserting JavaScript
Inserting JavaScript
• Internal JavaScript:
         <script type="text/javascript">
            <!-- document.write(“Hello World”); -->
         </script>
Inserting JavaScript
• Internal JavaScript:
            <script type="text/javascript">
               <!-- document.write(“Hello World”); -->
            </script>



•   External JavaScript:
       <head>
          <script type=”text/javascript” src=”xxxx.js” /> </script>
       </head>
Further Reading

• W3Schools (HTML, CSS, JavaScript)
• CSS3 for Web Designers - Dan Cedarholm
• SitePoint CSS Reference
• Eloquent JavaScript - Marijn Haverbeke
• Mozilla Developer Network
Thank you!

More Related Content

PPTX
Layout & css lecture
PPTX
1 03 - CSS Introduction
PPT
PPT
CSS Introduction
PPTX
Css intro
KEY
Artdm171 Week5 Css
PPTX
How to dominate a free theme WCTO 2014
PDF
The web context
Layout & css lecture
1 03 - CSS Introduction
CSS Introduction
Css intro
Artdm171 Week5 Css
How to dominate a free theme WCTO 2014
The web context

What's hot (20)

PPTX
Web programming css
PPTX
CSS introduction
PPT
Introduction to CSS
PPTX
Introduction to HTML and CSS
PDF
Thinkful - Frontend Crash Course - Intro to HTML/CSS
PPT
Cascading Style Sheets (CSS) help
PPT
PDF
Introduction to css
PPT
Cascading style sheet (css)]
PPTX
Introducing Cascading Style Sheets
PPTX
Hammersmith fundamentals html fundamentals
PPTX
PPTX
Course outline Website Design & Development
PPTX
Learn css step by step online course
PDF
快速开发Css
PPT
Introduction to Cascading Style Sheets (CSS)
PPTX
Cascading Style Sheets (CSS)
PPTX
Css(cascading style sheets)
PDF
Html:css crash course (4:5)
Web programming css
CSS introduction
Introduction to CSS
Introduction to HTML and CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSS
Cascading Style Sheets (CSS) help
Introduction to css
Cascading style sheet (css)]
Introducing Cascading Style Sheets
Hammersmith fundamentals html fundamentals
Course outline Website Design & Development
Learn css step by step online course
快速开发Css
Introduction to Cascading Style Sheets (CSS)
Cascading Style Sheets (CSS)
Css(cascading style sheets)
Html:css crash course (4:5)
Ad

Viewers also liked (13)

PPTX
Budgetprocedure 2013 16 slidecast
PPT
Profile Evi Yunita
PDF
Modul 3
PDF
Method rose
PDF
Modul 1
PDF
Modul 2
PPTX
film education
PPT
Young People & Job Hunting
PPT
Pilgrimage; Irish Places of Pilgrimage
PPT
Profile Bpk Sumino
PPTX
Basic IT 1
PPTX
Basic IT 2 (General IT Knowledge-2)
PPT
Playground blues by Adrian Mitchell
Budgetprocedure 2013 16 slidecast
Profile Evi Yunita
Modul 3
Method rose
Modul 1
Modul 2
film education
Young People & Job Hunting
Pilgrimage; Irish Places of Pilgrimage
Profile Bpk Sumino
Basic IT 1
Basic IT 2 (General IT Knowledge-2)
Playground blues by Adrian Mitchell
Ad

Similar to Web (20)

PPT
Web design-workflow
PDF
introduction to css cascading style sheets
PPT
introductiontohtmlcss-part2-120711042239-phpapp02.ppt
PPTX
Css types internal, external and inline (1)
PPTX
PPT
Css best practices style guide and tips
PPT
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
PPTX
Web 102 INtro to CSS
PDF
Be nice to your designers
PPTX
UNIT 3WOP fgfufhbuiibpvihbvpihivbhibvipuuvbiuvboi
PPTX
Css for Development
PPTX
Cascading style sheets (CSS)
PPTX
Introduction to Wed System And Technologies (1).pptx
PPTX
DW unit 3.pptx
KEY
Slow kinda sucks
KEY
ARTDM 171, Week 5: CSS
PDF
2 introduction css
PDF
Modular HTML & CSS
PPTX
Web design-workflow
introduction to css cascading style sheets
introductiontohtmlcss-part2-120711042239-phpapp02.ppt
Css types internal, external and inline (1)
Css best practices style guide and tips
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
Web 102 INtro to CSS
Be nice to your designers
UNIT 3WOP fgfufhbuiibpvihbvpihivbhibvipuuvbiuvboi
Css for Development
Cascading style sheets (CSS)
Introduction to Wed System And Technologies (1).pptx
DW unit 3.pptx
Slow kinda sucks
ARTDM 171, Week 5: CSS
2 introduction css
Modular HTML & CSS

Recently uploaded (20)

PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PPTX
Introduction to Building Materials
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
IGGE1 Understanding the Self1234567891011
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PPTX
Virtual and Augmented Reality in Current Scenario
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
Indian roads congress 037 - 2012 Flexible pavement
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PDF
Hazard Identification & Risk Assessment .pdf
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
Computer Architecture Input Output Memory.pptx
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Practical Manual AGRO-233 Principles and Practices of Natural Farming
Introduction to Building Materials
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
FORM 1 BIOLOGY MIND MAPS and their schemes
IGGE1 Understanding the Self1234567891011
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
Virtual and Augmented Reality in Current Scenario
Weekly quiz Compilation Jan -July 25.pdf
Indian roads congress 037 - 2012 Flexible pavement
B.Sc. DS Unit 2 Software Engineering.pptx
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
Hazard Identification & Risk Assessment .pdf
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Computer Architecture Input Output Memory.pptx
202450812 BayCHI UCSC-SV 20250812 v17.pptx
TNA_Presentation-1-Final(SAVE)) (1).pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf

Web

  • 1. Hey! :-) An Introduction to the Web, HTML, CSS & Javascript
  • 3. Objectives • Familiarize the Web & the Browser • First-steps into HTML, CSS & Javascript • Motivate towards further exploration
  • 4. HTML CSS Javascript
  • 7. HTML (HyperText Markup Language) Tags .html document <html> <head> <body>
  • 8. HTML (HyperText Markup Language) Tags .html document <html> <head> <body> </html> </head> </body>
  • 9. Structure of an HTML Document
  • 10. Structure of an HTML Document <html> <head> <!--header content here--> </head> <body> <!--body content here--> </body> </html>
  • 12. CSS Cascading Style-Sheets • Provides styling which defines how to display the HTML elements
  • 13. CSS Cascading Style-Sheets • Provides styling which defines how to display the HTML elements • Separates the Data contents from the Presentation
  • 14. CSS Cascading Style-Sheets • Provides styling which defines how to display the HTML elements • Separates the Data contents from the Presentation • External Stylesheets can save a lot of work
  • 16. Tables vs CSS • “Table” is an HTML element originally intended to display data in the form of a table.
  • 17. Tables vs CSS • “Table” is an HTML element originally intended to display data in the form of a table. • HTML takes care of Data. Stylesheet (CSS) takes care of Design.
  • 18. CSS Syntax Selector Declaration Declaration Property Value Property Value
  • 19. CSS Syntax Selector Declaration Declaration Property Value Property Value • Selectors can be tags, ids or classes.
  • 20. CSS Syntax Selector Declaration Declaration Property Value Property Value • Selectors can be tags, ids or classes. • Enclosed in braces.
  • 21. CSS Syntax Selector Declaration Declaration Property Value Property Value • Selectors can be tags, ids or classes. • Enclosed in braces. • Property-Value pairs which end in semicolon.
  • 23. Inserting CSS into a Page • Internal CSS: <head> <style type="text/css"> p { margin-left:20px; } body { background-image:url("images/back40.gif"); } </style> </head>
  • 24. Inserting CSS into a Page • Internal CSS: <head> <style type="text/css"> p { margin-left:20px; } body { background-image:url("images/back40.gif"); } </style> </head> • External CSS: <head> <link rel="stylesheet" type="text/css" href="mystyle.css" /> </head>
  • 25. Inserting CSS into a Page • Internal CSS: <head> <style type="text/css"> p { margin-left:20px; } body { background-image:url("images/back40.gif"); } </style> </head> • External CSS: <head> <link rel="stylesheet" type="text/css" href="mystyle.css" /> </head> • Inline CSS: <p style=" color:#FF0000; margin-left:20px ">This is a paragraph.</p>
  • 27. JavaScript • It is a client-side scripting language • It is an interpreted language • It was designed to add interactivity to webpages Java != JavaScript
  • 28. • JavaScript was influenced by Scheme & Self • It was designed by Brendan Eich of Netscape • Originally called LiveScript • JScript is Microsoft version of JavaScript • JavaScript, JScript, ECMAScript etc are all essentially the same.
  • 29. What can it do? • It can read & write to HTML webpages • It can react to events • It can do mathematical calculations • It can be used to validate data • It can be used to create cookies
  • 31. Inserting JavaScript • Internal JavaScript: <script type="text/javascript"> <!-- document.write(“Hello World”); --> </script>
  • 32. Inserting JavaScript • Internal JavaScript: <script type="text/javascript"> <!-- document.write(“Hello World”); --> </script> • External JavaScript: <head> <script type=”text/javascript” src=”xxxx.js” /> </script> </head>
  • 33. Further Reading • W3Schools (HTML, CSS, JavaScript) • CSS3 for Web Designers - Dan Cedarholm • SitePoint CSS Reference • Eloquent JavaScript - Marijn Haverbeke • Mozilla Developer Network

Editor's Notes