SlideShare ist ein Scribd-Unternehmen logo
1 von 26
Downloaden Sie, um offline zu lesen
Web Programming Intro
             Ynon Perek




Saturday, December 15, 12
Whoami




                    Ynon Perek

                    http://ynonperek.com

                    ynon@ynonperek.com




Saturday, December 15, 12
Agenda



                    The Web Architecture

                    Hello HTML

                    Hello CSS

                    Hello JavaScript




Saturday, December 15, 12
The Web Architecture


        Client Side                             Server Side


                                   GET data




                                   Here It Is




Saturday, December 15, 12
Server Side


                    Server side creates the
                    data and returns it to
                    the client

                    All server-side
                    languages return the
                    same result: HTML

                    There are many
                    languages...




Saturday, December 15, 12
Client Side

                    Client side takes the
                    data and renders it on
                    screen

                    Provides a UX around
                    the data

                    Can send data back to
                    the server

                    Browsers: IE, Chrome,
                    Firefox, Safari




Saturday, December 15, 12
The Data



                    Data is in a format
                    called HTML (Hyper
                    Text Markup Language)

                    Invented by Tim
                    Berners-Lee




Saturday, December 15, 12
The Data


                                          <html>
                    A browser renders     <body>
                    HTML document on        <h1>Hello World</h1>
                                            <p>All your base are belong
                    screen
                                               to us</p>
                                          </body>
                    HTML is a tag-based
                                          </html>
                    language




Saturday, December 15, 12
The Data




                    Tag-based means you need to use
                    the same opening and closing tag




                            <div>How Do You Annoy A Web
                                 Developer ?</span>


Saturday, December 15, 12
Available Tags



                    Tags (or markup) define the role of their content

                    Headers:
                    h1, h2, h3, h4, h5, h6

                    Block Sections: div

                    Inline Sections: span




Saturday, December 15, 12
Container (Block)


             Demo
             Inline vs. Block
                                   One Two Three (inline)




Saturday, December 15, 12
Adding Links



                    Use <a> tag to create a link

                    <a> is an inline element

                    Example:

                    <a href=”http://google.com”>Go To Google</a>




Saturday, December 15, 12
Adding Images


                    Use <img> tag to create an image

                    <img> is an inline-block element: It flows it text, but
                    has height and width like a block

                    alt attribute tells google what’s in the photo

                    Example:
                    <img src=”http://fc02.deviantart.net/fs21/f/2007/306/
                    d/6/Chibi_turtle_by_blackcattlc.jpg” alt=”Cool Turtle”>




Saturday, December 15, 12
Adding Text




                    Use <p> tag to wrap text paragraphs

                    <p> is a block-level element

                    Adds a newline




Saturday, December 15, 12
Clickable Images




                    Wrap in <img> in an <a> tag to get an image that is
                    also a link

                    Demo: images, links and text paragraphs




Saturday, December 15, 12
Lists



                    HTML has two types of lists: ordered lists marked <ol>
                    and unordered lists marked <ul>

                    Inside a list block, use <li> to denote items

                    <ul>, <ol> and <li> are all block elements




Saturday, December 15, 12
Lab




                    Create an HTML document for your resume

                    Use correct headers

                    Add an image




Saturday, December 15, 12
Pages With Style
             Introducing CSS


Saturday, December 15, 12
Cascading Style Sheets




                    Apply styling rules to elements

                    Choose an element with a selector

                    Specify rules using properties




Saturday, December 15, 12
Let’s Start With The Basics



                    Select all h1 elements

                    Write text in red

                    h1 {
                      color: red;
                    }




Saturday, December 15, 12
Let’s Start With The Basics


                    More CSS styling properties:

                            background-color, color

                            font-weight, font-size, font-family, font-style, text-
                            decoration

                            text-align, line-height

                            outline




Saturday, December 15, 12
Let’s Start With The Basics


                    Use #id to find a specific HTML element

                    h2#main {
                      color: red;
                    }

                    And in HTML:
                    <h2 id=‘main’>Red</h2>




Saturday, December 15, 12
Let’s Start With The Basics


                    Use .class to find a set of HTML elements

                    h2.uppercase {
                      text-transform: uppercase;
                    }

                    And in HTML:
                    <h2 class=‘uppercase’>Red</h2>




