Quiz
Quizz 4 46-60
This quiz has a time limit, so it opens in the usual player.
Questions in this quiz (15)
1Which form is coded correctly?
- A<form>
<legend>Title</legend>
<fieldset>
<label for="name">Your name:</label>
<input type="text" name="name" id="name" />
<button type="submit">Submit</button>
</fieldset>
</form> - B<form>
<fieldset>
<legend>Title</legend>
<p>Your name:</p>
<input type="text" name="name" id="name" />
<input type="submit" value="Submit" />
</fieldset>
</form> - C<form>
<fieldset>
<legend>Title</legend>
<label for="name">Your name:</label>
<input type="text" name="name" id="name" />
<button type="submit">Submit</button>
</fieldset>
</form> - D<form>
<legend>Title</legend>
<label for="name">Your name:</label>
<input type="text" name="name" id="name" />
<input type="submit" value="Submit" />
</form>
- A<form>
2What does the poster attribute do in the <video> tag?
- AIt specifies an image that should display while the video downloads and until the video is played.
- BIt specifies an image that only displays if there is a problem with the video.
- CIt specifies an image that should display until the video is played.
- DIt specifies an image that should display while the video downloads.
3What does this code do?
<audio controls src="sound.mp3" type="audio/mpeg">When does this text display?</audio>- AThe text displays over the audio controls, unless CSS is used to position it elsewhere.
- BThe text displays under the audio controls.
- CThe text displays when the browser cannot play the sound.
- DThe text never displays.
4What is the primary purpose of the <canvas> tag?
- AIt allows raster images to be rendered on the webpage.
- BIt displays annotated images.
- CIt allows drawing on a bitmap via JavaScript.
- DIt allows vector images to be rendered on the webpage.
5Which choice contains three valid block-level elements?
- A<details> <abbr> <figcaption>
- B<canvas> <select> <noscript>
- C<dt> <table> <pre>
- D<kbd> <p> <main>
6In the code below, what is the purpose of the lang attribute?
<p lang="en-GB">Welcome to our wonderful website.</p>- AIt establishes the language for the website—in this case, English.
- BIt establishes the language and dialect for the website—in this case, British English.
- CIt establishes the language and dialect for the paragraph—in this case, British English.
- DIt establishes the language for the paragraph—in this case, English.
7Which image formats can be displayed by all web browsers?
- AJPG, GIF, TIF
- BJPG, TIF, BMP
- CTIF, BMP, GIF
- DPNG, GIF, JPG
8Review the code below. What is the absolute URL for a page called page.html?
<base href="http://www.linkedin.com/dir/" />- Ahttp://www.linkedin.com/dir/page.html
- Bpage.html
- Chttp://www.linkedin.com/page.html
- Ddir/page.html
9What is the correct way to include a stylesheet named style.css in the <head> of your document?
- A<style link="style.css">
- B<link rel="stylesheet" href="style.css">
- C<style src="style.css"></style>
- D<link style="style.css">
10You want to have single spacing in between some lines, like in a poem or an address. Which approach should you use?
- AWrap the text in a box that is the right width so everything wraps correctly. Set the box width with CSS.
- BSeparate lines with a <p>, then use CSS to make single spacing.
- CUse the <pre> tag to make the line spacing look exactly like you want.
- DSeparate the lines with the <br> tag.
11What does the <wbr> tag do?
- AIt requires the browser to wrap the current line at that point.
- BIt breaks a word into two pieces, using a hyphen to connect the words.
- CIt formats a sentence to be easily breakable.
- DIt presents an opportunity for a break in a very long word, if needed for proper page display.
12Review the code below. How do you include subnavigation for Link 2 that includes a link?
<nav>
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
</ul>
</nav>- A<nav>
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<ul>
<li><a href="#">Link 2a</a></li>
</ul>
<li><a href="#">Link 3</a></li>
</ul>
</nav> - B<nav>
<ul>
<li><a href="#">Link 1</a></li>
<li>
<a href="#">Link 2</a>
<ul>
<li><a href="#">Link 2a</a></li>
</ul>
</li>
<li><a href="#">Link 3</a></li>
</ul>
</nav> - C<ul>
<nav>
<li><a href="#">Link 1</a></li>
<li>
<a href="#">Link 2</a>
<ul>
<nav>
<li><a href="#">Link 2a</a></li>
</nav>
</ul>
</li>
<li><a href="#">Link 3</a></li>
</nav>
</ul> - D<nav>
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<nav>
<ul>
<li><a href="#">Link 2a</a></li>
</ul>
</nav>
<li><a href="#">Link 3</a></li>
</ul>
</nav>
- A<nav>
13What is the correct way to code a comment in HTML?
- A//this is a comment
- B/* this is a comment */
- C<! this is a comment ->
- D<!-- this is a comment -->
14Which statement is false?
- AInline elements can be nested inside inline elements.
- BBlock elements can be nested inside block elements.
- CInline elements can be nested inside block elements.
- DBlock elements can be nested inside inline elements.
15What is the best semantic to use Quotes in HTML?
Steve Kruz Said: "He will Win"- A<q>
- B<quote>
- C<blockquote>
- D<notation>
Information
- Description
- Linkedin Html skill assessments quizzes Quiz on Quizz 4 46-60, created by Nouri Atef on 20/06/2022.
- Author
- Nouri Atef
- Language
- English
- Views
- 0
- Tags
- Rating
- No ratings yet Rate this quiz