Basic HTML/CSS Primer for High School Advisers


Published on

During Emerging Media workshop we talked about the basic html/css terminology and importance before moving into CMS.

Published in: Technology, Design
  • HTML and CSS: Design and Build Websites ---
    Are you sure you want to  Yes  No
    Your message goes here
  • A Smarter Way to Learn HTML & CSS: Learn it faster. Remember it longer. (Volume 2) ---
    Are you sure you want to  Yes  No
    Your message goes here
  • Web Design with HTML, CSS, JavaScript and jQuery Set ---
    Are you sure you want to  Yes  No
    Your message goes here
  • Nice work - I've adapted this for use with college students.
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Basic HTML/CSS Primer for High School Advisers

  1. 1. HTML Foundation of Web development < <
  2. 2. You don’t have to be a Web ninja to understand Web development basics.
  3. 3. Code is a series of logical questions and answers
  4. 4. So, let’s answer some questions …
  5. 5. Layers of a Web site
  6. 6. Hypertext Markup Language Hypertext Markup Language describes: - Structure - Content - Typographic hierarchy - Rudimentary style (bold, italics, etc.) What is HTML?
  7. 7. HTML Document It might feel chaotic and unstructured … But the entire content of the page exists here.
  8. 8. Cascading Style Sheets - Separates style from content - Easier to change formatting and update an entire Web site - Eliminates page load - Flexible design - Better user accessibility for search bots and screen readers - Allows you to design for multiple browsers and multiple Operating System (Linux, PC or Mac) environments What is CSS?
  9. 9. CSS Document
  10. 10. <ul><li>HTML is used for content and structure </li></ul><ul><li>HTML houses scripting languages and behaviors </li></ul><ul><li>CSS separates style from content </li></ul><ul><li>CSS helps screen readers and users with disabilities read real content </li></ul>HTML vs. CSS Review Speaking of accessibility …
  11. 11. A brief intro to accessibility
  12. 12. When building a Web site consider accessibility issues for users , search engines and mobile applications
  13. 13. A user sees:
  14. 14. Search bot/screen reader: Video on Screen Readers and Accessibility
  15. 15. Mobile device:
  16. 16. There are several things you can do to create good experiences for all users:
  17. 17. Write good, descriptive headlines
  18. 18. Write detailed paragraphs
  19. 19. Write precise page titles
  20. 20. Write descriptive image tags
  21. 21. Write descriptive links Don’t say ‘click here!’
  22. 22. Separate content from style
  23. 23. Ready to start writing HTML and CSS ? Who needs fancy schmancy software? We don’t!
  24. 24. Create a folder called ‘ Web ’ on your desktop
  25. 25. In that folder, create a new folder called ‘ style ’
  26. 26. Open a text editor : Text Wrangler, Text Edit or even Word is fine.
  27. 27. Save a new document as ‘index.html’ You just created a homepage. And added content.
  28. 29. HTML has open and close brackets, which are called tags: <b> Content goes here </b> Result: Content goes here <i> Content goes here </i> Result: Content goes here For a complete list, go to <font color=”blue”> Content </font> Result: Content
  29. 31. Declare a ‘DOCTYPE’ DOCTYPE tells browsers which set of rules or semantics to use, what types of tags are allowed and how strictly to follow it. XHTML 1.0 Transitional is now one of the most common ‘DOCTYPEs’ to declare. For a complete list, go to
  30. 32. Create an HTML tag <ul><li>- Defines the document as <html> </li></ul><ul><li>Make sure to add open and close tag </li></ul><ul><li>End of the document </html> </li></ul>
  31. 33. Create an HEAD tag <ul><li>- Defines header information </li></ul><ul><li>Contains meta data and links to external files (such as CSS) </li></ul>
  32. 34. Create an TITLE tag Defines Title of Web page
  33. 35. Create an LINK tag A favicon is the small image that shows up in the browser Examples:
  34. 36. Create META information Add descriptive text for search engines and screen readers to read
  35. 37. Create CSS Link Adding a stylesheet link will allow you to link CSS to HTML
  36. 38. Create a CSS file - Create a new file called styles.css
  37. 39. Link HTML to CSS Make sure that the name of the folder matches up
  38. 40. Add a BODY tag to the HTML page Defines content area of the Web page
  39. 41. Let’s start adding content! Between <body></body> tags, you can start to add other tags, such as paragraphs <p></p> and headlines <h1></h1>
  40. 42. You’ve got a page … But it looks kind of boring, right?
  41. 43. CSS Basics p { color:#666666; } Result: Content becomes grey p { color:#666666;font-weight:900; } Result: Content becomes grey and heavy bold Target HTML tags with ‘selectors’ in CSS. Attribute style information between the brackets.
  42. 44. Change ‘style’ of an HTML element:
  43. 45. Remember this?
  44. 46. Who’s a Web ninja? Questions?