Saturday, December 15, 12
Block Level Properties




                    Only block (or inline-block) elements have size

                    width and height are only applicable to block elements




Saturday, December 15, 12
Lab



                    Using the docs:
                    https://
                    developer.mozilla.org/
                    en-US/docs/CSS

                    Style this HTML:
                    http://pastebin.com/
                    Wm2s8EnH




Saturday, December 15, 12
Thank You



                    Photos From:

                            http://www.flickr.com/photos/
                            pedrosimoes7/5158386021/

                            http://123rf.com




Saturday, December 15, 12

Weitere ähnliche Inhalte

Was ist angesagt?

Clientserver Presentation
Clientserver PresentationClientserver Presentation
Clientserver Presentation
Tuhin_Das
 
introduction to web technology
introduction to web technologyintroduction to web technology
introduction to web technology
vikram singh
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithms
Piyush Rochwani
 
Web servers – features, installation and configuration
Web servers – features, installation and configurationWeb servers – features, installation and configuration
Web servers – features, installation and configuration
webhostingguy
 
Introduction to Pseudocode
Introduction to PseudocodeIntroduction to Pseudocode
Introduction to Pseudocode
Damian T. Gordon
 

Was ist angesagt? (20)

Ip address
Ip addressIp address
Ip address
 
Apache ppt
Apache pptApache ppt
Apache ppt
 
Network programming
Network programmingNetwork programming
Network programming
 
Clientserver Presentation
Clientserver PresentationClientserver Presentation
Clientserver Presentation
 
Distributed Operating System_1
Distributed Operating System_1Distributed Operating System_1
Distributed Operating System_1
 
Web Development using HTML & CSS
Web Development using HTML & CSSWeb Development using HTML & CSS
Web Development using HTML & CSS
 
Security in distributed systems
Security in distributed systems Security in distributed systems
Security in distributed systems
 
Basics of computer networks
Basics of computer networksBasics of computer networks
Basics of computer networks
 
Lkk01 Computer Hardware and Networking ppt
Lkk01 Computer Hardware and Networking pptLkk01 Computer Hardware and Networking ppt
Lkk01 Computer Hardware and Networking ppt
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
Client side scripting and server side scripting
Client side scripting and server side scriptingClient side scripting and server side scripting
Client side scripting and server side scripting
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
introduction to web technology
introduction to web technologyintroduction to web technology
introduction to web technology
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithms
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
Web servers – features, installation and configuration
Web servers – features, installation and configurationWeb servers – features, installation and configuration
Web servers – features, installation and configuration
 
Threads (operating System)
Threads (operating System)Threads (operating System)
Threads (operating System)
 
File System Hierarchy
File System HierarchyFile System Hierarchy
File System Hierarchy
 
Introduction to Pseudocode
Introduction to PseudocodeIntroduction to Pseudocode
Introduction to Pseudocode
 
Distributed concurrency control
Distributed concurrency controlDistributed concurrency control
Distributed concurrency control
 

Ähnlich wie Introduction to Web Programming

Understanding Webkit Rendering
Understanding Webkit RenderingUnderstanding Webkit Rendering
Understanding Webkit Rendering
Ariya Hidayat
 
Performance & Responsive Web Design
Performance & Responsive Web DesignPerformance & Responsive Web Design
Performance & Responsive Web Design
Zach Leatherman
 
Ga london-html5&mobile advertising-tomlimongello
Ga london-html5&mobile advertising-tomlimongelloGa london-html5&mobile advertising-tomlimongello
Ga london-html5&mobile advertising-tomlimongello
Tom Limongello
 
Dominion Enterprises _H@&lt;k@th0n_
Dominion Enterprises _H@&lt;k@th0n_Dominion Enterprises _H@&lt;k@th0n_
Dominion Enterprises _H@&lt;k@th0n_
Ken Collins
 

Ähnlich wie Introduction to Web Programming (20)

Understanding Webkit Rendering
Understanding Webkit RenderingUnderstanding Webkit Rendering
Understanding Webkit Rendering
 
An introduction to WordPress Development
An introduction to WordPress DevelopmentAn introduction to WordPress Development
An introduction to WordPress Development
 
RuHL
RuHLRuHL
RuHL
 
Performance & Responsive Web Design
Performance & Responsive Web DesignPerformance & Responsive Web Design
Performance & Responsive Web Design
 
