0% found this document useful (0 votes)
15 views

HTML Quiz

The document contains 40 multiple choice questions about HTML elements, tags, and attributes. It tests knowledge on topics like common tags (<p>, <div>, <header>), structural elements (<table>, <ul>, <ol>), embedding objects (<img>, <video>, <audio>), form controls (<input>, <select>, <textarea>), and global attributes (required, alt). The respondent answered all questions correctly, demonstrating proficiency in core HTML syntax and semantics.

Uploaded by

Maryam Mousa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

HTML Quiz

The document contains 40 multiple choice questions about HTML elements, tags, and attributes. It tests knowledge on topics like common tags (<p>, <div>, <header>), structural elements (<table>, <ul>, <ol>), embedding objects (<img>, <video>, <audio>), form controls (<input>, <select>, <textarea>), and global attributes (required, alt). The respondent answered all questions correctly, demonstrating proficiency in core HTML syntax and semantics.

Uploaded by

Maryam Mousa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Question 1:

What does HTML stand for?

Hyper Text Markup Language Your answer


Home Tool Markup Language
Hyperlinks and Text Markup Language

Question 2:
Who is making the Web standards?

The World Wide Web Consortium Your answer


Google
Microsoft
Mozilla

Question 3:
Choose the correct HTML element for the largest heading:

<h1> Your answer


<h6>
<head>
<heading>

Question 4:
What is the correct HTML element for inserting a line break?

<br> Your answer


<break>
<lb>

Question 5:
What is the correct HTML for adding a background color?

<body style="background-color:yellow;"> Your answer


<body bg="yellow">
<background>yellow</background>
Question 6:
Choose the correct HTML element to define important text

<strong> Your answer


<important>
<b>
<i>

Question 7:
Choose the correct HTML element to define emphasized text

<em> Your answer


<italic>
<i>

Question 8:
What is the correct HTML for creating a hyperlink?

<a href="http://www.w3schools.com">W3Schools</a> Your answer


<a>http://www.w3schools.com</a>
<a name="http://www.w3schools.com">W3Schools.com</a>
<a url="http://www.w3schools.com">W3Schools.com</a>

Question 9:
Which character is used to indicate an end tag?

/ Your answer
*
^
<

Question 10:
How can you open a link in a new tab/browser window?

<a href="url" target="_blank"> Your answer


<a href="url" target="new">
<a href="url" new>
Question 11:
Which of these elements are all <table> elements?

<table><tr><td> Your answer


<table><head><tfoot>
<table><tr><tt>
<thead><body><tr>

Question 12:
Inline elements are normally displayed without starting a new line.

True Your answer


False

Question 13:
How can you make a numbered list?

<ol> Your answer


<list>
<ul>
<dl>

Question 14:
How can you make a bulleted list?

<ul> Your answer


<dl>
<ol>
<list>

Question 15:
What is the correct HTML for making a checkbox?

<input type="checkbox"> Your answer


<input type="check">
<check>
<checkbox>
Question 16:
What is the correct HTML for making a text input field?

<input type="text"> Your answer


<textfield>
<textinput type="text">
<input type="textfield">

Question 17:
What is the correct HTML for making a drop-down list?

<select> Your answer


<list>
<input type="list">
<input type="dropdown">

Question 18:
What is the correct HTML for making a text area?

<textarea> Your answer


<input type="textarea">
<input type="textbox">

Question 19:
What is the correct HTML for inserting an image?

<img src="image.gif" alt="MyImage"> Your answer


<img href="image.gif" alt="MyImage">
<img alt="MyImage">image.gif</img>
<image src="image.gif" alt="MyImage">

Question 20:
What is the correct HTML for inserting a background image?

<body style="background-image:url(background.gif)"> Your answer


<body bg="background.gif">
<background img="background.gif">
Question 21:
An <iframe> is used to display a web page within a web page.

True Your answer


There is no such thing as an <iframe>
False

Question 22:
HTML comments start with <!-- and end with -->

True Your answer


False

Question 23:
Block elements are normally displayed without starting a new line.

False Your answer


True

Question 24:
Which HTML element defines the title of a document?

<title> Your answer


<meta>
<head>

Question 25:
Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?

alt Your answer


title
longdesc
src
Question 26:
Which doctype is correct for HTML5?

<!DOCTYPE html> Your answer


<!DOCTYPE HTML5>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN"
"http://www.w3.org/TR/html5/strict.dtd">

Question 27:
Which HTML element is used to specify a footer for a document or section?

<footer> Your answer


<section>
<bottom>

Question 28:
In HTML, you can embed SVG elements directly into an HTML page.

True Your answer


False

Question 29:
What is the correct HTML element for playing video files?

<video> Your answer


<movie>
<media>

Question 30:
What is the correct HTML element for playing audio files?

<audio> Your answer


<mp3>
<sound>
Question 31:
The HTML global attribute, "contenteditable" is used to:

Specify whether the content of an element should be editable or not Your answer
Return the position of the first found occurrence of content inside a string
Specifies a context menu for an element. The menu appears when a user right-clicks on
the element
Update content from the server

Question 32:
In HTML, onblur and onfocus are:

Event attributes Your answer


Style attributes
HTML elements

Question 33:
Graphics defined by SVG is in which format?

XML Your answer


HTML
CSS

Question 34:
The HTML <canvas> element is used to:

draw graphics Your answer


manipulate data in MySQL
create draggable elements
display database records

Question 35:
In HTML, which attribute is used to specify that an input field must be filled out?

required Your answer


placeholder
formvalidate
validate
Question 36:
Which input type defines a slider control?

range Your answer


slider
search
controls

Question 37:
Which HTML element is used to display a scalar measurement within a range?

<meter> Your answer


<measure>
<range>
<gauge>

Question 38:
Which HTML element defines navigation links?

<nav> Your answer


<navigation>
<navigate>

Question 39:
In HTML, what does the <aside> element define?

Content aside from the page content Your answer


A navigation list to be shown at the left side of the page
The ASCII character-set; to send information between computers on the Internet

Question 40:
Which HTML element is used to specify a header for a document or section?

<header> Your answer


<head>
<top>
<section>

You might also like