Basic HTML Skills Exam! Quiz

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 Rishi Pathak
R
Rishi Pathak
Community Contributor
Quizzes Created: 1 | Total Attempts: 513
Questions: 10 | Attempts: 513

SettingsSettingsSettings
Basic HTML Skills Exam! Quiz - Quiz

.
Welcome to this Basic HTML skills exam! Quiz! Html is a computer programming language that is used extensively to write webpages on the internet. Are you well aware of this language? Why not test your knowledge with this fun quiz? The questions asked in the quiz will test your basic knowledge and will help you understand more concepts. Give it a try! Please make sure to read all the questions carefully before attempting. Keep learning and have fun!


Questions and Answers
  • 1. 

    Which of the following is/are correct code for linking a local HTML file called resources.html?

    • A.

      <a href="https://www.resourses.com/"></a>

    • B.

      <a href="./resourses.html"></a>

    • C.

      <a href="../resourses.html"></a>

    • D.

      <a href="./resourses.html" />

    Correct Answer(s)
    B. <a href="./resourses.html"></a>
    C. <a href="../resourses.html"></a>
    Explanation
    both . and .. are used for relative referencing.

    Rate this question:

  • 2. 

    When was HTML developed?

    • A.

      1993

    • B.

      2000

    • C.

      2003

    • D.

      2005

    Correct Answer
    A. 1993
    Explanation
    HTML was developed in 1993. This was the year when Tim Berners-Lee, a British scientist, created the first version of HTML (Hypertext Markup Language) while working at CERN. HTML is a standard markup language used for creating web pages and is the backbone of the World Wide Web. It allows the structuring of content on web pages by using tags and elements. Since its inception, HTML has evolved and gone through several versions, with HTML5 being the latest version as of now.

    Rate this question:

  • 3. 

    Select the correct syntax.

    • A.

      <p>I didn’t say <span> he stole the money.</span></p>

    • B.

      <p>I didn’t say <span> he stole the money.<span></p>

    • C.

      <p>I didn’t say <span> he stole the money.<span/></p>

    • D.

      <p>I didn’t say <span> he stole the money.<span><p>

    Correct Answer
    A. <p>I didn’t say <span> he stole the money.</span></p>
    Explanation
    The correct syntax is:
    <p>I didn’t say <span> he stole the money.</span></p>

    This is the correct syntax because it follows the HTML tag structure. The <p> tag is used to define a paragraph, and the <span> tag is used to define a section of text within that paragraph. The closing tags are also used correctly to close each tag in the correct order.

    Rate this question:

  • 4. 

    The posted speed limit on a highway is 55mph. When passing another car, what is the fastest you can legally drive?

    • A.

       HyperText Markdown Language

    • B.

       HyperText Markup Language

    • C.

       HypoText Markup Language

    • D.

       HyperText Makeup Language

    Correct Answer
    B.  HyperText Markup Language
    Explanation
    The full form of HTML is HyperText Markup Language.

    Rate this question:

  • 5. 

    Which of the following tags would contain the HTML for a web page’s visible content?

    • A.

      <html>

    • B.

      <head>

    • C.

      <title>

    • D.

      <body>

    Correct Answer
    D. <body>
    Explanation
    Only content inside the opening and closing body tags can be displayed to the screen.

    Rate this question:

  • 6. 

    Why is the code below incorrect? <video src="video.mp4" controls >

    • A.

      There is no closing tag.

    • B.

      Video is a self closing tag that ends with  />

    • C.

      Source is not valid video.

    • D.

      All of the above

    Correct Answer
    A. There is no closing tag.
    Explanation
    The video tag is not a self-closing tag. It should have an opening and closing tag.

    Rate this question:

  • 7. 

    Which of the following tag should be the parent of the following code?   <title>Ripension😛</title>

    • A.

      <html>

    • B.

      <div>

    • C.

      <head>

    • D.

      <body>

    Correct Answer
    C. <head>
    Explanation
    The title tag is child of head tag.

    Rate this question:

  • 8. 

    Which code will open link in new tab?

    • A.

      <a href="techboardiitg.com"></a>

    • B.

      <a href="techboardiitg.com" target="_blank"></a>

    • C.

      <a href="techboardiitg.com" target="blank"></a>

    • D.

      None of the Above.

    Correct Answer
    B. <a href="techboardiitg.com" target="_blank"></a>
    Explanation
    target="_blank" is added to open a link in new tab

    Rate this question:

  • 9. 

    Complete the internal linking in the code given below.   <html> <head> <title>Brown Bears</title> </head> <body> <h1>Resources</h1> <ul> <li><a href="#videos">Videos</a></li> <li><a href="#lectures">Lectures</a></li> <li><a href="#websites">Websites</a></li> </ul> <div id="________"> <h2>Quadcopter videos</h2> <p><em>Fascinated by drones?</em>Here are all the resources you will need for learning the basics of a quadcopter.</p> <video src="https://www.youtube.com/watch?v=lseZwkkQ070"></video> </div> <div id="________"> <h2>Quadcopter lectures</h2> <p>Ever saw some cool self-flying drones? Let us learn making them ourselves.</p> </div> <div id="________"> <h2>Arduino websites</h2> <p>The small compact size and low cost of a Raspberry Pi is accompanied by functions of a computer. Let us take you to the amazing world of RPi.</p> <a href="https://howtoraspberrypi.com/how-to-raspberry-pi-headless-setup/"></a> </div> </body> </html>

    Correct Answer
    videos
    lectures
    websites
    Explanation
    The correct answer is "videos, lectures, websites". In the given code, the internal linking is completed by adding the respective IDs to the div elements. The first div has an ID of "videos", the second div has an ID of "lectures", and the third div has an ID of "websites". These IDs match the href values in the list items, creating internal links within the webpage.

    Rate this question:

  • 10. 

    Which of the following is the correct code for comment in HTML?

    • A.

      ## I am a comment

    • B.

      // I am a comment

    • C.

      <!-- // I am a comment -->

    • D.

      <!-- I am a comment -->

    Correct Answer(s)
    C. <!-- // I am a comment -->
    D. <!-- I am a comment -->
    Explanation
    The correct answer is "" and "". In HTML, comments are written using the "" syntax. The "//" syntax is used for comments in programming languages like JavaScript, but it is not valid in HTML. Therefore, the correct way to write a comment in HTML is using the "" syntax.

    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
  • Aug 24, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • May 20, 2019
    Quiz Created by
    Rishi Pathak
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.