Code Camp Supplement Flashcards

1
Q

In HTML, how do you create an input field for text?

How do you have the placeholder text: “Meat Sauce Baby”?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What will the output of this be?

  body {
    background-color: black;
    font-family: Monospace;
    color: green;
  }
  .pink-text {
    color: pink;
  }
  .blue-text{
    color: blue;
  }

<h1>Hello World!</h1>

A

“Hello World” will be in blue text. Order matters in the style sheet and since blue text comes after pink text and green text in the body, the color pink overrides.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

True or False?

ID css selectors override classes?

A

True.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

True or False?

ID css selectors override classes?

A

True.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

True or False?

In-Line styles override even ID selectors?

A

True.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is this referred to as and where it’s proper placement?

$(document).ready(function() {

});

A

This is called a document ready function - it waits to load any JS until the DOM is ready and fully loaded.

It is placed at the top of the page so JS can load before all the other HTML elements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

$ in jQuery is called what?

A

Bling. All jQuery statements begin with bling.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly