a guest Oct 15th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- # B2 Intermission Work
- Answer these Check for Understanding questions as you work through the assignments.
- ## HTML
- 1. What is HTML?
- 1. What is an HTML element?
- 1. What is an HTML attribute?
- 1. What is the difference between a class and an id? When would you use one vs. the other?
- 1. What HTML would you write to create a form for a new dog with a "name" and an "age"?
- 1. What are semantic tags? When would you use them over a `div`?
- 1. Explain what each of the following HTML tags do and when you would use them:
- * `<h1>`, `<h2>`, etc.
- * `<p>`
- * `<body>`
- * `<a>` and the `href` attribute
- * `<img>` and the `src` attribute
- * `<div>`
- * `<section>`
- * `<ul>`, `<ol>`, and `<li>`
- * `<form>`
- * `<input>`
- ## CSS
- 1. What is CSS?
- 1. What is a CSS selector? How do you use the ID selector? The class selector?
- 1. What are the three ways to include CSS in your HTML documents? What are the pros and cons of each?
- 1. What is the Box Model? Describe each component of the Box Model.
- ## SQL
- ### Jumpstart Lab Tutorial
- 1. What is a database?
- 1. What is SQL?
- 1. What is SQLite3?
- 1. What is a Table?
- 1. What is a primary key?
- 1. What is a foreign key?
- 1. 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?
- 1. How can you limit which rows you select from a table?
- 1. How can you give a selected column a different name in your output?
- 1. How can you sort your output from a SQL statement?
- 1. What is joining? When do you need to join?
- 1. What is an aggregate function?
- 1. List three aggregate functions and what they do.
- 1. What does the `group` statement do?
- 1. 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.
- 1. Define MVC.
- 1. 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.
- 1. What are params? Where do they come from?
- 1. Check out your routes. Why do we need two routes each for creating a new Task and editing an existing Task?
RAW Paste Data