Basic HTML Coding Quiz

10 Questions | Total Attempts: 695

SettingsSettingsSettings
Please wait...
HTML Quizzes & Trivia

What do you know about HTML coding? How do HTML Tags and Codes Work? ? Here is the quiz to answer that question! HTML(Hyper Text Markup Language) help in designing a webpage which 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. So, let's try out the test. All the best! ​​​​​


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

  • 2. 
    • 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.

  • 3. 
     
    1. How do you create a comment tag?
    • A. 

    • B. 

      comment goes here

    • C. 

      comment goes here

    • D. 

      comment goes here

  • 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

  • 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.

  • 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

  • 7. 
    Which character entity would you use to display extra spaces on a webpage?
    • A. 

      & nbsp;

    • B. 

      & reg;

    • C. 

      & gt;

    • D. 

      & lt;

  • 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

  • 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

  • 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