Font size
WorksheetsGraySchools HTML Quiz
Total questions: 69
Worksheet time: 43mins
Which is the correct syntax for a link?
<a href="url">link text</a>
<a href="url" link text>
<a href=url>link text</a>
<a href="url" link text</a>
By default, the linked page will be displayed in ______________ browser window.
In other words, where will the following link open:
<a href="https://www.w3schools.com/">Visit W3Schools!</a>
the current
a new
the target
a blank
Which attribute contains the URL to a linked web page?
href
type
src
name
Which of the following is included in the image tag code?
src
h1
<p>
scr
Which is an example of a complete image tag?
<img "dog.jpg">
<img src="dog.jpg" alt="my dog"/>
img=dog.jpg
<src="dog.jpg" alt="my dog">
Which tag should be used to include the following image: cat.jpeg?
<img src="cats.jpg" alt="cat"/>
<img src="cat.JPG" alt="cat"/>
<img src="cat.jpeg" alt="cat"/>
<img src="dog.jpeg" alt="cat"/>
What is missing from this image tag?
<img="cat.jpeg" alt="cat"/>
h1
h6
.jpeg
src=
Can I use an image without giving credit to the website and owner of the photo?
yes
no
What is the correct HTML for adding a background color?
<body style="background-color:yellow;">
<background>yellow</background>
<body bg="yellow">
HTML Links are created with the ________ tag.
<a href="location"></a>
<link rel="stylesheet" href="location">
<redirect to page="location">
What does HTML stand for?
Hyper Tremendous Movie Lines
Hyper Text Markup Language
Hey Thanks for Making me Late
<h1> is an example of a _______.
Headline Tag
Paragraph Tag
filename
<p> is a _______ tag.
image
paragraph
filename
Web pages starts with which of the following tag?
<form>
<HTML>
<body>
<Title>
Choose the correct HTML element for the largest heading:
<head>
<h1>
<heading>
<h6>
HTML controls the _________ of a webpage.
feel
precision
structure
style
<p> is the opening tag for a _____________
page
paragraph
preorder
period
What defines the beginning and ending of the visible part of a webpage?
<head> main part of the document </body>
<body> main part of the document </html>
d) </body> main part of the document <html>
<body> main part of the document </body>
Which character is used to indicate an end tag?
!
#
/
\
Which of the following is the proper format for an HTML tag?
>h1<Content Affected by Tag >/h1<
<h1>Content Affected by Tag<h1>
<h1 Content Affected by Tag />
<h1>Content Affected by Tag</h1>
What is the correct HTML element for inserting a line break?
<lb>
<BREAK>
<br>
<break>
baldwithbeard.com
w3schools.com
</header> is
If you have more than a couple of large images on a web page, you can make your web page more usable and faster to download by creating what?
Charset
Thumbnails
Standard
Compatible
What is the attribute for how you specify the location of the image file.
Alt
JPEG
W3C
src
What attribute of an <img> element is a meaningful description of the image.
Alt
src
JPEG
GIF
These are the three formats for images that are widely supported by web browsers.
JPEG
PNG
GIF
BMP
This format is best for photographs and other complex images.
BMP
PNG
GIF
JPEG
The format is best for logos and other simple graphics with solid colors, lines, or text.
GIF
PNG
Transparent
HTML5
JPEG images can be at a ___________ variety of different qualities, so you can choose the best balance of quality and file size for your needs.
Compressed
Transparent
Larger
Matte Color
The GIF and PNG image formats allow you to make an image with a ___________ background.
Compatible
Larger
Compressed
Transparent
GIF and PNG are lossless formats, which means the file sizes are likely to be what compared to a JPEG.
Same
Larger
Smaller
In Photoshop, use what menu in the "Save for Web" dialog to choose the right color for softening the edges of your transparent PNG or GIF image.
doctype
Matte color
HTML5
Thumbnails
What is the current HTML standard.
HTML2
HTML3
HTML4
HTML5
The standards organization that defines what standard HTML is.
HTML
CCS
World Wide Web Consortium (W3C)
HTTP
HTML is backwards _________ keep adding new stuff to HTML, and the browsers will support this new stuff, but they'll also keep supporting the old stuff
Compatible
Compressed
Transparent
Standard
The document type definition used to tell the browser the version of HTML you're using.
Alt
Charset
doctype
Meta
What tag in the <head> element tells the browser additional information about a web page, such as the content type and character encoding.
doctype
Alt
Charset
Meta
What attribute of the <meta> tag tells the browser the character encoding that is used for the web page.
Alt
Doctype
Charset
Meta
The alt attribute is required for the <img> element.
Meta
doctype
Charset
Alt
What validator is a free online service that checks pages for compliance with HTML standards.
W3C
HTML
Meta
doctype
Use the what to ensure that your HTML is well formed and that your elements and attributes meet the standard.
Standard
Validator
doctype
transparent
By adhering to the ___________, your pages will display more quickly and with fewer display differences between browsers, and your CSS will work better.
W3C
Validator
Standard
Doctype
Open all your html files with this line of code
meta charset="utf-8"
html lang="en"
!doctype html
Be sure to define your code language in your opening HTML tag.
!doctype html
html lang="en"
meta charset="utf-8"
Define your character set in the Meta tag in the HEAD tags.
!doctype html
html lang="en"
meta charset="utf-8"
