CSS styles whose code is located within the head section of the HTML code of a web page. Control limited to that one HTML page. (also known as embedded)
Back
background-color
Front
Sets the background color of the element
Back
.class
Front
It allows all elements with the class selector to be changed. Selects all elements with class="intro"
HTML
<div>
<p> class="highlight">me</p>
</div>
<div>
<p> class="highlight">you</p>
<p>no highlight here</p>
</div>
CSS
.hightlight {
background: yellow;
}
Back
Inline CSS Style
Front
CSS coded in the body of the web page as an attribute of an html tag. Control limited to the one element with the style.
Back
CSS
Front
Cascading Style Sheets; a language used to describe how HTML elements should be styled
Back
selector
Front
The part of a CSS rule which specifies which element(s) are to be styled.
Back
Internal styles are located between ____ inside ___
Front
style tags inside the head section
Back
CSS commands are called
Front
rules
Back
3 ways to insert CSS
Front
external or internal style sheet, or inline style
Back
<link href="style.css" rel="stylesheet"/>
This code shows an example of:
Front
Linking your HTML and CSS files.
Back
Popular Colors used in CSS
Front
CSS includes most common color names (red, blue, green),
numbers describe mix of red green and blue
color: rgb (143, 188, 143)
Back
float
Front
Floats an element to one side of the page
Back
inline styles
Front
make it possible to write CSS code directly within HTML code
add "style" attribute and CSS styles (end with ;)
ex: <p style= "color: red;"> I'm learning code </p>