Agenda

Before 7pm     Log in Routine
7:00 - 7:15 Cohort Exercise
7:15 - 7:45 HTML Elements
7:45 - 8:00 Boilerplate HTML
8:00 - 8:45 Demo: recipe.html
8:45 - 9:00 Exercise: Make your own how-to tutorial

Log in Routine

Here are a few things you'll do at the beginning of every class:

  1. Log into the the student account on the lab computer.
    • Even if you're using your own device, the classroom wifi seems a bit weak, and the desktop computers are hard-wired with ethernet cables, which makes the connection more reliable.
  2. Sign into the Contra Costa Codes Slack team with your email and password on the lab computer.
    • The classroom wifi isn't quite strong enough to fully load Slack on your device unless your using a personal hotspot.
    • Keep Slack open in a tab or in another window (which can be minimized) so that you can open it quickly to post a question or find a link that has been shared.
  3. If you brought you're own device, connect it to the class wifi, which seems to be strong enough to run Glitch.
  4. Log into Glitch and pull up the exercise from last class.

Remember to log out Slack and Glitch at the end of class!

Cohort Exercise

Let's complete the exercise from last week.

  1. Log into Glitch.
  2. Add a name to your profile.
    • Click your profile icon near the top right corner of the page.
    • Click on the name "Anonymous," and that will bring up your profile.
    • In the first textbox, type your name or psuedonym.
    • Now I will know who is making changes on our project. I'll be removing all anonymous users from the project.
  3. Click this link to edit the contracostacodes project, and you'll automatically be granted permissions to edit the project.
  4. Select the html-css-cohort.html page from the file list on the left.
  5. Clicking on the 🕶️ Show dropdown to display a preview. You can choose to show the page right beside the code (which is helpful, but makes the code window smaller) or in a new window (which opens a new tab that you'll need to switch between to see the changes).
  6. Scroll through the code to find a <!-- Card Section --> that hasn't been filled in yet and add the following information:
    • Your name
    • Your github/glitch username
    • A short description of the website you want to make for your final project

Futher study

If you finish early, check out the HTML first few tutorials from w3schools.com.

HTML Elements

Anatomy of an HTML Tag

HTML elements are wrapped in opening and closing tags.

A few elements don't need closing tags. They are called self-closing tags or void tags.

      <br> <hr> <img> <input> <link> <meta>

Opening tags can also include attributes with information specific to that kind of element.

Make sure you close tags in the order you open them!



Types of HTML Elements

HTML Element Reference by Category

Semantic HTML

HTML5 emphasizes using elements that convey meaning or for specific purposes rather than how the content should look.

Examples:

Semantic HTML is good for accessibility and Search Engine Optimization (SEO).

Bottom line: 99% of the time, you should use CSS to change how elements look.

Boilerplate HTML

What every HTML document needs

SitePoint Tutorial: A Basic HTML5 Template For Any Project

You can find a start template in our contracostacodes Glitch project named boilerplate.html.

Demo: recipe.html

  1. Starter HTML
  2. Without Markup
  3. Headings
  4. Paragraph
  5. List
  6. Links
  7. Images

Exercise: Make your own how-to tutorial

Pick a skill, recipe, craft, or project you're interested and write a how-to tutorial.

  1. Start by writing out the steps in a document without HTML. For this project, it's OK to start with a tutorial you found online.
  2. Create a new Glitch project with the name format: username-howto.
  3. Share the link to your project in the #javascript Slack channel.
  4. Feel free to copy the code from recipe.html to get started. Or if you're feeling confident, markup your tutorial from scratch!
  5. Try to find an hour this week to work on the project at home, or come in 30 minutes early before next week's class.
  6. There will be time at the beginning of class to answer questions and review each others code.
  7. We'll use this tutorial to practice the CSS skills we learn next week!