HTML Basics Quiz
9 Questions
0 Views

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

    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?

    <a> 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</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

    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

    Description

    Test your knowledge on the fundamentals of HTML with this quiz. Learn about HTML elements, structure, and how to create links in web pages. Perfect for beginners eager to dive into web design!

    More Like This

    Web Design with HTML Basics
    7 questions
    HTML/CSS Basics Study Quiz
    8 questions

    HTML/CSS Basics Study Quiz

    BrotherlyJasper8297 avatar
    BrotherlyJasper8297
    Introduction to Web Design
    6 questions
    HTML Basics and Structure
    13 questions
    Use Quizgecko on...
    Browser
    Browser