05 Mobile CSS
05 Mobile CSS05 Mobile CSS
05 Mobile CSS
 
Artdm171 Week12 Hosting
Artdm171 Week12 HostingArtdm171 Week12 Hosting
Artdm171 Week12 Hosting
 
JavaScript DOM Manipulations
JavaScript DOM ManipulationsJavaScript DOM Manipulations
JavaScript DOM Manipulations
 
Web Programming Intro
Web Programming IntroWeb Programming Intro
Web Programming Intro
 
Web Performance & You
Web Performance & YouWeb Performance & You
Web Performance & You
 
Converting (X)HTML/CSS template to Drupal 7 Theme
Converting (X)HTML/CSS template to Drupal 7 ThemeConverting (X)HTML/CSS template to Drupal 7 Theme
Converting (X)HTML/CSS template to Drupal 7 Theme
 
Modern HTML & CSS Coding: Speed, Semantics & Structure
Modern HTML & CSS Coding: Speed, Semantics & StructureModern HTML & CSS Coding: Speed, Semantics & Structure
Modern HTML & CSS Coding: Speed, Semantics & Structure
 
Introduction To MongoDB
Introduction To MongoDBIntroduction To MongoDB
Introduction To MongoDB
 
Fecc 12517-sd
Fecc 12517-sdFecc 12517-sd
Fecc 12517-sd
 
Fluentd and WebHDFS
Fluentd and WebHDFSFluentd and WebHDFS
Fluentd and WebHDFS
 
Hive sq lfor-hadoop
Hive sq lfor-hadoopHive sq lfor-hadoop
Hive sq lfor-hadoop
 
Adapt and respond: keeping responsive into the future
Adapt and respond: keeping responsive into the futureAdapt and respond: keeping responsive into the future
Adapt and respond: keeping responsive into the future
 
Ga london-html5&mobile advertising-tomlimongello
Ga london-html5&mobile advertising-tomlimongelloGa london-html5&mobile advertising-tomlimongello
Ga london-html5&mobile advertising-tomlimongello
 
Html 5 and css 3
Html 5 and css 3Html 5 and css 3
Html 5 and css 3
 
ID01 / W01
ID01 / W01ID01 / W01
ID01 / W01
 
Dominion Enterprises _H@&lt;k@th0n_
Dominion Enterprises _H@&lt;k@th0n_Dominion Enterprises _H@&lt;k@th0n_
Dominion Enterprises _H@&lt;k@th0n_
 

Mehr von Ynon Perek

Mobile Devices
Mobile DevicesMobile Devices
Mobile Devices
Ynon Perek
 

Mehr von Ynon Perek (20)

Regexp
RegexpRegexp
Regexp
 
Html5 intro
Html5 introHtml5 intro
Html5 intro
 
09 performance
09 performance09 performance
09 performance
 
Mobile Web Intro
Mobile Web IntroMobile Web Intro
Mobile Web Intro
 
Qt multi threads
Qt multi threadsQt multi threads
Qt multi threads
 
Vimperl
VimperlVimperl
Vimperl
 
Syllabus
SyllabusSyllabus
Syllabus
 
Mobile Devices
Mobile DevicesMobile Devices
Mobile Devices
 
Network
NetworkNetwork
Network
 
Architecture app
Architecture appArchitecture app
Architecture app
 
Cryptography
CryptographyCryptography
Cryptography
 
Unit Testing JavaScript Applications
Unit Testing JavaScript ApplicationsUnit Testing JavaScript Applications
Unit Testing JavaScript Applications
 
How to write easy-to-test JavaScript
How to write easy-to-test JavaScriptHow to write easy-to-test JavaScript
How to write easy-to-test JavaScript
 
Introduction to Selenium and Ruby
Introduction to Selenium and RubyIntroduction to Selenium and Ruby
Introduction to Selenium and Ruby
 
Introduction To Web Application Testing
Introduction To Web Application TestingIntroduction To Web Application Testing
Introduction To Web Application Testing
 
Accessibility
AccessibilityAccessibility
Accessibility
 
Angularjs
AngularjsAngularjs
Angularjs
 
Js memory
Js memoryJs memory
Js memory
 
Qt Design Patterns
Qt Design PatternsQt Design Patterns
Qt Design Patterns
 
