HTML Basics Quiz

GainfulOnyx8110 avatar
GainfulOnyx8110
·
·
Download

Start Quiz

Study Flashcards

16 Questions

What does HTML stand for?

Hyper Text Markup Language

Who is responsible for making web standards?

The World Wide Web Consortium

Which HTML element is used to define a paragraph?

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


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

Which character is used to indicate an end tag?

/

What is the correct HTML element to define a checkbox?

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

What is the correct HTML for making a checkbox?

input type="checkbox">

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

input type="text">

What is the correct HTML for inserting an image?

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

What is the correct HTML for inserting a background image?

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

What is the purpose of an iframe in HTML?

To display a web page within a web page

What do HTML comments start with?

What is the purpose of the alt attribute in HTML?

Specifies an alternate text for an image

What is the correct doctype for HTML5?

!DOCTYPE html>

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.

Test your knowledge of HTML fundamentals, including its meaning, web standards, and basic elements.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free
Use Quizgecko on...
Browser
Browser