WDD - Implementation Flashcards
what is CSS used to define
how HTML elements should be displayed
each CSS is made up of
a selector followed by a declaration block in brackets
CSS uses
color
a class selector can be used to
style multiple elements on a web page
.
class selector
an ID selector can be used
to style one element different
#
ID
Internal CSS is
included within the <style> element within the head section of a web page, and its rules can be applied to that page</style>
Advantages of internal CSS
easier to work with
Disadvantages of internal CSS
CSS rules only apply to a single page
A site with multiple pages would need any CSS changes to be made on each page
Can cause slower load times because CSS rules need to be downloaded for each individual page
External CSS
is stored in a separate external stylesheet
how to write external css
<head>
<link></link>
</head>
Advantages of external CSS
CSS rules can be applied to multiple pages across a website
Changes to CSS styles need only be made once and will be applied to all link pages
Can improve load times because the CSS file need only be downloaded once
Disadvantages of external CSS
external CSS file xan become quite large and the entire file needs to be downloaded before viewing a single page
The structure of HTML web page
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>