Web Application Security
Web Application SecurityWeb Application Security
Web Application Security
 

Kürzlich hochgeladen

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Kürzlich hochgeladen (20)

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 

Introduction to Web Programming

  • 1. Web Programming Intro Ynon Perek Saturday, December 15, 12
  • 2. Whoami Ynon Perek http://ynonperek.com ynon@ynonperek.com Saturday, December 15, 12
  • 3. Agenda The Web Architecture Hello HTML Hello CSS Hello JavaScript Saturday, December 15, 12
  • 4. The Web Architecture Client Side Server Side GET data Here It Is Saturday, December 15, 12
  • 5. Server Side Server side creates the data and returns it to the client All server-side languages return the same result: HTML There are many languages... Saturday, December 15, 12
  • 6. Client Side Client side takes the data and renders it on screen Provides a UX around the data Can send data back to the server Browsers: IE, Chrome, Firefox, Safari Saturday, December 15, 12
  • 7. The Data Data is in a format called HTML (Hyper Text Markup Language) Invented by Tim Berners-Lee Saturday, December 15, 12
  • 8. The Data <html> A browser renders <body> HTML document on   <h1>Hello World</h1>   <p>All your base are belong screen to us</p> </body> HTML is a tag-based </html> language Saturday, December 15, 12
  • 9. The Data Tag-based means you need to use the same opening and closing tag <div>How Do You Annoy A Web Developer ?</span> Saturday, December 15, 12
  • 10. Available Tags Tags (or markup) define the role of their content Headers: h1, h2, h3, h4, h5, h6 Block Sections: div Inline Sections: span Saturday, December 15, 12
  • 11. Container (Block) Demo Inline vs. Block One Two Three (inline) Saturday, December 15, 12
  • 12. Adding Links Use <a> tag to create a link <a> is an inline element Example: <a href=”http://google.com”>Go To Google</a> Saturday, December 15, 12
  • 13. Adding Images Use <img> tag to create an image <img> is an inline-block element: It flows it text, but has height and width like a block alt attribute tells google what’s in the photo Example: <img src=”http://fc02.deviantart.net/fs21/f/2007/306/ d/6/Chibi_turtle_by_blackcattlc.jpg” alt=”Cool Turtle”> Saturday, December 15, 12
  • 14. Adding Text Use <p> tag to wrap text paragraphs <p> is a block-level element Adds a newline Saturday, December 15, 12
  • 15. Clickable Images Wrap in <img> in an <a> tag to get an image that is also a link Demo: images, links and text paragraphs Saturday, December 15, 12
  • 16. Lists HTML has two types of lists: ordered lists marked <ol> and unordered lists marked <ul> Inside a list block, use <li> to denote items <ul>, <ol> and <li> are all block elements Saturday, December 15, 12
  • 17. Lab Create an HTML document for your resume Use correct headers Add an image Saturday, December 15, 12
  • 18. Pages With Style Introducing CSS Saturday, December 15, 12
  • 19. Cascading Style Sheets Apply styling rules to elements Choose an element with a selector Specify rules using properties Saturday, December 15, 12
  • 20. Let’s Start With The Basics Select all h1 elements Write text in red h1 { color: red; } Saturday, December 15, 12
  • 21. Let’s Start With The Basics More CSS styling properties: background-color, color font-weight, font-size, font-family, font-style, text- decoration text-align, line-height outline Saturday, December 15, 12
  • 22. Let’s Start With The Basics Use #id to find a specific HTML element h2#main { color: red; } And in HTML: <h2 id=‘main’>Red</h2> Saturday, December 15, 12
  • 23. Let’s Start With The Basics Use .class to find a set of HTML elements h2.uppercase { text-transform: uppercase; } And in HTML: <h2 class=‘uppercase’>Red</h2> Saturday, December 15, 12
  • 24. Block Level Properties Only block (or inline-block) elements have size width and height are only applicable to block elements Saturday, December 15, 12
  • 25. Lab Using the docs: https:// developer.mozilla.org/ en-US/docs/CSS Style this HTML: http://pastebin.com/ Wm2s8EnH Saturday, December 15, 12
  • 26. Thank You Photos From: http://www.flickr.com/photos/ pedrosimoes7/5158386021/ http://123rf.com Saturday, December 15, 12