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

HTML ASSESSMENT

The document is an HTML assessment with a total score of 44 out of 50 points. It includes various questions regarding HTML elements, attributes, and their functionalities, with the participant providing answers. The assessment covers topics such as headings, forms, lists, and multimedia elements.

Uploaded by

elijahodunayo417
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

HTML ASSESSMENT

The document is an HTML assessment with a total score of 44 out of 50 points. It includes various questions regarding HTML elements, attributes, and their functionalities, with the participant providing answers. The assessment covers topics such as headings, forms, lists, and multimedia elements.

Uploaded by

elijahodunayo417
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

HTML ASSESSMENT Total points 44/50

Complete with correct answers!

Email *

[email protected]

E-mail *

[email protected]

Name *

Adigun Elijah Odunayo

QUESTIONS
Choose the correct HTML element for the largest heading : * 1/1

<h1>

<head>

<h6>

<heading>

What does the type="submit" attribute in an <input> tag do? * 1/1

Clears all fields in the form

Sends the form data to the server

Prevents the form from submitting

Resets the form to its initial state

In HTML, onblur and onfocus are : * 1/1

Style attributes

HTML elements

Event attributes
What is the correct HTML for inserting an image ? * 1/1

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

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

<image src="image.gif" alt="MyImage">

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

HTML comments start with <!-- and end with --> * 1/1

True

False

An <iframe> is used to display a web page within a web page. * 1/1

True

There is no such thing as an <iframe>

False
What is the correct HTML for making a text area ? * 1/1

<input type="textarea">

<input type="textbox">

<textarea>

Which HTML element is used to display a scalar measurement within a *0/1


range ?

<range>

<meter>

<measure>

<gauge>

Correct answer

<meter>

Which character is used to indicate an end tag ? * 1/1

<

^
Which of these elements are all <table> elements ? * 1/1

<table><tr><td>

<table><head><tfoot>

<table><tr><tt>

<thead><body><tr>

How can you make a bulleted list ? * 1/1

<ul>

<list>

<ol>

<dl>

What is the purpose of the <fieldset> tag in HTML forms? * 1/1

To group related input elements

To define a border for the form

To create a hidden section in the form

To specify a default input value


Which of the following attributes is NOT applicable to the <form> tag? * 1/1

action

method

target

href

What is the correct HTML for making a checkbox ? * 1/1

<input type="checkbox">

<input type="check">

<check>

<checkbox>

Who is making the Web standards ? * 1/1

Microsoft

Google

Mozilla

The World Wide Web Consortium


Block elements are normally displayed without starting a new line. * 1/1

True

False

In HTML, you can embed SVG elements directly into an HTML page. * 1/1

True

False

Which HTML element defines navigation links ? * 1/1

<nav>

<navigation>

<navigate>

Inline elements are normally displayed without starting a new line. * 1/1

True

False
What is the default value of the method attribute in the <form> tag? * 0/1

GET

POST

PUT

DELETE

Correct answer

GET

Choose the correct HTML element to define emphasized text * 1/1

<em>

<italic>

<i>

What is the correct HTML element for playing video files ? * 1/1

<media>

<video>

<movie>
The HTML global attribute, "contenteditable" is used to: * 1/1

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

Specify whether the content of an element should be editable or not

Which input type defines a slider control ? * 0/1

slider

range

search

controls

Correct answer

range

How can you open a link in a new tab/browser window ? * 1/1

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

<a href="url" new>

<a href="url" target="new">


What is the correct HTML for adding a background color ? * 1/1

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

<background>yellow</background>

<body bg="yellow">

Which attribute is used to span a cell across multiple rows in a table? * 0/1

rowspan

colspan

span

merge

Correct answer

rowspan

What does HTML stand for ? * 1/1

Hyperlinks and Text Markup Language

Hyper Text Markup Language

Home Tool Markup Language


Which HTML element is used to specify a header for a document or *1/1
section ?

<header>

<head>

<section>

<top>

Which of the following elements is used to label an input field in a form? * 1/1

<input>

<label>

<span>

<legend>

Graphics defined by SVG is in which format ? * 0/1

CSS

HTML

XML

Correct answer

XML
What is the correct HTML element for playing audio files ? * 1/1

<audio>

<sound>

<mp3>

What does the <th> tag represent in an HTML table? * 1/1

Table header cell

Table footer

Table data cell

Table border

The HTML <canvas> element is used to : * 1/1

manipulate data in MySQL

display database records

create draggable elements

draw graphics
Which tag is used to create a table in HTML? * 1/1

<tr>

<table>

<td>

<tbody>

How do you associate a <label> element with an <input> field? * 0/1

a. By placing the <label> inside the <input>

b. By using the for attribute in <label> and matching it with the id of the <input>

c. By nesting the <input> inside the <label>

Both 2 and 3 above

Correct answer

Both 2 and 3 above

What is the correct HTML for inserting a background image ? * 1/1

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

<body bg="background.gif">

<background img="background.gif">
In HTML, which attribute is used to specify that an input field must be *1/1
filled out ?

required

placeholder

formvalidate

validate

What is the correct HTML for making a drop-down list ? * 1/1

<input type="dropdown">

<select>

<input type="list">

<list>

How can you make a numbered list ? * 1/1

<ol>

<ul>

<dl>

<list>
Choose the correct HTML element to define important text * 1/1

<strong>

<b>

<i>

<important>

What is the correct HTML for creating a hyperlink ? * 1/1

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

<a>http://www.w3schools.com</a>

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

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

In HTML, what does the <aside> element define ? * 1/1

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

Content aside from the page content


Which HTML element is used to specify a footer for a document or *1/1
section ?

<footer>

<section>

<bottom>

Which doctype is correct for HTML5 ? * 1/1

<!DOCTYPE HTML5>

<!DOCTYPE html>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN"


"http://www.w3.org/TR/html5/strict.dtd">

What is the correct HTML element for inserting a line break ? * 1/1

<br>

<lb>

<break>
Which HTML attribute specifies an alternate text for an image, if the *1/1
image cannot be displayed ?

alt

src

longdesc

title

Which input type is used to create a password field in a form? * 1/1

text

password

secure

hidden

What is the correct HTML for making a text input field ? * 1/1

<input type="textfield">

<input type="text">

<textfield>

<textinput type="text">
Which HTML element defines the title of a document ? * 1/1

<title>

<head>

<meta>

This content is neither created nor endorsed by Google. - Terms of Service - Privacy Policy

Does this form look suspicious? Report

Forms

You might also like