Answer these Check for Understanding questions as you work through the assignments.
- What is HTML? - HTML is the standard markup language for web pages (hyper text markup language)
- What is an HTML element? - labels a piece, such as a heading, paragraph, link, etc.
- What is an HTML attribute? - provides additional information about element. Comes in the form of a name/value pair
- 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.
- What HTML would you write to create a form for a new dog with a "name" and an "age"?
- 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. - 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 thehrefattribute - this definies a hyperlink - the 'href' is the link's destination<img>and thesrcattribute - 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
- What is CSS? - CSS is a language used to style an HTML document (cascading style sheets) - saves the work of styling in html
- What is a CSS selector? How do you use the ID selector? The class selector? - the selector points to the html element that you want to style. The ID selector uses the id attribute of an HTML element to select a specific element. The class selector selects html elements with a specific class attribute.
- What are the three ways to include CSS in your HTML documents? What are the pros and cons of each? The three ways are external CSS, internal CSS, and inline CSS. An external style sheet allows the entire website to be changed with just one file. An internal style sheet can be used if a single html page has a unique style. Inline style can be used for single elements.
- What is the Box Model? Describe each component of the Box Model.
- What is a database?
- What is SQL?
- What is SQLite3?
- What is a Table?
- What is a primary key?
- What is a foreign key?
- Explain what each of the following SQL commands do:
- insert
- select
- where
- order by
- inner join
- How can you limit which columns you select from a table?
- How can you limit which rows you select from a table?
- How can you give a selected column a different name in your output?
- How can you sort your output from a SQL statement?
- What is joining? When do you need to join?
- What is an aggregate function?
- List three aggregate functions and what they do.
- What does the
groupstatement do? - How does the
groupstatement relate to aggregates?
Copy and Paste the link to your Task Manager repo here: Copy and Paste the link to your Static Challenge here:
- Define CRUD.
- Define MVC.
- What three files would you need to create/modify for a Rails application to respond to a
GETrequest to/tasks, assuming you have aTaskmodel. - What are params? Where do they come from?
- Check out your routes. Why do we need two routes each for creating a new Task and editing an existing Task?