Skip to content

Instantly share code, notes, and snippets.

@croixk
Forked from mikedao/b2_intermission_work.md
Last active November 27, 2021 16:33
Show Gist options
  • Select an option

  • Save croixk/d8c217a2460b28880951d3c9e5a76592 to your computer and use it in GitHub Desktop.

Select an option

Save croixk/d8c217a2460b28880951d3c9e5a76592 to your computer and use it in GitHub Desktop.
B2 Intermission Work Submission

B2 Intermission Work

Answer these Check for Understanding questions as you work through the assignments.

HTML

  1. What is HTML? - HTML is the standard markup language for web pages (hyper text markup language)
  2. What is an HTML element? - labels a piece, such as a heading, paragraph, link, etc.
  3. What is an HTML attribute? - provides additional information about element. Comes in the form of a name/value pair
  4. What is the difference between a class and an id? When would you use one vs. the other? - a class is useds to specifiy a class for an HTML element - this allows you to keep styling similar between different elements. An id is unique, and can only apply to one element at most. An id specifies a unique id for an HTML element - classes can describe multiple elements, so the usage is different.
  5. What HTML would you write to create a form for a new dog with a "name" and an "age"?
  6. What are semantic tags? When would you use them over a div? - semantic tags are used to describe meaning to both the browser and the developer. A div is used as a generic container, but doesn't provide information on actual meaning.
  7. Explain what each of the following HTML tags do and when you would use them:
  • <h1>, <h2>, etc. - these are header tags, for headers of different sizes
  • <p> - this establishes a paragraph
  • <body>- defines document's body - contains all visible contents
  • <a> and the href attribute - this definies a hyperlink - the 'href' is the link's destination
  • <img> and the src attribute - embeds an image in the html page - the src is the path to the image
  • <div>- define division or section in html
  • <section> - used to group together related elements - means that contents relate to a signle theme
  • <ul>, <ol>, and <li>
  • <form> - container for input
  • <input>- defines a type for input

CSS

  1. What is CSS?
  2. What is a CSS selector? How do you use the ID selector? The class selector?
  3. What are the three ways to include CSS in your HTML documents? What are the pros and cons of each?
  4. What is the Box Model? Describe each component of the Box Model.

SQL

Jumpstart Lab Tutorial

  1. What is a database?
  2. What is SQL?
  3. What is SQLite3?
  4. What is a Table?
  5. What is a primary key?
  6. What is a foreign key?
  7. Explain what each of the following SQL commands do:
  • insert
  • select
  • where
  • order by
  • inner join

PG Exercises

  1. How can you limit which columns you select from a table?
  2. How can you limit which rows you select from a table?
  3. How can you give a selected column a different name in your output?
  4. How can you sort your output from a SQL statement?
  5. What is joining? When do you need to join?
  6. What is an aggregate function?
  7. List three aggregate functions and what they do.
  8. What does the group statement do?
  9. How does the group statement relate to aggregates?

Rails Tutorial: Task Manager

Copy and Paste the link to your Task Manager repo here: Copy and Paste the link to your Static Challenge here:

  1. Define CRUD.
  2. Define MVC.
  3. What three files would you need to create/modify for a Rails application to respond to a GET request to /tasks, assuming you have a Task model.
  4. What are params? Where do they come from?
  5. Check out your routes. Why do we need two routes each for creating a new Task and editing an existing Task?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment