INTRODUCTION TO CSS Flashcards
CSS stands for
Cascading Style Sheet.
describes how HTML elements are to be
displayed on screen, paper, or in other media.
CSS
It was described and developed as a means to separate the design portion of the web page into a different file for easier management of a website’s
style.
CSS
This saves a lot of work for designing a web page
CSS
Was HTML intended to contain tags for formatting web pages?
No
HTML is used to:
to describe the content of the web page
parts of a css
Selector, Declaration block -> declaration (property and value)
h1 {color:blue; font-size:12px;}
what part is h1
selector
h1 {color:blue; font-size:12px;}
what part is color
property
what part is blue
value
points to the HTML element you want to
style.
selector
contains one or more
declarations separated by semicolons
declaration block ( the curly brackets “ { } “ )
includes a CSS property name and a
value, separated by a colon.
declaration
Multiple CSS declarations are separated with _______
semi colons
declaration blocks are surrounded by ________
curly brackets
Three types stylesheets you can use
in your HTML documents
External Stylesheets
Internal Stylesheet
Inline stylesheets
You can link an external stylesheet by using the following
code to your HTML file.
Link tag ( <link></link> )
Internal style sheets are defined in the head section of an
HTML page with
<style></style>
The style functions as an attribute of the style attribute
inline stylesheet
<head>
<link></link>
</head>
what stylesheet is this
external style sheet
<head>
<style>
a { color: red; text-align: center; } h1{ color: blue; }</style>
</head>
what stylesheet is this
Internal style sheet
<p>Sample Inline
Style Sheet. </p>
what stylesheet is this
Inline stylesheet