HTML Quiz

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/39

flashcard set

Earn XP

Description and Tags

Study guide sample

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

40 Terms

1
New cards

What does HTML stand for?

Hyper Text Markup Language

Home Tool Markup Language

Hyperlinks and Text Markup Language

Hyper Text Markup Language

2
New cards

Who is making the Web standards?

Microsoft

Mozilla

Google

The World Wide Web Consortium

The World Wide Web Consortium

3
New cards

Choose the correct HTML element for the largest heading:

<head>

<h1>

<h6>

<heading>

<h1> is the HTML element used for the largest heading.

4
New cards

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

<br>

<lb>

<break>

<br> is the HTML element used to insert a line break.

5
New cards

What is the correct HTML for adding a background color?

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

<body bg=”yellow”>

<background>yellow</background>

<body style=”background-color:yellow;”> is the correct HTML syntax for adding a background color to a webpage.

6
New cards

Choose the correct HTML element to define important text

<important>

<strong>

<i>

<b>

<strong> is the HTML element used to define important text, indicating strong importance.

7
New cards

Choose the correct HTML element to define emphasized text

<em>

<i>

<italic>

<em> is the HTML element used to define emphasized text, typically rendered in italics.

8
New cards

What is the correct HTML for creating a hyperlink?

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

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

9
New cards

Which character is used to indicate an end tag?

/

^

<

*

/ is used to indicate an end tag in HTML.

10
New cards

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

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

<a href="url" new>

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

<a href="url" target="_blank"> This attribute specifies that the link should open in a new tab or window.

11
New cards

Which of these elements are all <table> elements?

<table><tr><tt>

<thead><body><tr>

<table><head><tfoot>

<table><tr><td>

<table><tr><td> This represents an HTML table with rows and cells.

12
New cards

Inline elements are normally displayed without starting a new line.

True

False

True, Inline elements do not cause line breaks and are typically displayed within the flow of text, allowing other elements to sit alongside them.

13
New cards

How can you make a numbered list?

<ol>

<dl>

<ul>

<list>

<ol> This tag is used to create an ordered list in HTML, where items are numbered.

14
New cards

How can you make a bulleted list?

<ol>

<list>

<dl>

<ul>

<ul> This tag is used to create an unordered list in HTML, where items are marked with bullets.

15
New cards

What is the correct HTML for making a checkbox?

<input type="check">

<checkbox>

<check>

<input type="checkbox">

<input type="checkbox"> This tag is used to create a checkbox input in HTML, allowing users to select or deselect an option.

16
New cards

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

<input type="text">

<input type="textfield">

<textfield>

<textinput type="text">

<input type="text"> This tag is used to create a single-line text input field in HTML, allowing users to enter text.

17
New cards

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

<select>

<input type="dropdown">

<input type="list">

<list>

<select> This tag is used to create a drop-down list in HTML, allowing users to select one option from multiple choices.

18
New cards

What is the correct HTML for making a text area?

<textarea>

<input type="textbox">

<input type="textarea">

<textarea> This tag is used to create a multi-line text input area in HTML, allowing users to enter larger amounts of text.

19
New cards

What is the correct HTML for inserting an image?

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

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

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

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

<img src="image.gif" alt="MyImage"> This tag is used to insert an image in HTML, allowing the display of graphical content on a webpage.

20
New cards

What is the correct HTML for inserting a background image?

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

<body bg="background.gif">

<background img="background.gif">

<body style="background-image:url(background.gif)"> This tag is used to set a background image for the HTML document, allowing for styled graphical presentation behind the content.

21
New cards

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

There is no such thing as an <iframe>

False

True

True, An <iframe> is an HTML element that allows you to embed another HTML document within the current page, enabling the display of external content seamlessly.

22
New cards

HTML comments start with <!-- and end with -->

False

True

True, HTML comments are used to insert notes in the code that are not displayed on the webpage. They begin with <!-- and end with -->.

23
New cards

Block elements are normally displayed without starting a new line.

True

False

False, Block elements are normally displayed with starting a new line, taking up the full width available.

24
New cards

Which HTML element defines the title of a document?

<meta>

<title>

<head>

<title> is used to define the title of a web document, which is displayed in the browser's title bar or tab.

25
New cards

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

longdesc

title

src

alt

alt is an attribute used in the <img> tag to provide alternative text for an image, which improves accessibility and is displayed when the image cannot be shown.

26
New cards

Which doctype is correct for HTML5?

<!DOCTYPE HTML5>

<!DOCTYPE html>

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

<!DOCTYPE html> is the declaration that defines the document type and version for HTML5, ensuring that browsers render the page in standards mode.

27
New cards

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

<bottom>

<section>

<footer>

<footer> is an HTML element used to define a footer for a document or section, typically containing metadata, authorship, or copyright information.

28
New cards

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

False

True

True, is the correct answer, as SVG (Scalable Vector Graphics) elements can be included directly in HTML documents, allowing for scalable graphics and interactive images.

29
New cards

What is the correct HTML element for playing video files?

<media>

<movie>

<video>

<video> is the correct HTML element for embedding and playing video files in a webpage, allowing for various media controls and features.

30
New cards

What is the correct HTML element for playing audio files?

<audio>

<sound>

<mp3>

<audio> is the correct HTML element for embedding and playing audio files in a webpage, providing audio controls such as play, pause, and volume adjustment.

31
New cards

The HTML global attribute, "contenteditable" is used to:

Specifies a context menu for an element. The menu appears when a user right-clicks on the element

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

Update content from the server

Return the position of the first found occurrence of content inside a string

Specify whether the content of an element should be editable or not (True, this attribute indicates if the element's content is editable by the user.)

32
New cards

In HTML, onblur and onfocus are:

HTML elements

Event attributes

Style attributes

Event attributes that manage focus and blur events for elements, allowing actions to be triggered when an element gains or loses focus.

33
New cards

Graphics defined by SVG is in which format?

CSS

XML

HTML

XML, is the format used for defining vector graphics in SVG, allowing for scalability without loss of quality.

34
New cards

The HTML <canvas> element is used to:

manipulate data in MySQL

create draggable elements

draw graphics

display database records

draw graphics, on a web page dynamically using JavaScript.

35
New cards

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

validate

placeholder

formvalidate

required

required is an attribute that specifies that an input field must be filled out before submitting the form.

36
New cards

Which input type defines a slider control?

range

controls

search

slider

range, is an input type in HTML that creates a slider control allowing users to select a value from a specified range.

37
New cards

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

<range>

<meter>

<measure>

<gauge>

<meter> is an HTML element used to represent a scalar measurement within a specified range, often visually indicated by a gauge-like representation.

38
New cards

Which HTML element defines navigation links?

<navigate>

<nav>

<navigation>

<nav> is an HTML element used to define a set of navigation links, helping users to navigate through a website.

39
New cards

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

Content aside from the page content

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, is represented by the element, which is often used for sidebars, tangential content, or references.

40
New cards

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

<section>

<header>

<head>

<top>

<header> is an HTML element used to represent introductory content or navigational links for a document or section.