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

Geek Girl Tech Con Charlotte - Intro to HTML & CSS

Eric Allen
November 15, 2014

Geek Girl Tech Con Charlotte - Intro to HTML & CSS

Intro to HTML & CSS Class for Charlotte's Geek Girl Tech Conference.

Eric Allen

November 15, 2014
Tweet

More Decks by Eric Allen

Other Decks in Education

Transcript

  1. HYPER TEXT MARKUP LANGUAGE (HTML) HTML is a markup language

    for describing web documents (web pages). - W3Schools
  2. HTML5 HTML5 is the latest iteration of HTML. It brings

    some new elements and some awesome new features like audio and video playback, better form inputs, and offline storage.
  3. THE BUILDING BLOCKS OF THE INTERNET Everything you see on

    the Internet is HTML being interpreted by your browser. If you right-click on a web page and click “View Source” you can see the HTML elements that make up that page.
  4. CSS3 CSS3 is the latest iteration of CSS. It brings

    some new features like shadows, rounded corners, and animation.
  5. MAKING THE INTERNET PRETTY CSS can make the HTML building

    blocks look much better. (Or much worse! Wield its power carefully.) CSS gives you control over placement, size, typeface, color, spacing, and pretty much anything else that controls how things look.
  6. HTML ANATOMY HTML is composed of individual parts called elements.

    Elements are denoted by HTML tags, which are written with angled brackets, like <p> which creates a paragraph. Elements can also have attributes and values
  7. CSS ANATOMY CSS is composed of parts called rules. Rules

    begin with a selector, which tells the browser what elements this rule will apply to. Rules contain at least one property and one value for that property. These property value pairs are called declarations.
  8. CSS ANATOMY EXAMPLES a { text-decoration: none; color: #ccc; }

    a:hover { color: #333; text-decoration: underline; }
  9. Let’s head over to http://codepen.io again and give those styles

    a try, too. LET’S SEE WHAT THOSE TURN INTO
  10. Open a text document in any text editor. Note: This

    does not include something like Microsoft Word. If you are on Windows, you should have a program called Notepad, and if you are on OS X you should have something called TextEdit. Eventually you will want a programming-specific text-editor, but we can start with these programs for now.
  11. There are a few important things our document will need:

    <!DOCTYPE html> <html> <head> <title>Geek Girl Tech Con - Intro to HTML & CSS</title> </head> <body> <!- - Our content will go here - -> </body> </html>
  12. Let’s add a little content: <h1>Geek Girl Tech Con Charlotte</h1>

    <h2>My Website</h2> <p>This is my site for the Intro to HTML and CSS workshop</p>