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

Intro to HTML

Avatar for lumilux lumilux
April 03, 2012

Intro to HTML

Avatar for lumilux

lumilux

April 03, 2012
Tweet

Other Decks in Programming

Transcript

  1. AN HTML DOCUMENT ...is just text that has been marked

    up. ...is usually saved as a .html file. ...is what your browser was made for.
  2. COMMON ELEMENTS <a> <em> <abbr> <p> <ol> <ul> <div> grouping

    <h1> <header> <footer> <section> <article> phrasing sectioning
  3. <header><h1>My Blog</h1></header> <section> <article> <h2>First post!</h2> <p>This is my <em>very</em>

    first post.</p> <p>I hope you like it!</p> </article> </section> <footer><p>By Joe Smith</p></footer>
  4. WHAT YOU NEED <!doctype html> <html> <head> <title>Your page title</title>

    </head> <body> <p>Your stuff goes in the body!</p> </body> </html>
  5. ORDERED LISTS <ol> <li>Open file</li> <li>Edit file</li> <li>Save file</li> <li>Close

    app</li> </ol> 1.Open file 2.Edit file 3.Save file 4.Close app
  6. TEXT NON-SEMANTICS <p> RMS <i>Titanic</i>. This is a<br> <b>keyword</b>. </p>

    RMS Titanic. This is a keyword. SPECIAL CASES ONLY!
  7. Chrome and Firefox: ⌥ ⌘ i Ctrl ⇧ i DEVELOPER

    TOOLS Right click → View Page Source RAW PAGE SOURCE
  8. MY PAGE IS STILL UGLY HTML defines structure. Intro to

    CSS: next week CSS defines presentation!