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

Community Codes: Intro to HTML/CSS

Community Codes: Intro to HTML/CSS

Slides for presentation/workshop at Community Codes meetup in San Marcos, Texas. (Aug 2017)

Taylor Christensen

August 08, 2017
Tweet

More Decks by Taylor Christensen

Other Decks in Programming

Transcript

  1. Introductions • Name • Tech Background (if any) • What

    do you hope to learn? (tonight, this year, future)
  2. Where do we start? • Browser (HTML, CSS, JS) •

    Server (Java, Ruby, ASP, PHP, C+, JS Frameworks…) • Database (SQL, Mongo)
  3. HTML • “markup language for creating Web pages” • “structure

    of Web pages” • “building blocks” html head body doctype title meta header footer aside article nav logo h1 p p nav h3 p container
  4. HTML Attributes • href • title • size • style

    <a href=“index.html”>Link here!</a> <img src=“logo.png” alt=“Logo”> <p title=“Hover text here”> This is a paragraph. </p>
  5. CSS Styles • color • font-size • font-family • background

    <a href=“index.html” style=“color:red;”>Link here!</a> <p style=“font-size:14pt;”>Hi!</p> <p style=“background:blue;”> This is a paragraph. </p>
  6. CSS Location <p style=“font-size:14pt;”>Hi!</p> Inline <style> p { font-size:14pt; }

    </style> Internal External <link rel=“stylesheet” type=“text/css” href=“style.css”>
  7. <div> + Classes “The <div> element is often used as

    a container for other HTML elements.” <div style=“color:red;”>Content</div> <div class=“main-section”> <p>Paragraph content here.</p> </div> <style> .main-section p { font-size: 16px; } </style>
  8. Advanced Elements • Form • Script • Aside (sidebar) •

    Figure • Nav • Time • Progress • Video / Audio • Geolocation
  9. Resource: Validators • W3Schools Style Guide • HTML Validator •

    CSS Validator W3Schools Style Guide (www.w3schools.com/html/html5_syntax.asp) W3C Markup Validators (validator.w3.org)