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

RailsGirs introduction to code and the web

markjs
March 22, 2014

RailsGirs introduction to code and the web

markjs

March 22, 2014
Tweet

More Decks by markjs

Other Decks in Programming

Transcript

  1. A Web Browser Eg. • Google Chrome • Internet Explorer

    • Mozilla Firefox A web browser’s job is to take HTML code and display it as a web page you can see and interact with.
  2. A web browser’s job is to take HTML code and

    display it as a web page you can see and interact with.
  3. <!DOCTYPE html> <html> <head> <title>The title of our page!</title> </head>

    <body> <h1>Welcome to our example page</h1> <p>We write HTML code and our browser turns it into a web page</p> </body> </html>
  4. <html> The entire HTML document <body> The part you can

    see <h1>, <h2>, <h3> Headings <p> Paragraph <img> Image <a> Anchor (Link) <div> Division
  5. How does the web work? Your web browser asks for

    a web page using an address eg: http://google.com/?q=railsgirls The server (a type of computer) receives the request The server creates the HTML needed and sends it back to your web browser Your web browser receives this HTML and displays the web page.
  6. Where does Rails fit into all of this? Rails runs

    on the server to receive the request and generate the HTML response