HTML Basics Quiz
49 Questions
2 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 is the correct file extension for an HTML document saved using Notepad?

  • .doc
  • .html (correct)
  • .txt
  • .htm
  • Which step is NOT part of creating an HTML document using Notepad?

  • Select the font style (correct)
  • Save the file with the .html extension
  • Open Notepad
  • Type the HTML code
  • What keyboard shortcut is used to open an HTML file in a web browser?

  • Ctrl + O (correct)
  • Ctrl + S
  • Ctrl + P
  • Ctrl + N
  • Which statement about HTML tags is true?

    <p>Tags define the formatting of the content on a web page.</p> Signup and view all the answers

    What symbol does each HTML tag start with?

    <p>&lt;</p> Signup and view all the answers

    What does HTML stand for?

    <p>HyperText Markup Language</p> Signup and view all the answers

    Which of the following is NOT a purpose of HTML?

    <p>Creating interactive web applications</p> Signup and view all the answers

    How do clients and servers interact on the internet?

    <p>Clients send requests to servers and receive responses.</p> Signup and view all the answers

    Which statement is true about web pages?

    <p>Web pages can include graphics, video, and audio.</p> Signup and view all the answers

    What is the function of hyperlinks in web pages?

    <p>To connect different web pages and resources.</p> Signup and view all the answers

    Which of the following statements about HTML is NOT true?

    <p>HTML is a case-sensitive language.</p> Signup and view all the answers

    Which tool is essential for creating and saving HTML documents?

    <p>HTML Editor</p> Signup and view all the answers

    Who redesigned GML to create HTML?

    <p>Tim Berners-Lee</p> Signup and view all the answers

    What does WYSIWYG stand for in the context of HTML editors?

    <p>What You See Is What You Get</p> Signup and view all the answers

    What is the primary purpose of a WYSIWYG editor?

    <p>To allow users to see the final output of a web page while editing.</p> Signup and view all the answers

    Which of the following is NOT a popular web browser?

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

    What is included in the head section of an HTML document?

    <p>Metadata and links to stylesheets or scripts.</p> Signup and view all the answers

    What does the title tag in the head section of an HTML document do?

    <p>Specifies the title displayed in the browser's title bar.</p> Signup and view all the answers

    What kind of elements does the body section of an HTML document contain?

    <p>Displayed content elements like text, graphics, and formatting tags.</p> Signup and view all the answers

    What is a defining characteristic of container elements in HTML?

    <p>They enclose other content.</p> Signup and view all the answers

    In what situation should attribute values be enclosed in quotes?

    <p>When attribute values contain spaces.</p> Signup and view all the answers

    Which of the following rules about HTML tags is incorrect?

    <p>Tags are case-sensitive.</p> Signup and view all the answers

    How should embedded tags be properly formatted within other tags?

    <p>Close the inner tag before closing the outer tag.</p> Signup and view all the answers

    Which of the following statements about HTML elements is true?

    <p>Container elements require a closing tag.</p> Signup and view all the answers

    What is the primary purpose of the `` tag in an HTML document?

    <p>To hold metadata and information not displayed in the browser</p> Signup and view all the answers

    Which of the following best describes the role of the `` tag?

    <p>It sets the title of the document for display in the browser</p> Signup and view all the answers

    What type of elements does the HTML `` tag contain?

    <p>Both block-level and text-level elements</p> Signup and view all the answers

    Which attribute can be used within the `` tag to set the background color of a web page?

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

    Which statement correctly differentiates between block-level and text-level elements?

    <p>Block-level elements can contain text-level elements</p> Signup and view all the answers

    What is the primary purpose of HTML headings?

    <p>To separate different sections and improve document structure</p> Signup and view all the answers

    Which of the following is NOT a valid HTML heading tag?

    <h7> Signup and view all the answers

    How should paragraphs be defined in HTML?

    <p>Using <p> tags to wrap the text</p> Signup and view all the answers

    What is a disadvantage of using headings incorrectly in an HTML document?

    <p>It may confuse users and hinder navigation.</p> Signup and view all the answers

    Which attribute is commonly used with HTML headings for styling purposes?

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

    What purpose does the <br> tag serve in an HTML document?

    <p>To insert a line break.</p> Signup and view all the answers

    Which tag is used for making text bold in HTML?

    <b> Signup and view all the answers

    What is the function of the <em> tag in HTML?

    <p>To italicize text.</p> Signup and view all the answers

    When should you use the <u> tag in an HTML document?

    <p>To underline text.</p> Signup and view all the answers

    What are some features of HTML5?

    <p>Embedding audio and video in web pages.</p> Signup and view all the answers

    What does the body tag primarily contain?

    <p>The visible content of the HTML document</p> Signup and view all the answers

    Which HTML tag is used to specify the title of an HTML page?

    &lt;title> Signup and view all the answers

    What is the function of the subscript tag in HTML?

    <p>To display text below the baseline in a smaller font</p> Signup and view all the answers

    Which of the following attributes is NOT related to the tag?

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

    How do you center text using the appropriate HTML tag?

    <center> text </center> Signup and view all the answers

    What is the primary benefit of using an external style sheet in CSS?

    <p>It controls the layout of multiple documents from a single stylesheet.</p> Signup and view all the answers

    Which of the following best describes a 'property' in CSS?

    <p>It is a specific setting that defines how HTML elements appear.</p> Signup and view all the answers

    What is a correct way to specify a hexadecimal color value in CSS?

    <p>color: #800080;</p> Signup and view all the answers

    Which feature does CSS NOT provide?

    <p>Enhanced search engine optimization.</p> Signup and view all the answers

    What are the possible font sizes when using CSS?

    <p>From 1 to 7.</p> Signup and view all the answers

    Study Notes

    Creating an HTML Document

    • Follow steps to create an HTML document using Notepad
    • Open Notepad by clicking on Start > Notepad. The Notepad window will appear
    • Type the HTML code as shown in Figure 7.1. Click on the File -> Save option. The Save As dialog box will appear.
    • Select the target folder to save the file and mention the name in the File name text box with an extension .html. Click on the Save button.

    Saving a Web Page

    • Follow the given steps to view an HTML document using a web browser
    • Open a web browser. For example, Google Chrome or Microsoft Edge.
    • Press the keyboard shortcut Ctrl + O.
    • The Open dialog box appears. Locate the file and click on the Open button.
    • Your web page will appear as shown in Figure 7.3.

    Tags, Elements, and Attributes

    • HTML code is made up of tags, elements, and attributes.
    • Tags are the building blocks of a web page. They have elements that define how the information on a web page is formatted or displayed. Tags do not appear in the browser window but they affect the display of the text and non-text items in it. Each tag begins with a less than sign '<' and ends with a greater than sign '>'.

    Studying That Suits You

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

    Quiz Team

    Description

    Test your knowledge of HTML fundamentals with this quiz. You'll answer questions about HTML tags, file extensions, and web browsers. Perfect for beginners looking to understand the essentials of web development.

    More Like This

    HTML Basics: Structure and Introduction
    6 questions
    HTML Basics Quiz
    10 questions

    HTML Basics Quiz

    PleasingRaleigh avatar
    PleasingRaleigh
    HTML Basics for Beginners
    10 questions
    HTML Basics and JavaScript Programming
    8 questions
    Use Quizgecko on...
    Browser
    Browser