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>
how many headings does HTML have
6
<h1>
<h2>
<h3>
<h4>
<h5>
<h6>
</h6></h5></h4></h3></h2></h1>
The <p> tag
defines a paragraph
The <div> tag is used to
define a division or a section in an HTML document
Internal hyperlink
links to a different page within the same website or to a different section on the same page
external hyperlink
links to a page on a different website
Tthe <img></img> tag
is used to add an image to a web page
The audio element
embeds audio in a web page
controls: adds audio controls
The video element
embeds video in a web page
An ordered list
displays each list itemm after an item number
An unordered list
displays each list iteam after a bullet point
<ol>
</ol>
ordered list
<ul>
</ul>
unordered list
relative address
is the path to a file starting from the current loaction
Absolute links
An absolute address is the full path to a file
onmouseover occurs when the user
mobes the mouse pointer over an element
onmouseout occurs when the user moves
the mouse pointer off an element