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

Questions and Answers

What does HTML stand for?

Hyper Text Markup Language

Which of the following describes HTML tags?

  • All HTML tags require a closing tag.
  • HTML tags are written between angled brackets. (correct)
  • HTML tags come in pairs. (correct)
  • HTML tags are always case sensitive.

HTML is a case sensitive language.

False (B)

What is the purpose of an attribute in an HTML tag?

<p>To provide additional information about an element</p> Signup and view all the answers

The tag is used to add a __________ to a web page.

<p>paragraph</p> Signup and view all the answers

Which tag is used to create a hyperlink in HTML?

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

What must you do to save an HTML file correctly?

<p>Save it with the extension .html</p> Signup and view all the answers

The text between the and tags describes the visible page content.

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

What is the function of the bgcolor attribute in HTML?

<p>It defines the background color of a webpage.</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 and is used to design web pages.
  • It is the basis for describing web pages.
  • HTML uses a set of "tags" to create elements.
  • Tags are enclosed in angled brackets and come in pairs (opening and closing) except for empty tags.

HTML Elements

  • An HTML element is a piece of code from the start tag to the end tag.
  • Tags can have attributes that provide extra information about an element.
  • Attributes are always specified within the start tag and are key-value pairs like name="value".
  • HTML is not case sensitive.

Basic Structure of an HTML Document

  • HTML documents have two parts: head and body.
  • The <head> section contains meta information about the page.
  • The <body> section contains the content of the webpage visible to the user.
  • Use the <a> tag (anchor tag) to create links that link one web page to another.

Creating a Website

  • Use a text editor (like Notepad) to write HTML code.
  • Save the file with the extension .html.
  • Open the saved file in a web browser to view the web page.

Formatting HTML

  • <p> defines a paragraph and inserts a line break.
  • <br> defines a line break.
  • <hr> creates a horizontal rule (separator).
  • Use &nbsp; for a non-breaking space (creates white space between words).
  • The dir attribute controls the page direction, with values rtl (right to left) or ltr (left to right).

Background Color and Image

  • The bgcolor attribute in the <body> tag defines the background color of the webpage.
  • The background attribute in the <body> tag defines the background image for the page.

Font Formatting

  • The font tag controls font attributes like family, size, color, and weight.
  • Attributes like face, size, color, and weight are used for font formatting.

Studying That Suits You

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

Quiz Team

Related Documents

HTML ICT Grade 9 PDF

More Like This

Web Design with HTML Basics
7 questions
Understanding HTML Basics
10 questions
Introduction to Web Design
6 questions
HTML Introduction Quiz
39 questions
Use Quizgecko on...
Browser
Browser