Cascading Style Sheets Basics -2019

Cascading Style Sheets Basics -2019

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

3 ways to apply CSS

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (17)

Section 1

(17 cards)

3 ways to apply CSS

Front

Inline, Internal, External

Back

External

Front

separate css file created on text editor - not part of html document, and can be used over and over for multiple web pages p { color:blue }

Back

em

Front

unit of relative measurement, Ex: 1 em = default font size, 2em doubles default font size, .5em would half default font size

Back

CSS

Front

Cascading Style Sheets - the skin and makeup of web-page, allows for application of styling

Back

inline

Front

css added directly into our html tags using the style attribute

Back

comments

Front

/ my comment /

Back

Selectors

Front

name for tags used in CSS. For instance the "p" tag in html is called the "p" selector

Back

Cascading

Front

sheets can apply formatting when more than one formatting applies

Back

Benefits of CSS

Front

Can apply formatting to several elements without rewriting code Can be used over and over for different html pages Can Describe where elements are displayed Saves much work

Back

.css

Front

file extension for external CSS

Back

external css link

Front

goes between head tags on html document and has 3 attributes 1-Type- always equal to "text/css" 2-rel always equal to "stylesheet" 3-href point to file name <link type="text/css" ref="stylesheet" href="file name"/> (html and css should be in same folder or the entire path to css is needed)

Back

Internal (aka embedded)

Front

applies to whole html page and is inserted right into the head tags, enclosed by style tag <style> p { color:blue} </style>

Back

font families

Front

Serif - font with little decorative bits at the end San Serif - Plain looking font, no decorations Cursive - scripty font, looks like cursive writing

Back

Style Sheet

Front

describes how an HTML file should look and holds our formats

Back

Hexadecimal Values

Front

Counting base 16 with each digit being the numbers 0-9 and the letters a-f - Always starts with a # and are up to 6 digits long - not case sensitive, capitalization does not count - code for color is ordered RGB, #000000 is black and #ffffff is white.

Back

declaration blocks

Front

contains one or more properties and values separated by semi-colons and contained within curly brackets p { color:blue; font-size:12px; font-family:Arial }

Back

pixels

Front

dots on a computer screen, makes up an image

Back