HTML Basics Quiz

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

What does HTML stand for?

  • Hyper Text Markup Language (correct)
  • Hypertext Markup Language Advanced
  • Home Tool Markup Language
  • Hyperlinks and Text Markup Language

Who is responsible for making web standards?

  • Mozilla
  • Microsoft
  • The World Wide Web Consortium (correct)
  • Google

Which HTML element is used to define a paragraph?

  • (correct)

What is the correct HTML element to define a line break?

<p><br> (B)</p> Signup and view all the answers

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

<p>(C)</p> Signup and view all the answers

Which character is used to indicate an end tag?

<p>/ (A)</p> Signup and view all the answers

What is the correct HTML element to define a checkbox?

<p>(A)</p> Signup and view all the answers

Which HTML element is used to group inline elements in a table?

<p>(B)</p> Signup and view all the answers

What is the correct HTML for making a checkbox?

<p>input type=&quot;checkbox&quot;&gt; (A)</p> Signup and view all the answers

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

<p>input type=&quot;text&quot;&gt; (A)</p> Signup and view all the answers

What is the correct HTML for inserting an image?

<p>img src=&quot;image.gif&quot; alt=&quot;MyImage&quot;&gt; (D)</p> Signup and view all the answers

What is the correct HTML for inserting a background image?

<p>body style=&quot;background-image:url(background.gif)&quot;&gt; (A)</p> Signup and view all the answers

What is the purpose of an iframe in HTML?

<p>To display a web page within a web page (B)</p> Signup and view all the answers

What do HTML comments start with?

<p>(A)</p> Signup and view all the answers

What is the purpose of the alt attribute in HTML?

<p>Specifies an alternate text for an image (C)</p> Signup and view all the answers

What is the correct doctype for HTML5?

<p>!DOCTYPE html&gt; (C)</p> Signup and view all the answers

Flashcards are hidden until you start studying

Study Notes

HTML Basics

  • HTML stands for Hyper Text Markup Language.

Web Standards

  • The World Wide Web Consortium (W3C) makes the Web standards.

HTML Elements

  • The largest heading is defined by ``.
  • <br> is the correct HTML element for inserting a line break.
  • To add a background color, use ``.
  • <strong> defines important text, and <em> defines emphasized text.
  • The correct HTML for creating a hyperlink is <a href="http://www.w3schools.com">W3Schools.</a>.
  • To open a link in a new tab/browser window, use <a href="url">.

HTML Syntax

  • / is the character used to indicate an end tag.

HTML Tables

  • A table consists of </a>, , and elements.

Lists

  • To make a numbered list, use </em></strong><strong><em>.
  • To make a bulleted list, use </em></strong><strong><em>.

Form Elements

  • A checkbox is created with ``.
  • A text input field is created with ``.
  • A dropdown list is created with ``.
  • A text area is created with ``.

Images

  • The correct HTML for inserting an image is <img src="image.gif" alt="MyImage">.
  • The correct HTML for inserting a background image is ``.

iframes and Comments

  • An `` is used to display a web page within a web page.
  • HTML comments start with ``.

Block and Inline Elements

  • Block elements are normally displayed starting a new line.
  • Inline elements are normally displayed without starting a new line.

Document Structure

  • The `` element defines the title of a document.
  • The alt attribute specifies an alternate text for an image, if the image cannot be displayed.

HTML5

  • The correct doctype for HTML5 is ``.
  • The `` element is used to specify a footer for a document or section.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

More Like This

Use Quizgecko on...
Browser
Browser