Basic HTML Coding Quiz Exam!

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Bcahrens
B
Bcahrens
Community Contributor
Quizzes Created: 4 | Total Attempts: 9,851
Questions: 10 | Attempts: 1,780

SettingsSettingsSettings
Basic HTML Coding Quiz Exam! - Quiz

What do you know about HTML coding? How do HTML Tags and Codes Work? ? Here is the quiz to answer that question! HTML(HyperText Markup Language) helps design a web page that can be accessed in a web browser that includes writing, links, pictures, sound, video, and other objects such as an interactive form. Take this quiz to test knowledge about HTML tags and codes.


Questions and Answers
  • 1. 

    What are HTML tags?

    • A.

      The tags that set off alarms at the store if you try to steal something.

    • B.

      Code that looks like this:

    • C.

      How the web browser knows what to display.

    • D.

      Both B and C

    • E.

      None of the above

    Correct Answer
    D. Both B and C
    Explanation
    The correct answer is "Both B and C". HTML tags are not alarms at the store, but rather code that is used to structure and format content on a webpage. They tell the web browser how to display the content and help in creating the visual layout of the webpage. So, option B is correct as HTML tags are responsible for how the web browser knows what to display. Option C is also correct as HTML tags are not alarms at the store.

    Rate this question:

  • 2. 

    Where is the text of the title tag displayed?

    • A.

      At the top of your web page.

    • B.

      On the browser page, but not the web page

    • C.

      Both on the browser and on the web page itself.

    • D.

      Only in the code, it doesn't display in the browser at all.

    Correct Answer
    B. On the browser page, but not the web page
    Explanation
    The text of the title tag is displayed on the browser page, but not on the web page itself. The title tag is an HTML element that specifies the title of a web page. It is displayed in the title bar of the browser window or in the tab of the browser. However, it is not visible on the actual content of the web page when it is loaded.

    Rate this question:

  • 3. 

    How do you create a comment tag?

    • A.

    • B.

      comment goes here

    • C.

      comment goes here

    • D.

      comment goes here

    Correct Answer
    A.
    Explanation
    To create a comment tag, you use the syntax . Comments are used to add notes or explanations within the code that are not interpreted or displayed by the browser. They are useful for providing information to other developers or for temporarily disabling a section of code without deleting it. In this case, the correct answer is the given syntax because it correctly represents the comment tag in HTML.

    Rate this question:

  • 4. 

    What are the different levels of headings in HTML?

    • A.

      Big, Bigger, Biggest

    • B.

      Bold, Italic, Underline, Typewriter Text

    • C.

      1, 2, 3, 4, 5, 6

    • D.

      None of the above

    Correct Answer
    C. 1, 2, 3, 4, 5, 6
    Explanation
    The different levels of headings in HTML are represented by numbers 1, 2, 3, 4, 5, and 6. Heading level 1 is the highest level and represents the main heading of the page, while heading level 6 is the lowest level and represents the least important heading. These heading levels are used to structure and organize the content of the webpage, with higher levels indicating more important and larger headings.

    Rate this question:

  • 5. 

    What is the difference between a <[p]> and a <[br]>?

    • A.

      There is no difference

    • B.

      creates a blank line before the next row of text.

    • C.

      creates a blank line before the next row of text.

    • D.

      can only be used with multiple sentences because you are creating a paragraph.

    Correct Answer
    C. creates a blank line before the next row of text.
    Explanation
    The correct answer is that "" creates a blank line before the next row of text. This is because the "" tag is used to insert a line break within a single paragraph, which means it only creates a line break without creating a new paragraph. On the other hand, "" is used to create a new paragraph, which results in a blank line before the next row of text.

    Rate this question:

  • 6. 

    If I wanted to make the statement bold and underlined, what coding would be best? I love going to Disneyland.

    • A.

      <[u]><[i]>I love going to Disneyland. <[/u]> <[/i]>

    • B.

      <[b]><[u]>I love going to Disneyland <[/b]> <[/u]>

    • C.

      <[tt]>I love going to Disneyland <[/tt]>

    • D.

      <[b]> I love going to Disneyland <[/b]><[u]>

    • E.

      None of these is correct

    Correct Answer
    E. None of these is correct
  • 7. 

    Which character entity would you use to display extra spaces on a webpage?

    • A.

      & nbsp;

    • B.

      & reg;

    • C.

      & gt;

    • D.

      & lt;

    Correct Answer
    A. & nbsp;
    Explanation
    The character entity "& nbsp;" is used to display extra spaces on a webpage.

    Rate this question:

  • 8. 

    What two things do you need to create webpages & view them?

    • A.

      A text editor & a web browser

    • B.

      A compiler & a web browser

    • C.

      A text editor & a compiler

    • D.

      None of the above

    Correct Answer
    A. A text editor & a web browser
    Explanation
    To create webpages, you need a text editor to write the HTML, CSS, and JavaScript code that makes up the webpage. A text editor allows you to create and edit the code. Once the webpage is created, you need a web browser to view the webpage. A web browser interprets the code and displays the webpage with all its elements and functionality. Therefore, the correct answer is a text editor and a web browser.

    Rate this question:

  • 9. 

    What will be the output of this code? <!--display some text--> <h1>Here is a heading</h1>

    • A.

      Display here text

    • B.

      Display some text Here is a heading

    • C.

      Display some text

    • D.

      Here is a heading

    Correct Answer
    D. Here is a heading
    Explanation
    The code will output "Here is a heading". This is because the code includes a comment which is not displayed on the webpage. The code then includes an h1 element with the text "Here is a heading", which is displayed as a heading on the webpage.

    Rate this question:

  • 10. 

    You have a situation where you want to accept some input from the user that is usually 1-2 paragraphs long. Which of the following form elements would you choose?

    • A.

      Textbox

    • B.

      Drop-down list

    • C.

      Textarea

    • D.

      Button

    Correct Answer
    C. Textarea
    Explanation
    The correct answer is textarea. A textarea element is the most suitable form element for accepting input from the user that is usually 1-2 paragraphs long. Unlike a textbox, which is typically used for single-line input, a textarea allows the user to input multiple lines of text. A drop-down list is used for selecting a single option from a list, and a button is used for triggering an action. Therefore, a textarea is the most appropriate choice for this situation.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 22, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Nov 07, 2008
    Quiz Created by
    Bcahrens
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.