Code Camp Supplement Flashcards
In HTML, how do you create an input field for text?
How do you have the placeholder text: “Meat Sauce Baby”?
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>
“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.
True or False?
ID css selectors override classes?
True.
True or False?
ID css selectors override classes?
True.
True or False?
In-Line styles override even ID selectors?
True.
What is this referred to as and where it’s proper placement?
$(document).ready(function() {
});
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.
$ in jQuery is called what?
Bling. All jQuery statements begin with bling.