Which pair of characteristics differentiate HTML from XML?
Which technique for implementing CSS in an HTML file is used for page-level style declarations?
Which CSS selector represents the first-child pseudo-class selector?
Which CSS selector is used to style general sibling elements?
~ . * +(~) selects all elements that are next siblings of a specified element.
(. ) selects classes
(* ) select all elements
(+ ) Adjacent sibling combinator
What are two unique characteristics that define a polygon hot spot?
Choose 2 answers.
“A Polygon Hotspot lets you define a clickable area”
p {
padding: 5px 10px 15px;
height: 20px;
width: 60px;
border: 5px solid #000000;
} What is the total width and total height of the paragraph element?
1 value - applies to all four sides.
2 values - first = top and bottom, second = left and right.
3 values - top, right and left, bottom.
4 values - top, right, bottom, and left in that order (clockwise).
Which feature helps the user find content throughout a website?
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<style>
p:first-child {
color: orange;
}
p:last-child {
color: blue;
}
p:nth-last-child(2) {
color: green;
}
</style>
</head>
<body>
<p>This is sentence one.</p>
<p>This is sentence two.</p>
<p>This is sentence three.</p>
<p>This is sentence four.</p>
</body>What is the text color for the statement, “This is sentence two”?
p:first-child targets sentence one
p:last-child targets sentence 4
p:nth-last-child(2) targets sentence 3
<html>
<head>
<style>
html {
font-size:16px;
}
</style>
</head>
<body>
<p>By default all text has a font size of 16px.</p>
<div>This sentence is double the size.</div>
</body>
</html>Which unit of measurement sets the text size of the <div> element to be double that of the <html> element?
Which set of CSS rules will create a fluid layout?
answer A:
body {
margin: auto;
border: solid 1px gray;
}
main {
padding-left: 35%;
border: solid 1px gray;
}
aside {
width: 30%;
float: left;
border: solid 1px gray;
}answer B:
body {
width: 960px;
margin: auto;
border: solid 1px gray;
}
main {
width: 670px;
padding-left: 290px;
border: solid 1px gray;
}
aside {
width: 285px;
float: left;
border: solid 1px gray;
}answer C:
body {
width: 100%;
margin: auto;
border: solid 1px gray;
}
main {
width: 670px;
padding-left: 290px;
border: solid 1px gray;
}
aside {
width: 285px;
float: left;
border: solid 1px gray;
}answer D:
body {
width: 100%;
margin: auto;
border: solid 1px gray;
}
main {
width: 70%;
padding-left: 290px;
border: solid 1px gray;
}
aside {
width: 285px;
float: left;
border: solid 1px gray;
}answer E:
body {
width: 960px;
margin: auto;
border: solid 1px gray;
}
main {
padding-left: 35%;
border: solid 1px gray;
}
aside {
width: 30%;
float: left;
border: solid 1px gray;
}answer A:
body {
margin: auto;
border: solid 1px gray;
}
main {
padding-left: 35%;
border: solid 1px gray;
}
aside {
width: 30%;
float: left;
border: solid 1px gray;
}In what year did the Internet begin with four networked computers?
1969
In what year did the number of Internet users surpass 3 billion?
2015
How many Domain Name System (DNS) servers currently exist in the world?
13
What is the Third-level domain in the following multi-level domain name? cs.stanford.edu
cs
Regarding the parts of a URL, what is a Fragment?
Identify all of the CONDITIONS below that could affect web accessibility.
True or False? HTML comments should be used to ensure that the addition of random white space will not affect rendering in browsers.
False
Which of the following are examples of empty, or void, element tags? Select all that apply.
<br></br>
<hr></hr>
<img...>
<meta></meta>
<div>...</div>
<h1>...</h1>
</img...>
<br></br>
<hr></hr>
<img...>
<meta></meta>
</img...>
How many heading element tags are there?
6
Select the three optional table tags that browsers may use to allow scrolling of the table body independently from the table header and table footer.
Select the three popular image formats supported by web browsers.
True or false? Hyperlinks can only contain text.
False
True or false? A absolute URL specifies the relative path to the web resource with no scheme or hostname
False
https://cart.com is an absolute URL
examples of relative URLs:
cart.com
../products/phones.html
#section-1.
?category=electronics
True or false? Hyperlinks can only contain text.
False
elements where the parent is a
element