Upgrade to Pro — share decks privately, control downloads, hide ads and more …

World Wide Web Workshop

World Wide Web Workshop

History of the WWW
How the Web works
Web keywords
How to create a web page

mjawili

July 26, 2012
Tweet

Other Decks in Technology

Transcript

  1. Roadmap • Examine WWW’s history • Understand how it works

    • Clarify critical web terms • Demonstrate how a basic web page is made Takeaway: A greater understanding of the Web
  2. About Me • Web Dev at Hotwire • CS BS,

    USC, 2008 • Worked for Microsoft, Expedia, Hotwire • Runs and teaches at CodeEd SF
  3. A Prediction? A network of such [computers], connected to one

    another by wide-band communication lines [which provided] the functions of present-day libraries together with anticipated advances in information storage and retrieval and [other] symbiotic functions. —J.C.R. Licklider (1960)
  4. Why the WWW? • Needed fast way to share information

    • Software hard to write • HTML is easy to understand and accessible
  5. History of WWW 1989: Tim Berners-Lee created first HTML version

    1993: IETF published working draft of first “official” HTML 2004: World Wide Web Consortium created and Web 2.0 started 2007: Mobile web became popular 2012: W3C is working on HTML5
  6. Servers & Clients The Web consists of interconnected servers and

    clients. Mobile phones must connect to cell phone towers and satellites, too.
  7. Caching • Caching reduces the load time of a page.

    • Browsers usually cache requested files for later reference. • When the same files are requested, browsers get them from the cache.
  8. Browsers Browsers are programs that render content on the Web,

    usually HTML. HTML or “hypertext markup language” describes the page.
  9. Browser Parts Browsers are made of multiple parts. Browser Rendering

    Engine Javascript Engine Internet Explorer Trident Chakra Firefox Gecko *Monkey Chrome Webkit V8 Safari Webkit JavascriptCore
  10. Mobile Web • Use of browser-based web services from handheld

    mobile devices. • Increased use since 2007 thanks to phones and tablets.
  11. Flash & HTML5 • Flash is Adobe’s propriety platform. •

    Requires browser plugin • Not supported on iOS • Can only be created with Adobe software • Runs on CPU • HTML is public • Runs on all browsers, no need a plugin • Can be written with any text editor • Can offset work to GPU
  12. Native & Web Apps • Native apps came first. •

    Proprietary platforms • From App Store • Have access to other phone programs • Usually device-specific • Written in HTML • Accessible through phone’s browser • No need to download updates • Catching up to native apps
  13. Responsive Design The fluid design of web pages so that

    they adapt their layouts to the client’s resolution size.
  14. HTML • Hypertext Markup Language • HTML files contain small

    markup tags. • Markup tells browser how to render the page. You can create an HTML file with a text editor!
  15. HTML Tag Parts Tag pairs consist of “start” and “end”

    tags, have content in between, and optional attributes. <tagname attribute=“value”> content </tagname> <a href=“http://www.vscpr.com”> VSCpr website </a>
  16. HTML Basics The doctype isn't an actual tag, but it

    needs to be at start at every HTML page to tell browser which version of HTML you're using (HTML5, in example below). The html tag is always the first tag in the page.
  17. Head & Body The head contains "meta" information about the

    page, information that the browser needs before rendering it. The body contains the actual content of the page.
  18. HTML Skeleton <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Title of

    your page goes here</title> </head> <body> Bulk of your content here. </body> </html>
  19. Semantic Web Semantic web is use of HTML tags to

    convey the meaning of the information on the page. Some semantic web practices: • Use <strong> instead of <b> • Organize navigations links into a list.
  20. Comments, Whitespace, & Nesting <!-- Comment --> <h1>Cities I’ve visited</h1>

    <ul> <li>Boise, <em>ID</em></li> <li>Miami, <em>FL</em></li> <li>Seattle, <em>WA</em></li> </ul>
  21. Accessibility Accessibility is how available a web page is to

    as many people as possible. Methods to increase accessibility: • Semantic markup • Alternative media for any multimedia • Device independence
  22. Spans <p>This is the first paragraph in my web page.

    <span>It is the introduction.</span> It doesn’t go into much detail about anything.</p>
  23. Form Elements <form> <label>Name: <input type=“text” name=“firstName”/> </label><br/> <label>Comment:<br/> <textarea

    name="delivery"></textarea> </label><br/> <button type=“submit”>Click me!</button> </form>
  24. Iframes You can use HTML to embed other webpages in

    your own page using an iframe element pointing at a URL: <iframe src="http://www.vscpr.com" width="500" height="300"></iframe>
  25. CSS • Cascading Style Sheets • “Style sheet ”language that

    styles a page • Embedded in HTML but is not HTML CSS decorates text, adds color, sets sizes, and positions elements!
  26. CSS Parts Consists of “style rules”. Rules are made up

    of “selectors” and “declarations”. selector { property: value; property: value; } body { color: yellow; background-color: black; }
  27. CSS in HTML CSS can be embedded in HTML in

    various ways. One way is to have it in a style tag inside the head tag. <html> <head> <style> body { color: yellow; background-color: black; } </style> </head>
  28. Selectors Selectors determine which elements in the will be given

    the styles inside the curly brace. Selector types: • Element • ID • Class
  29. Selector Type: ID #header{ } Selects any element with the

    id “header", e.g. <p id="header"></p> The "#" is how you tell CSS "this is an id."
  30. Selector Type: Class An element can have only 1 id

    but multiple classes. .intro { background-color: blue; } .desc { color: red; } <p class="desc intro">hi</p> <p class="desc">hi</p> <p class="intro">hi</p>
  31. float float: left; float: right; When you want to stop

    having elements be affected by floating elements, add clear: left; or clear: right; to the first element.
  32. border-radius -webkit-border-radius: 0px 20px 0px 20px; border-radius: 0px 20px 0px

    20px; -webkit-border-radius: 10px; border-radius: 10px; Generated by http://css3generator.com.
  33. Graceful Degradation The ability of a web page to maintain

    some functionality even when the browser does not fully support everything on the page. IE does not support text-shadows. IE8 does not support gradients or border-radius.
  34. Progressive Enhancement The belief that web sites should create a

    basic level of user experience for all browsers, and then add advanced functionality for browsers that can use it. IE does not support text-shadows. IE8 does not support gradients or border-radius.
  35. CSS in HTML Can put CSS in its own file

    and link to it in the head section of the HTML. <head> <link rel="stylesheet" type="text/css" href="main.css"> </head>
  36. JavaScript • A scripting language that adds interactivity to web

    pages. • Embedded in HTML but is not HTML JavaScript makes your page more engaging by reacting to events from the user.
  37. JavaScript in HTML JavaScript can be embedded in HTML in

    various ways. One way is to assign it to individual elements. <button onclick=“alert(‘Hello!’)”/>
  38. Progressive Enhancement The belief that web sites should create a

    basic level of user experience for all browsers, and then add advanced functionality for browsers that can use it. Gmail has a separate view for browsers with JavaScript turned off.
  39. Resources Reference • CSS Mastery – by Andy Budd •

    DOM Scripting – by Jeremy Keith • W3C (www.w3c.org) Tutorials • Code Academy (www.codeacademy.com)