Quiz
DaddyFrost's HTML Basics Reviewer
This quiz has question types that open in the usual player.
Questions in this quiz (95)
1What can you do with HTML and CSS?
- ABuild an awesome personal portfolio
- BAdd fun animations to your web page
- CPresent web content in visually appealing ways
- DAll of the above
2<h1>Welcome to my webpage[blank_start]</h1>[blank_end]
- A</h1>
3What is CSS used for?
- AAdding interactivity to a web page
- BDefining the structure of a web page
- CStyling HTML elements on a web page
4<h1>Hello, world!</h1> is an example of ____.
- AJavaScript
- BCSS
- CHTML
5What is HTML used for?
- AStyling HTML elements on a web page
- BDefining the structure of a web page
- CAdding interactivity to a web page
6You can use HTML and CSS to retrieve information from a database.
- ATrue
- BFalse
7Which of the code examples below tells the browser that the contents of the document are HTML?
- A<!documenttype html>
- B<!htmldoc>
- C<!doctype html>
8The <head></head> tags are where we put information you don’t see in the browser, like the page's title, and links to JavaScript and CSS files.
- ATrue
- BFalse
9The bulk of the content of our web page goes in the _____ section.
- AFooter
- BBody
- CHead
10All of the code for your web page, including the <!doctype>, must go between <html></html> tags.
- ATrue
- BFalse
11Which tags commonly appear inside the part of a web page that you see in the browser window?
- Adoctype, body, title
- Bbeginning, middle, end
- Chead, title, html
- Dheader, main, footer
12You can place an <img> tag inside an <a> tag to turn the image into a link.
- ATrue
- BFalse
13What two attributes should you put on an <img> tag?
- Aclass and alt
- Bclass and ID
- Csrc and alt
- DID and href
14A <p> tag is used to:
- AMake an element purple.
- Bcommence a paragraph of text.
- CAdd punctuation.
15What is the purpose of an href attribute on an anchor tag?
- ATo create a paragraph element.
- BTo tell the browser where we want the link to go
- CTo define an image file path.
16What is the alt attribute on an <img> tag for?
- AIt points to a backup image
- BIt describes an image
- CIt provides the file path to an image
17<!--Give the image tag a src attribute with a file path of "images/spain.jpg"-->
<!doctype>
<html>
<head>
<title>My trip to Spain</title>
</head>
<body>
<img [blank_start]src="images/spain.jpg"[blank_end] alt="A picture of me in Spain">
Here is a picture of me in Spain last summer!
<a>Go back to the top of the page.</a>
</body>
</html>- Asrc="images/spain.jpg"
18<!--Put the text in a paragraph tag-->
<!doctype>
<html>
<head>
<title>My trip to Spain</title>
</head>
<body>
<img src="images/spain.jpg" alt="A picture of me in Spain">
[blank_start]<p>[blank_end]Here is a picture of me in Spain last summer![blank_start]</p>[blank_end]
<a>Go back to the top of the page.</a>
</body>
</html>- A<p>
- B</p>
19<!--Set the anchor tag so that it points to the top of the page. (Hint: you'll need the href attribute.)-->
<!doctype>
<html>
<head>
<title>My trip to Spain</title>
</head>
<body>
<img src="images/spain.jpg" alt="A picture of me in Spain">
<p>Here is a picture of me in Spain last summer!</p>
<a [blank_start]href="#top"[blank_end]>Go back to the top of the page.</a>
</body>
</html>- Ahref="#top"
20<!--Add an unordered list element between the <body> tags.-->
<!doctype html>
<html>
<head>
<title>List Example</title>
</head>
<body>
[blank_start]<ul> </ul>[blank_end]
</body>
</html>- A<ul> </ul>
21<!--Add the three list item tags to the unordered list: Gold, Brown, Yellow.-->
<!doctype html>
<html>
<head>
<title>List Example</title>
</head>
<body>
<ul>
[blank_start]<li>Gold</li>[blank_end]
[blank_start]<li>Brown</li>[blank_end]
[blank_start]<li>Yellow</li>[blank_end]
</ul>
</body>
</html>- A<li>Gold</li>
- B<li>Brown</li>
- C<li>Yellow</li>
22<!--Add a class called "main-pg" to the paragraph element.-->
<!doctype html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
</head>
<body>
<p [blank_start]class="main-pg"[blank_end]>My amazing website</p>
</body>
</html>- Aclass="main-pg"
23/*In the CSS file, create a rule for the .main-pg class. You don't need to write any style instructions yet.*/
[blank_start].main-pg { }[blank_end]- A.main-pg { }
24/*Give the paragraph a border that is 4px wide, solid and red.*/
.main-pg {
[blank_start]border: solid red 4px[blank_end]
}- Aborder: solid red 4px
25Margin and padding are used to increase and decrease the amount of space around an element.
- ATrue
- BFalse
26If you forget to enclose your CSS styles in curly braces { }, the browser will:
- AFail to apply the styles to your web page.
- BAdd the curly braces for you.
- CGive you an error message.
27/*Given this CSS rule, what will the browser do? */
p {
color: blue;
}- AIt will make the font color of only the first paragraph tag blue.
- BIt will make the font color of only the last paragraph tag blue.
- CIt will make the font color of every paragraph tag on the page blue.
28If you have a <p> element with a class called “left-column”, which of the following selectors would you use to style it in the CSS?
- A.left-column
- B#left-column
- Cleft-column
29Which of the following is an example of a CSS property?
- Aborder-radius
- Balt
- Cheader
30<!--Add a class called "social-links" to each anchor tag.-->
<!doctype html>
<html>
<head>
<title>List Example</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a href="#" [blank_start]class="social-links"[blank_end]>Follow me on Twitter!</a>
<a href="#" [blank_start]class="social-links"[blank_end]>Send me an Email!</a>
</body>
</html>- Aclass="social-links"
- Bclass="social-links"
31/*In the CSS file, create a rule for the .social-links class. You don't need to write any style instructions yet.*/
[blank_start].social-links { }[blank_end]- A.social-links { }
32/*In the CSS file, use the class to give both <a> tags 15px of padding and 10px of margin.*/
.social-links {
[blank_start]padding: 15px;[blank_end]
[blank_start]margin: 10px;[blank_end]
}- Apadding: 15px;
- Bmargin: 10px;
33<!--Set up your HTML document with the <!doctype> and <html> tags.-->
[blank_start]<!doctype html>[blank_end]
[blank_start]<html>[blank_end]
[blank_start]</html>[blank_end]- A<!doctype html>
- B<html>
- C</html>
34<!--Now add the two tags that should always be nested within the <html></html> element.-->
<!doctype html>
<html>
[blank_start]<head></head>[blank_end]
[blank_start]<body></body>[blank_end]
</html>- A<head></head>
- B<body></body>
35<!--Between the <head> and </head> tags, give your web page a <title> "Orange".-->
<!doctype html>
<html>
<head>[blank_start]<title>Orange</title>[blank_end]</head>
<body></body>
</html>- A<title>Orange</title>
36<!--Add an href attribute to the anchor tag, and point it to another webpage called "menu.html".-->
<!doctype html>
<html>
<head>
<title>Al's Restaurant</title>
</head>
<body>
<ul class="nav">
<li><a href="#">Home</a></li>
<li><a href="food-gallery.html">Food Gallery</a></li>
<li><a [blank_start]href="menu.html"[blank_end]>Menu</a></li>
</ul>
</body>
</html>- Ahref="menu.html"
37<!--Put a set of anchor tags around "Menu" in the last list item.-->
!doctype html>
<html>
<head>
<title>Al's Restaurant</title>
</head>
<body>
<ul class="nav">
<li><a href="#">Home</a></li>
<li><a href="food-gallery.html">Food Gallery</a></li>
<li>[blank_start]<a>[blank_end]Menu[blank_start]</a>[blank_end]</li>
</ul>
</body>
</html>- A<a>
- B</a>
38A website is basically a collection of web pages linked together through a central page.
- ATrue
- BFalse
39The tags you need to set up a basic web page from scratch are:
- A<!doctype html>, <html>, <head>, <body>
- B<h1>, <h2>, <nav>
- C<header>, <main>, <footer>
40<a [blank_start]href[blank_end]=”new-page.html”>This is a link to my new web page. </a>
- Ahref
41What is a text editor?
- AA line of code that is crucial for the proper setup of an HTML document.
- BA CSS property that changes the text in an HTML document.
- CSoftware for web developers that make coding easier by color-coding code and automatically closing tags.
42You have a stylesheet called styles.css in a folder called css. What file path would you put in the href?
- A<link rel=”stylesheet” href=”styles.css">
- B<link rel=”stylesheet” href=”home/css/styles.css">
- C<link rel=”stylesheet” href=”css/styles.css">
43HTTP stands for HyperText [blank_start]Transfer[blank_end] [blank_start]Protocol[blank_end].
- ATransfer
- BProtocol
44HTTP messaging typically follows a two-stage cycle: a request that is followed by which of the following?
- Aa header
- Ba device
- Ca response
- Da client
45Which of the following is NOT part of the header section of an HTTP request?
- AHost: teamtreehouse.com
- BGET /profile HTTP/1.1
- CContent-Type: text/html
- DUser-Agent: telnet
46The response/status code of the sample HTTP response below is [blank_start]304[blank_end].
HTTP/1.1 304 Not Modified
Server: nginx/1.9.4
Date: Thu, 17 Mar 2016 23:25:42 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 12150- A304
47Fill in the missing symbols of the query string in the request line of the following HTTP request:
GET /books[blank_start]?[blank_end]type[blank_start]=[blank_end]kindle[blank_start]&[blank_end]sort=popular HTTP/1.1
Host: amazon.com
Accept-Language: en-US- A?
- B=
- C&
48In the HTTP request below, provide the missing value.
POST /register HTTP/1.1
Host: example.com
Accept-Language: en-US
Connection: keep-alive
Content-Length: [blank_start]30[blank_end]
name=Sara&email=sara@tmail.com- A30
49Which of the following is a URL?
- Ahttps://teamtreehouse.com/library
- B/library
50Fill in the blank with the attribute necessary for a browser to render a clickable link that will trigger an HTTP GET request when clicked.
<a [blank_start]href[blank_end]="/home">Home</a>- Ahref
51Which statement most accurately describes how data is sent with an HTTP POST request?
- AData is included in the request body or payload, after a blank line that follows the headers.
- BData is sent in the header section in name/value pairs.
- CData is appended to the request line's URI as a query string.
52Which answer accurately depicts the request URI upon submitting the form below if "Treehouse" is entered for the company, and "HTTP" is entered for the protocol?
<form method="get" action="/learn">
<input type="text" name="company">
<input type="text" name="protocol">
<button type="submit">Go</button>
</form>- A/company=Treehouse&protocol=HTTP
- B/learn
- C/learn?company=Treehouse&protocol=HTTP
- D/learn?Treehouse=company&HTTP=protocol
53Which attribute is used in an HTML form tag to trigger a POST request upon submission?
- Ahref
- Bmethod
- Caction
- Dclass
54What instructs the browser the version of HTML you're using?
- AThe <title> element
- BThe doctype declaration
- CThe <head> element
- DThe <html> element
55Which of the following describes the global structure of a web page?
- A<html>
<body>
<head>
<title>…</title>
</head>
</body>
</html> - B<html>
<head>
<title>…</title>
</head>
<body>…</body>
</html> - C<html>
<title>…</title>
<body>
<head>…</head>
</body>
</html>
- A<html>
56A _____ provides meaning to text in a document, using instructions that describe how text should be structured and formatted.
- Amarkup language
- Bweb page
- Cbrowser
- Dcascading style sheet
57What element provides general information about the document, like the title and links to style sheets?
- A<head>
- B<body>
- C<!DOCTYPE html>
58HTML provides the _____ layer of a web page.
- Apresentation
- Binteractivity
- Ccontent
- Dperformance
59Where do you include the content you want to display in the browser?
- AThe <!DOCTYPE html> declaration
- BThe <body> element
- CThe <head> element
60<!--Set the main headline to a heading level 1 element. Then, place the line of text below the main headline inside opening and closing paragraph tags.-->
<!DOCTYPE html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
<title>Headings and Paragraphs</title>
</head>
<body>
[blank_start]<h1>[blank_end]This is the Main Headline![blank_start]</h1>[blank_end]
[blank_start]<p>[blank_end]Oat cake chocolate bar jelly. Tootsie roll cheesecake sweet gummies candy cookie pudding cotton candy carrot cake. Soufflé caramels brownie oat cake cheesecake.[blank_start]</p>[blank_end]
Level 2 Heading
Ice cream candy canes muffin icing pudding muffin jelly topping carrot cake. I love gingerbread dessert jujubes bonbon cupcake tootsie roll I love. Oat cake topping caramels I love cupcake oat cake chocolate topping donut.
Level 3 Heading
Cotton candy topping halvah sugar plum gummies soufflé. Ice cream danish donut sugar plum. Macaroon carrot cake gummies. Caramels oat cake chocolate cake.
</body>
</html>- A<h1>
- B</h1>
- C<p>
- D</p>
61<!--Next, set the subheading to a heading level 2 element and the line of text below it to a paragraph element.-->
<!DOCTYPE html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
<title>Headings and Paragraphs</title>
</head>
<body>
<h1>This is the Main Headline!</h1>
<p>Oat cake chocolate bar jelly. Tootsie roll cheesecake sweet gummies candy cookie pudding cotton candy carrot cake. Soufflé caramels brownie oat cake cheesecake.</p>
[blank_start]<h2>[blank_end]Level 2 Heading[blank_start]</h2>[blank_end]
[blank_start]<p>[blank_end]Ice cream candy canes muffin icing pudding muffin jelly topping carrot cake. I love gingerbread dessert jujubes bonbon cupcake tootsie roll I love. Oat cake topping caramels I love cupcake oat cake chocolate topping donut.[blank_start]</p>[blank_end]
Level 3 Heading
Cotton candy topping halvah sugar plum gummies soufflé. Ice cream danish donut sugar plum. Macaroon carrot cake gummies. Caramels oat cake chocolate cake.
</body>
</html>- A<h2>
- B</h2>
- C<p>
- D</p>
62<!--Finally, set the third heading to a heading level 3 element and the text below it to a paragraph.-->
<!DOCTYPE html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
<title>Headings and Paragraphs</title>
</head>
<body>
<h1>This is the Main Headline!</h1>
<p>Oat cake chocolate bar jelly. Tootsie roll cheesecake sweet gummies candy cookie pudding cotton candy carrot cake. Soufflé caramels brownie oat cake cheesecake.</p>
<h2>Level 2 Heading</h2>
<p>Ice cream candy canes muffin icing pudding muffin jelly topping carrot cake. I love gingerbread dessert jujubes bonbon cupcake tootsie roll I love. Oat cake topping caramels I love cupcake oat cake chocolate topping donut.</p>
[blank_start]<h3>[blank_end]Level 3 Heading[blank_start]</h3>[blank_end]
[blank_start]<p>[blank_end]Cotton candy topping halvah sugar plum gummies soufflé. Ice cream danish donut sugar plum. Macaroon carrot cake gummies. Caramels oat cake chocolate cake.[blank_start]</p>[blank_end]
</body>
</html>
Answers- A<h3>
- B</h3>
- C<p>
- D</p>
63<!--Convert the text inside the <body> tags into an unordered list.-->
<!DOCTYPE html>
<html>
<head>
<title>Lists and Links</title>
</head>
<body>
[blank_start]<ul>[blank_end]
[blank_start]<li>[blank_end]Cakes[blank_start]</li>[blank_end]
[blank_start]<li>[blank_end]Pies[blank_start]</li>[blank_end]
[blank_start]<li>[blank_end]Candy[blank_start]</li>[blank_end]
</ul>
</body>
</html>- A<ul>
- B</li>
- C<li>
- D</li>
- E<li>
- F</li>
- G<li>
64<!--Make the text inside each list item a link. The first item should link to cakes.html, the second to pies.html and the third to candy.html.-->
<!DOCTYPE html>
<html>
<head>
<title>Lists and Links</title>
</head>
<body>
<ul>
<li>[blank_start]<a href="cakes.html">[blank_end]Cakes[blank_start]</a>[blank_end]</li>
<li>[blank_start]<a href="pies.html">[blank_end]Pies[blank_start]</a>[blank_end]</li>
<li>[blank_start]<a href="candy.html">[blank_end]Candy[blank_start]</a>[blank_end]</li>
</ul>
</body>
</html>- A<a href="cakes.html">
- B</a>
- C<a href="pies.html">
- D</a>
- E<a href="candy.html">
- F</a>
65<!--Place the ul, h1 and p elements at the top of the page inside an element that represents a group of introductory content.-->
<!DOCTYPE html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
<title>My Portfolio</title>
</head>
<body>
[blank_start]<header>[blank_end]
<ul>
<li><a href="#">About</a></li>
<li><a href="#">Work</a></li>
<li><a href="#">Contact</a></li>
</ul>
<h1>My Web Design & Development Portfolio!</h1>
<p>A site featuring my latest work.</p>
[blank_start]</header>[blank_end]
<h2>Welcome</h2>
<p>Fusce semper id ipsum sed scelerisque. Etiam nec elementum massa. Pellentesque tristique ex ac ipsum hendrerit, eget feugiat ante faucibus.</p>
<ul>
<li><a href="#">Recent project #1</a></li>
<li><a href="#">Recent project #2</a></li>
<li><a href="#">Recent project #3</a></li>
</ul>
<p>© 2017 My Portfolio</p>
<p>Follow me on <a href="#">Twitter</a>, <a href="#">Instagram</a> and <a href="#">Dribbble</a></p>
</body>
</html>- A<header>
- B</header>
66<!--Next, place the paragraphs at the bottom of the page inside an element that typically contains information about the site, copyright data or related links.-->
<!DOCTYPE html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
<title>My Portfolio</title>
</head>
<body>
<header>
<ul>
<li><a href="#">About</a></li>
<li><a href="#">Work</a></li>
<li><a href="#">Contact</a></li>
</ul>
<h1>My Web Design & Development Portfolio!</h1>
<p>A site featuring my latest work.</p>
</header>
<h2>Welcome</h2>
<p>Fusce semper id ipsum sed scelerisque. Etiam nec elementum massa. Pellentesque tristique ex ac ipsum hendrerit, eget feugiat ante faucibus.</p>
<ul>
<li><a href="#">Recent project #1</a></li>
<li><a href="#">Recent project #2</a></li>
<li><a href="#">Recent project #3</a></li>
</ul>
[blank_start]<footer>[blank_end]
<p>© 2017 My Portfolio</p>
<p>Follow me on <a href="#">Twitter</a>, <a href="#">Instagram</a> and <a href="#">Dribbble</a></p>
[blank_start]</footer>[blank_end]
</body>
</html>- A<footer>
- B</footer>
67<!--Place the content between the header and footer (h2, p and ul) inside an element that represents standalone sections of content.-->
<!DOCTYPE html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
<title>My Portfolio</title>
</head>
<body>
<header>
<ul>
<li><a href="#">About</a></li>
<li><a href="#">Work</a></li>
<li><a href="#">Contact</a></li>
</ul>
<h1>My Web Design & Development Portfolio!</h1>
<p>A site featuring my latest work.</p>
</header>
[blank_start]<section>[blank_end]
<h2>Welcome</h2>
<p>Fusce semper id ipsum sed scelerisque. Etiam nec elementum massa. Pellentesque tristique ex ac ipsum hendrerit, eget feugiat ante faucibus.</p>
<ul>
<li><a href="#">Recent project #1</a></li>
<li><a href="#">Recent project #2</a></li>
<li><a href="#">Recent project #3</a></li>
</ul>
[blank_start]</section>[blank_end]
<footer>
<p>© 2017 My Portfolio</p>
<p>Follow me on <a href="#">Twitter</a>, <a href="#">Instagram</a> and <a href="#">Dribbble</a></p>
</footer>
</body>
</html>- A<section>
- B</section>
68<!--Finally, place the top <ul> inside an element that represents a major section of navigation.-->
<!DOCTYPE html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
<title>My Portfolio</title>
</head>
<body>
<header>
[blank_start]<nav>[blank_end]
<ul>
<li><a href="#">About</a></li>
<li><a href="#">Work</a></li>
<li><a href="#">Contact</a></li>
</ul>
[blank_start]</nav>[blank_end]
<h1>My Web Design & Development Portfolio!</h1>
<p>A site featuring my latest work.</p>
</header>
<section>
<h2>Welcome</h2>
<p>Fusce semper id ipsum sed scelerisque. Etiam nec elementum massa. Pellentesque tristique ex ac ipsum hendrerit, eget feugiat ante faucibus.</p>
<ul>
<li><a href="#">Recent project #1</a></li>
<li><a href="#">Recent project #2</a></li>
<li><a href="#">Recent project #3</a></li>
</ul>
</section>
<footer>
<p>© 2017 My Portfolio</p>
<p>Follow me on <a href="#">Twitter</a>, <a href="#">Instagram</a> and <a href="#">Dribbble</a></p>
</footer>
</body>
</html>- A<nav>
- B</nav>
69<!--Group each set of h3 and p elements using an element that describes self-contained pieces of content.-->
<!DOCTYPE html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
<title>My Blog</title>
</head>
<body>
<header>
<h1>My Web Design & Development Blog!</h1>
<nav>
<ul>
<li><a href="#">About</a></li>
<li><a href="#">Articles</a></li>
<li><a href="#">Recent Work</a></li>
</ul>
</nav>
</header>
<h2>The Main Articles</h2>
[blank_start]<article>[blank_end]
<h3>My Favorite HTML Courses</h3>
<p>Fusce semper id ipsum sed scelerisque. Etiam nec elementum massa. Pellentesque tristique ex ac ipsum hendrerit, eget <a href="#">feugiat ante faucibus</a>.</p>
[blank_start]</article>[blank_end]
[blank_start]<article>[blank_end]
<h3>10 Handy CSS Features</h3>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et <a href="#">ultrices posuere</a>.</p>
[blank_start]</article>[blank_end]
<h3>Follow Me on Social Media:</h3>
<ul>
<li><a href="#">Twitter</a></li>
<li><a href="#">Facebook</a></li>
<li><a href="#">LinkedIn</a></li>
</ul>
<footer>
<p>© 2017 My Blog</p>
</footer>
</body>
</html>- A<article>
- B</article>
- C<article>
- D</article>
70<!--Next, place the "social media" heading and list of links inside an element that represents a section of content that's indirectly related to the main content of the page.-->
<!DOCTYPE html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
<title>My Blog</title>
</head>
<body>
<header>
<h1>My Web Design & Development Blog!</h1>
<nav>
<ul>
<li><a href="#">About</a></li>
<li><a href="#">Articles</a></li>
<li><a href="#">Recent Work</a></li>
</ul>
</nav>
</header>
<h2>The Main Articles</h2>
<article>
<h3>My Favorite HTML Courses</h3>
<p>Fusce semper id ipsum sed scelerisque. Etiam nec elementum massa. Pellentesque tristique ex ac ipsum hendrerit, eget <a href="#">feugiat ante faucibus</a>.</p>
</article>
<article>
<h3>10 Handy CSS Features</h3>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et <a href="#">ultrices posuere</a>.</p>
</article>
[blank_start]<aside>[blank_end]
<h3>Follow Me on Social Media:</h3>
<ul>
<li><a href="#">Twitter</a></li>
<li><a href="#">Facebook</a></li>
<li><a href="#">LinkedIn</a></li>
</ul>
[blank_start]</aside>[blank_end]
<footer>
<p>© 2017 My Blog</p>
</footer>
</body>
</html>- A<aside>
- B</aside>
71<!--Finally, place the h2 and articles inside an element that represents the main content of the <body> of the page.-->
<!DOCTYPE html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
<title>My Blog</title>
</head>
<body>
<header>
<h1>My Web Design & Development Blog!</h1>
<nav>
<ul>
<li><a href="#">About</a></li>
<li><a href="#">Articles</a></li>
<li><a href="#">Recent Work</a></li>
</ul>
</nav>
</header>
[blank_start]<main>[blank_end]
<h2>The Main Articles</h2>
<article>
<h3>My Favorite HTML Courses</h3>
<p>Fusce semper id ipsum sed scelerisque. Etiam nec elementum massa. Pellentesque tristique ex ac ipsum hendrerit, eget <a href="#">feugiat ante faucibus</a>.</p>
</article>
<article>
<h3>10 Handy CSS Features</h3>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et <a href="#">ultrices posuere</a>.</p>
</article>
[blank_start]</main>[blank_end]
<aside>
<h3>Follow Me on Social Media:</h3>
<ul>
<li><a href="#">Twitter</a></li>
<li><a href="#">Facebook</a></li>
<li><a href="#">LinkedIn</a></li>
</ul>
</aside>
<footer>
<p>© 2017 My Blog</p>
</footer>
</body>
</html>- A<main>
- B</main>
72The [blank_start]aside[blank_end] element contains content that's indirectly related to the main content of the page.
- Aaside
73Which element should be used only when no other semantic element (like <article> or <aside>) is appropriate?
- A<section>
- B<dl>
- C<div>
- D<main>
74Which element describes a self-contained piece of content, like a blog entry?
- A<aside>
- B<main>
- C<article>
- D<div>
75The first element inside a <section> should be:
- Aa link back to the top of the page
- Ba heading (<h1>-<h6>) that indicates what the section is about
- Can image related to the topic
- Da list describing what the section is about
76Introductory content like the site logo, navigation and main heading should be placed inside which element?
- A<head>
- B<aside>
- C<header>
- D<main>
77The content of a _____ element should be unique to the document; therefore, you should use it only once per page.
- A<nav>
- B<footer>
- C<div>
- D<main>
78Markup that describes the meaning of content rather than define its presentation is:
- Astructured
- Blogical
- Csemantic
79<!--Inside the <body>, display the image moon.jpg located inside a folder named img.-->
<!DOCTYPE html>
<html>
<head>
<title>The Moon</title>
</head>
<body>
[blank_start]<img src="img/moon.jpg">[blank_end]
</body>
</html>- A<img src="img/moon.jpg">
80<!--Next, provide the browser alternative text describing the image.-->
<!DOCTYPE html>
<html>
<head>
<title>The Moon</title>
</head>
<body>
<img src="img/moon.jpg" [blank_start]alt="moon"[blank_end]>
</body>
</html>- Aalt="moon"
81<!--Finally, add a caption that describes the image.-->
<!DOCTYPE html>
<html>
<head>
<title>The Moon</title>
</head>
<body>
[blank_start]<figure>[blank_end]
<img src="img/moon.jpg" alt="moon">
[blank_start]<figcaption>moon</figcaption>[blank_end]
[blank_start]</figure>[blank_end]
</body>
</html>- A<figure>
- B<figcaption>moon</figcaption>
- C</figure>
82<!--Add line breaks to the address in the second paragraph.-->
<!DOCTYPE html>
<html>
<head>
<title>HTML Text</title>
</head>
<body>
<p>Mike's favorite course is HTML Basics</p>
<p>
Mike T. Frog[blank_start]<br>[blank_end]
100 Lilypad Way[blank_start]<br>[blank_end]
Portland, OR 97227
</p>
</body>
</html>- A<br>
- B<br>
83<!--Give the text "Mike T. Frog" strong importance, using the element that displays text in bold.-->
<!DOCTYPE html>
<html>
<head>
<title>HTML Text</title>
</head>
<body>
<p>Mike's favorite course is HTML Basics</p>
<p>
[blank_start]<strong>[blank_end]Mike T. Frog[blank_start]</strong>[blank_end]<br>
100 Lilypad Way<br>
Portland, OR 97227
</p>
</body>
</html>- A<strong>
- B</strong>
84<!--Use the element that displays text in italic to add emphasis to the words "HTML Basics".-->
<!DOCTYPE html>
<html>
<head>
<title>HTML Text</title>
</head>
<body>
<p>Mike's favorite course is [blank_start]<em>[blank_end]HTML Basics[blank_start]</em>[blank_end]</p>
<p>
<strong>Mike T. Frog</strong><br>
100 Lilypad Way<br>
Portland, OR 97227
</p>
</body>
</html>- A<em>
- B</em>
85<!--Set the <img> element's src attribute to a path that goes one level out of the current folder and inside a folder named img.-->
<!DOCTYPE html>
<html>
<head>
<title>Portfolio Page</title>
</head>
<body>
<img src="[blank_start]../img/[blank_end]logo.png" alt="Site logo">
<ul>
<li><a href="">Home</a></li>
<li><a href="">Portfolio</a></li>
</ul>
<h1 id="portfolio">My Portfolio</h1>
</body>
</html>- A../img/
86<!--Set the "Home" link to a root-relative path that navigates to index.html.-->
<!DOCTYPE html>
<html>
<head>
<title>Portfolio Page</title>
</head>
<body>
<img src="../img/logo.png" alt="Site logo">
<ul>
<li><a href="[blank_start]/index.html[blank_end]">Home</a></li>
<li><a href="">Portfolio</a></li>
</ul>
<h1 id="portfolio">My Portfolio</h1>
</body>
</html>- A/index.html
87<!--Set the "Portfolio" link to navigate to the section of the page with the id portfolio.-->
<!DOCTYPE html>
<html>
<head>
<title>Portfolio Page</title>
</head>
<body>
<img src="../img/logo.png" alt="Site logo">
<ul>
<li><a href="/index.html">Home</a></li>
<li><a href="[blank_start]#portfolio[blank_end]">Portfolio</a></li>
</ul>
<h1 id="portfolio">My Portfolio</h1>
</body>
</html>- A#portfolio
88<!--Set the "contact" link to begin composing an email in the user's default email program when clicked. You may use any email address, as long as it's formatted correctly.-->
<!DOCTYPE html>
<html>
<head>
<title>My Page</title>
</head>
<body>
<h3>Design & Development</h3>
<p>Contact me at <a href="[blank_start]mailto:edioquino12@gmail.com?[blank_end][blank_start]Subject=Hi%20there"[blank_end]>this email</a>.</p>
<p>© 2017</p>
</body>
</html>- Amailto:edioquino12@gmail.com?
- BSubject=Hi%20there"
89<!--Replace the ampersand and copyright symbol with an HTML character entity.-->
<!DOCTYPE html>
<html>
<head>
<title>My Page</title>
</head>
<body>
<h3>Design & Development</h3>
<p>Contact me at <a href="mailto:edioquino12@gmail.com?Subject=Hi%20there">this email</a>.</p>
<p>[blank_start]&©[blank_end] 2017</p>
</body>
</html>- A&©
90Which of the following is an example of an HTML comment?
- A<!-- start of main content -->
- B<!-- start of main content --!>
- C<-- start of main content -->
91Which characters are reserved for use in HTML code only?
- A&, <, >
- B=, +, −
- C{, }, $
92Which paths work only when a website is uploaded to a web server or when you have a local web server running on your computer?
- ARoot-relative
- BRelative
- CAbsolute
93You can target any HTML element and change its appearance (like size, color and position) with:
- AHTML entities
- BHTML comments
- CRoot-relative paths
- DCSS (Cascading Style Sheets)
94The ___ attribute gives an element a unique identifier that can be used to navigate to a specific section of a page.
- Ahref
- Bcite
- Cid
95What type of file path is the following link using?
<a href="../pets/doggos.html">- ARoot-relative
- BRelative
- CAbsolute
Information
- Description
- Computer Studies Quiz on DaddyFrost's HTML Basics Reviewer, created by Edoard Dioquino on 11/02/2019.
- Author
- Edoard Dioquino
- Language
- English
- Views
- 2
- Tags
- Rating
- No ratings yet Rate this quiz