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

Learn by Doing - HTML & CSS

Learn by Doing - HTML & CSS

Presentation for Learn by Doing - HTML & CSS, presented first at 804RVA. https://www.meetup.com/804RVA/events/240642685/

Joey Figaro

June 24, 2017
Tweet

Other Decks in Programming

Transcript

  1. • 32 years old • Working with HTML for 20

    years • Working with CSS for 9 years • Professionally building websites for 15 years; javascript applications for 5 years • Currently working as a developer at Painless1099 working with React About Me @joeyfigaro
  2. • Stands for Hyper Text Markup Language • Defines the

    structure/skeleton of a document/website • Basically had no standards, policies, or rules in place until W3C authored a proposal for HTML ~3.2 • HTML 5 won against XHTML 2 and is the latest specification HTML History
  3. Tag

  4. HTML Recap • Tag • Describes the ‘pieces’ or elements

    of a document • Attribute • Describes a property of a given element (name, src, href) • Attribute Value • Describes the value of a given property for a given element
  5. HTML Useful / Commonly Used Tags • div, p •

    ol / ul / li • img • a • h1, h2, h3, h4, h5, h6 * all tags use angle brackets
  6. • div, p • ol / ul / li •

    img • a • h1, h2, h3, h4, h5, h6 HTML Useful / Commonly Used Tags * all tags use angle brackets - <p>Hi! I’m a paragraph</p>
  7. • Before CSS, all styling happened via tag attributes CSS

    Brief History <p font=“Arial” color=“red” size=“20”>omg this is awful</p>
  8. • Before CSS, all styling happened via tag attributes •

    First specification completed in 1996, but it took browsers 3 years to fully adopt CSS Brief History
  9. • Before CSS, all styling happened via tag attributes •

    First specification completed in 1996, but it took browsers 3 years to fully adopt • There was already software that converted powerpoint files into Compact Slide Shows and used the .css file extension. This caused some servers to serve newer CSS files as compact slide shows. CSS Brief History
  10. • Before CSS, all styling happened via tag attributes •

    First specification completed in 1996, but it took browsers 3 years to fully adopt • There was already software that converted powerpoint files into Compact Slide Shows and used the .css file extension. This caused some servers to serve newer CSS files as compact slide shows. • Achieving consistency across browsers was still difficult, even as late as 2014. It’s a little better now. CSS Brief History
  11. Selectors CSS Vocabulary Any element with an ID of “header"

    Any element with a class of “subscription”
  12. Selectors Any element with an ID of “header" Any element

    with a class of “subscription” CSS Vocabulary
  13. CSS Vocabulary Recap • Selector • Identifies the targeted element(s)

    for applying a set of properties • Property • Much like attributes in HTML • Value • Describes the value for a given property • Rule • Begins at the selector and ends at the ending curly brace; includes all properties and values • Opening/Closing Curly Brace • Wrap your list of properties
  14. • Universal • ID • Class • Descendant Combinator •

    Adjacent Sibling CSS Selectors • Attribute
  15. • Universal • ID • Class • Descendant Combinator •

    Adjacent Sibling CSS Selectors • Attribute
  16. • Universal • ID • Class • Descendant Combinator •

    Adjacent Sibling CSS Selectors • Attribute • Pseudo-class/Pseudo-selector
  17. • Universal • ID • Class • Descendant Combinator •

    Adjacent Sibling CSS Selectors • Attribute • Pseudo-class/Pseudo-selector
  18. • Universal • ID • Class • Descendant Combinator •

    Adjacent Sibling CSS Selectors • Attribute • Pseudo-class