HTML Basic MCQ

Computer Science and Engineering > HTML

Improve your HTML skills with our challenging HTML MCQ questions. Test your knowledge of HTML tags, attributes, and syntax with these interactive practice questions. Covering a wide range of topics, from basic HTML structure to advanced layout and styling techniques, our HTML MCQ questions are a great way to prepare for exams or simply improve your web development skills. With detailed explanations for each question, you can learn from your mistakes and track your progress as you go. Try our HTML MCQ questions today and see how much you know! ➲ HTML Basic MCQ - Quiz


  • A HighText Machine Language
  • B HyperText and links Markup Language
  • C HyperText Markup Language
  • D None of these
  • A Head, Title, HTML, body
  • B HTML, Body, Title, Head
  • C HTML, Head, Title, Body
  • D HTML, Head, Title, Body
  • A .html
  • B .ht
  • C .h
  • D None of the above
  • A Rasmus Lerdorf
  • B Tim Berners-Lee
  • C Brendan Eich
  • D Sergey Brin
  • A
    
    <!doctype html>
    
  • B
    
    </doctype html>
    
  • C
    
    <?doctype html>
    
  • D
    
    <doctype html>
    
  • A Web server
  • B Web network
  • C Web browser
  • D Web matrix
  • A
    
    head
    
  • B
    
    <h1>
    
  • C
    
    <h6>
    
  • D
    
    heading
    
  • A Language dependent application programming
  • B Hierarchy of objects in ASP.NET
  • C Application programming interface
  • D Convention for representing and interacting with objects in html documents
  • A body tag
  • B Head tag
  • C Body tag
  • D title tag
  • A
    
    <mark>
    
  • B
    
    <highlight>
    
  • C
    
    <u>
    
  • D
    
    <b>
    
  • A
    
    <video>
    
  • B
    
    <track>
    
  • C
    
    <source>
    
  • D
    
    <slider>
    
  • A
    
    <</span>
                                       <span class="correct-option check-span"><i class="fa fa-check-circle" aria-hidden="true"></i></span>
                                      <span class="wrong-option check-span"><i class="fa fa-times-circle" aria-hidden="true"></i></span>
                                    </li>                                                                 <li class="options-list-item" data-qid="4781">
                                      <span class="symbol">B</span>
                                      <span class="option-text"><pre class = "prettyprint"><xmp>
    <!</span>
                                       <span class="correct-option check-span"><i class="fa fa-check-circle" aria-hidden="true"></i></span>
                                        <span class="wrong-option check-span"><i class="fa fa-times-circle" aria-hidden="true"></i></span>
                                    </li>                                                                 <li class="options-list-item" data-qid="4781">
                                      <span class="symbol">C</span>
                                      <span class="option-text"><pre class = "prettyprint"><xmp>
    </</span>
                                       <span class="correct-option check-span"><i class="fa fa-check-circle" aria-hidden="true"></i></span>
                                        <span class="wrong-option check-span"><i class="fa fa-times-circle" aria-hidden="true"></i></span>
                                    </li>                                                                 <li class="options-list-item" data-qid="4781">
                                      <span class="symbol">D</span>
                                      <span class="option-text"><pre class = "prettyprint"><xmp>
    </</span>
                                       <span class="correct-option check-span"><i class="fa fa-check-circle" aria-hidden="true"></i></span>
                                        <span class="wrong-option check-span"><i class="fa fa-times-circle" aria-hidden="true"></i></span>
                                    </li> 
                                     
                                  </ul>
                                </div>
                              
                                                    <span style="display: none" id="correct-option4781">B</span>
                            <div class="gk-answers" id="4781" style="display: none">
                              <span style="padding-left: 0">Answer: </span>
                              <span>B</span>
                              <div class="gk-image">
                                <br>
                              </div>
                              <p> 
    <p>Browsers will ignore comments in a code, and comments are used to add notes or explanations to the code for the benefit of the developer or other users who may be reading the code. <br>There are two types of comments in HTML: single line comments, which are denoted by the <!-- and --> characters, and multiple line comments, which are denoted by the /* and */ characters.<br> To add a comment in the code, you can place the text between these characters and it will not be visible in the user's browser. <br>Comments are a useful tool for organizing and documenting code, and they can help make it easier to understand and maintain.</p></p>
                              
                            </div>
                          </div>
                             </div>
                        </div>
                        </div>
                                                
                            <div class="nacc">
                             <div class="card mb-2">
                              <div class="card-header">
                              <div class="gk-image">
                                   <!--<a style="color:#4e5050" href="/gk/100//">-->
                                <a style="color:#4e5050" href="/question/mcq/4782">
                                    <h2>Q 13: Which of the following HTML5 elements defines video or movie content?</h>
                                </a>
                                
                                                          </div>
                              </div>
                              <div class="card-body">
                                 <div class="main-content">
                                <div class="options">
                                  <ul class="options-list">
                                                                    <li class="options-list-item" data-qid="4782">
                                      <span class="symbol">A</span>
                                      <span class="option-text"><pre class = "prettyprint"><xmp>
    <video>
    
  • B
    
    <media>
    
  • C
    
    <movie>
    
  • D
    
    <audio>
    
  • A color
  • B size
  • C spanning
  • D alignment
  • A JavaScript
  • B CSS
  • C jQuery
  • D PHP
  • A
    
    <img url=</span>
                                       <span class="correct-option check-span"><i class="fa fa-check-circle" aria-hidden="true"></i></span>
                                      <span class="wrong-option check-span"><i class="fa fa-times-circle" aria-hidden="true"></i></span>
                                    </li>                                                                 <li class="options-list-item" data-qid="4785">
                                      <span class="symbol">B</span>
                                      <span class="option-text"><pre class = "prettyprint"><xmp>
    <img alt=</span>
                                       <span class="correct-option check-span"><i class="fa fa-check-circle" aria-hidden="true"></i></span>
                                        <span class="wrong-option check-span"><i class="fa fa-times-circle" aria-hidden="true"></i></span>
                                    </li>                                                                 <li class="options-list-item" data-qid="4785">
                                      <span class="symbol">C</span>
                                      <span class="option-text"><pre class = "prettyprint"><xmp>
    <img src=</span>
                                       <span class="correct-option check-span"><i class="fa fa-check-circle" aria-hidden="true"></i></span>
                                        <span class="wrong-option check-span"><i class="fa fa-times-circle" aria-hidden="true"></i></span>
                                    </li>                                                                 <li class="options-list-item" data-qid="4785">
                                      <span class="symbol">D</span>
                                      <span class="option-text"><pre class = "prettyprint"><xmp>
    <img link=</span>
                                       <span class="correct-option check-span"><i class="fa fa-check-circle" aria-hidden="true"></i></span>
                                        <span class="wrong-option check-span"><i class="fa fa-times-circle" aria-hidden="true"></i></span>
                                    </li> 
                                     
                                  </ul>
                                </div>
                              
                                                    <span style="display: none" id="correct-option4785">C</span>
                            <div class="gk-answers" id="4785" style="display: none">
                              <span style="padding-left: 0">Answer: </span>
                              <span>C</span>
                              <div class="gk-image">
                                <br>
                              </div>
                              <p><pre class = "prettyprint"><xmp>
    The img> element in HTML is used to introduce an image into an HTML page. The image tag has two properties (src and Alt).
    The Src property specifies the image path.
    -> The Alt property is used to define the image's alternate text.
    

  • A SGMT
  • B SGML
  • C SGMe
  • D XHTML
  • A
    
    <p>
    
  • B
    
    <pre>
    
  • C
    
    <hr>
    
  • D
    
    <a>
    
  • A .html
  • B .ht
  • C .hl
  • D .hml
  • A frameborder
  • B src
  • C width
  • D height
  • A id
  • B article
  • C class
  • D type
  • A Mini data
  • B Micro data
  • C Macro data
  • D Modify data
  • A
      <iframe >  
  • B
      <frame >  
  • C
      <small >  
  • D
      <a>  
  • A
    
    <p>
    
  • B
    
    <i>
    
  • C
    
    <b>
    
  • D
    
    <li>
    
  • A
    
    \
    
  • B
    
    !
    
  • C
    
    /
    
  • D
    
    .
    
  • A
    
    <ul>
    
  • B
    
    <b>
    
  • C
    
    <i>
    
  • D
    
    <a>
    
  • A
    
    <marquee bg color: "red">
    
  • B
    
    <marquee bg-color = "red">
    
  • C
    
    <marquee bgcolor = "red">
    
  • D
    
    <marquee color = "red">
    
  • A A format tag.
  • B An empty tag.
  • C All of the above
  • D None of the above
  • A
     <i> 
  • B
    <ul>  
  • C
    <u>  
  • D
    <pre>   
  • A
    
    <input type = "checkbox">
    
  • B
    
    <input type = "button">
    
  • C
    
    <checkbox>
    
  • D
    
    <input type = "check">
    
  • A
    
    <a href = "mailto: xy@y">
    
  • B
    
    <a href = "xy@y">
    
    
  • C
    
    
    <mail xy@y</mail>
    
  • D
    
    None of the above
    
  • A
    
    <data>
    
  • B
    
    <table>
    
  • C
    
    <group>
    
    
  • D
    
    All of the above
    
  • A
    
    <body background = "img.png">
    
  • B
    
    <img background = "img.png">
    
  • C
    
    <bg-image = "img.png">
    
  • D None of the above
  • A disc, square, triangle
  • B polygon, triangle, circle
  • C disc, circle, square
  • D All of the above
  • A
    
    <ol alpha= "a">
    
  • B
    
    <ol type = "a">
    
  • C
    
    <ol letter= "a">
    
  • D
    
    <ol class= "a">
    
  • A case-sensitive
  • B in upper case
  • C not case sensitive
  • D in lowercase
  • A
    
    <body>
    
  • B
    
    <head>
    
    
  • C
    
    <title>
    
    
  • D
    
    <html>
    
  • A
    
    <!DOCTYPE html>
    
  • B
    
    <DOCTYPE>
    
  • C
    
    <!DOCTYPE >
    
  • D
    
    <DOCTYPE html>
    
  • A document tag
  • B container tag
  • C comment tag
  • D none of the above
  • A To make a horizontal rule between sections
  • B To make a line break between sections
  • C To provide a vertical division between portions.
  • D Italics are used to make material appear bold.
  • A
    
    <select>
    
  • B
    
    <textarea>
    
  • C
    
    <input>
    
  • D
    
    <hr>
    
  • A provides url
  • B contains author contact information
  • C contains home address
  • D contains IP address