• Home
  • Courses
  • School
  • Programs
  • Problems
  • Contact Us
  • My account
  • Register

Have any question?

(+91) 98222 16647
info@simplycoding.in
RegisterLogin
Simply Coding
  • Home
  • Courses
  • School
  • Programs
  • Problems
  • Contact Us
  • My account
  • Register

Web Designing

HTML Tables Question Bank

  • Categories Web Designing, HTML, HTML

This post contains 1 mark questions on the topic of HTML Tables in the form of MCQs, fill in the blanks and true or false statements.

Multiple Choice Questions:

  1. Which of these tags belong to table?
    1. <thead>,<body>,<tr>
    2. <table>,<head>,<tfoot>
    3. <table>,<tr>,<td>
    4. <table>,<tr>,<tt>

Ans. 3

  1. Which of the following tags gives a caption to the table?
    1. <caption>
    2. <head>
    3. <heading>
    4. None of these

Ans. 1

  1. Which of the following is used to specify the beginning of a table’s row?
    1. <td>
    2. <tr>
    3. <row>
    4. <tt>

Ans. 2

  1. HTML tag for row is
    1. <colspan>
    2. <tr>
    3. <rowspan>
    4. <td>

Ans. 2

  1. Which tag is used to add columns in the tables?
    1. <colspan>
    2. <td>
    3. <tr>
    4. None of these

Ans. 2

  1. This tag is used to specify the individual table data in a table.
    1. <tr>
    2. <td>
    3. <th>
    4. <table>

Ans. 2

  1. In order to add border to a table, border attribute is specified in which tag?
    1. <th>
    2. <table>
    3. <td>
    4. <tr>

Ans. 2

  1. The attribute used to set the border color of a table is
    1. border
    2. bordercolor
    3. color
    4. border color

Ans. 2

  1. Which of the following is an attribute of < table > tag?
    1. src
    2. cellpadding
    3. link
    4. bold

Ans. 2

  1. Which one of the following is not an option for aligning data in a table?
    1. justify
    2. right
    3. left
    4. center

Ans. 1

  1. Which attribute of the < table > tag is used to set an image in the background of a table?
    1. bgcolor
    2. background
    3. frame
    4. rules

Ans. 2

  1. The attribute used to specify the background cofor of a table is
    1. background
    2. bgtable
    3. color
    4. bgcolor

Ans. 4

  1. The two common attributes of the <img> and the <table> tag are
    1. src and height
    2. height and width
    3. border and src
    4. they do not have any common attributes

Ans. 2

  1. border, frame, cellspacing, cellpadding, align are the attributes of
    1. Body
    2. Head
    3. Table
    4. None of these

Ans. 3

  1. Which of the following is not an attribute of < table > tag?
    1. border
    2. background
    3. bgcolor
    4. src

Ans. 4

  1. In the <td> tag, td stands for
    1. Table Data
    2. Table Definition
    3. Table Design
    4. None of these

Ans. 1

  1. What is the correct HTML code to left align the content inside a table cell?
    1. <td valign = “left”>
    2. <td align = “left”>
    3. <td left align>
    4. <td left>

Ans. 2

  1. Choose the correct HTML code to right align the content inside a table cell.
    1. <td align = “right”>
    2. <td valign = “right”>
    3. <td right=”align”>
    4. None of the above

Ans. 1

  1. Combining two or more cells in a table on a Web page is called
    1. merging
    2. spanning
    3. combining
    4. None of these

Ans. 2

  1. Which attribute tells, how many rows a cell should span?
    1. colspan
    2. rowspan
    3. Both (a) and (b)
    4. None of these

Ans. 2

  1. rowspan can be added to which tag?
    1. <hr>
    2. <table>
    3. <td>
    4. <tr>

Ans. 3

  1. Which attribute of <td> tag is used to merge two or more columns to form a single column?
    1. colspan
    2. cellspacing
    3. cellpadding
    4. rowspan

Ans. 1

  1. colspan can be added to which tag?
    1. <hr>
    2. <table>
    3. <td>
    4. <tr>

Ans. 3

  1. Which attribute helps to align data vertically in a single cell.
    1. align
    2. valign
    3. halign
    4. format

Ans. 2

  1. To add rows to a table we use __________ tag .
    1. <TD>        
    2. <TROW>
    3. <TR>       
    4. <ROW>

Ans. 3

  1. _________ tag  is used to speciy the rows in a table.     
    1. <TR>              
    2. <TD>            
    3. <TH>         
    4. <TABLE>

Ans. 1

  1. The tag to create a table is __________
    1. <table>            
    2. <caption>             
    3. <td>
    4. <tr>

Ans. 1

  1. What tag is used to add columns to table ?
    1. <th>
    2. <td>    
    3. <tr>
    4. <tc>

Ans. 2

  1. Which of the following is not an attribute of the <Table >tag
    1. BGCOLOR
    2. WIDTH
    3. BORDER
    4. SRC

Ans. 4

  1. The _________ Tag is used to specify the table heading cell
    1. <TR>
    2. <TD>
    3. <TH>
    4. <TABLE>

Ans. 3

State whether the following statements are true or false:

  1. A cell is an intersection of a row and a column.

Ans.  True

  1. The cellpadding attribute is used with <td> tag.

Ans.  False 

  1. <caption> is placed just above the <table> tag.

Ans.  False

  1. <td> will make the text bold.

Ans.  False

  1. The border is an attribute of <a> tag.

Ans.  False

  1. The default value of border attribute is 1.

Ans.  False

  1. The cols value in the rules attribute, allows you to display table border only between columns.

Ans.  True 

  1. The cellspacing attribute tells the browser how much space to include between the walls of the table.

Ans.  False

  1. <caption> tag gives heading to a Web page.

Ans.  False

  1. cellpadding attribute is used with <body> tag.

Ans.  False

  1. The rowspan attribute with < table > tag is used to merge more than one cells row wise.

Ans.  True

  1. The rowspan attribute is used to make a cell span multiple columns.

Ans.  False

  1. The align and valign are the attributes used with <td> tag to set the alignment of data in a cell.

Ans.  True

  1. The <td> tag (column setting) have higher priority than <tr> tag (row setting).

Ans. True

  1. Table row <tr> tag can accept one attribute.

Ans.  False

  1. <th>‘tag is used to specify the column heading in a table.

Ans.  True

  1. ROWSPAN attribute with <table > tag is used merge more than one cell row wise

Ans.  True

  1. Align and valign are the attributes used with <TD> tag to set the alignment of data in a table.

Ans.  True

  1. <TR> tag is used to specify the individual row in a table

Ans.  True


Fill in the blanks:

  1. To insert a table on a Web page, we use  __________ tag.

Ans. <table>

  1. The tag to start a table is __________

Ans. <table>

  1. _________ tag is used to insert data into a table.

Ans <td>

  1. The __________ attribute is used to display a specific portion of a table border.

Ans. frame

  1. frame attribute is used with _________ attribute.

Ans. border

  1. In the rules attribute, the ________ value helps to display a table border only between rows.

Ans. rows

  1. Cellspacing is used to create space between different _________ in a table.

Ans. cells

  1. The _________ is an attribute of the < table > tag to set the distance between the cell content and its boundary.

Ans. cellpadding

  1. To set image as background of an HTML table, you can use __________ attribute.

Ans. background

  1. By default, color of a table is __________

Ans. white

  1. The height and width attributes of < table > tag are specified in terms of _________ or percentage.

Ans. pixels

  1. <td> tag can only be present inside _________

Ans. <tr>

  1. The _________ attributes is used to combine the cells vertically.

Ans. rowspan

  1. The __________ attribute is used to span two or more columns in a table.

Ans. colspan

  1. The __________ attribute is used to align the data vertically within cells.

Ans. valign

  1. The <tr> tag can only be present inside _________tag.

Ans. table

  1. The <thead> tag is used to specify the _________ part of the table.

Ans. head

  1. _________ altribute is used to span two or more column in a table

Ans. colspan

  1. An _________ link allows a link to another section on the same web page

Ans. Internal

  1. __________ is used to combine the cells vertically .      

Ans. Cellpadding

  1. __________ is an attribute of the <table > tag to set the minimum distance between two adjacent cells     

Ans. Cellspacing 

  1. __________ tag is used to create a table row.

Ans. TR

  1. The _________ tag is used to specify the individual table data in a table              

Ans. <TD>

  1. IN HTML while creation a table, we can use HTML background altribute with __________ tag

Ans. <TR>

 

  • Share:
author avatar
Simply Coding

Previous post

HTML Formatting Tags Question Bank
October 29, 2020

Next post

HTML Image Tag Question Bank
October 29, 2020

You may also like

HTML Table tags
HTML Table Tags
14 June, 2021
HTML List
HTML List Tags
14 June, 2021
Audio and Video tag in HTML
HTML Audio and Video tags
14 June, 2021

Leave A Reply Cancel reply

You must be logged in to post a comment.

Categories

  • Uncategorized
  • Programs
    • Python
    • Java
  • Problems
    • Python
    • Java
    • Web Development
      • Internet
    • Emerging Technologies
  • Notes
    • General
    • QBasic
    • MS Access
    • Web Development
      • XML
      • HTML
      • JavaScript
      • Internet
    • Database
    • Logo Programming
    • Scratch
    • Emerging Trends
      • Artificial Intelligence
      • Internet of Things
      • Cloud Computing
      • Machine Learning
    • Computer Fundamentals
      • Computer Networks
      • E-Services
      • Computer Hardware
    • Python
    • Java
  • School
    • ICSE
      • Computers Class 9
        • Java Introduction
        • Tokens & Data Types
        • Java Operators
        • Math Library
        • if & switch
        • For & While
        • Nested loops
      • Computer Class 10
        • Sample Papers
        • OOPS concepts
        • Functions in Java
        • Constructors
        • Arrays in Java
        • Strings in Java
    • SSC
      • IT Class 11
        • IT Basics
        • DBMS
        • Web Designing
        • Cyber Laws
      • IT Class 12
        • Web Designing
        • SEO
        • Advanced JavaScript
        • Emerging Tech
        • Server Side Scripting
        • E-Com & E-Gov
      • Computer Science 11
      • Computer Science 12
    • CBSE
      • Computer 9
        • Basics of IT
        • Cyber Safety
        • Scratch
        • Python
      • Computer 10
        • Sample Papers
        • Networking
        • HTML
        • Cyber Ethics
        • Scratch
        • Python
      • Computer Science 11
        • Computer Systems
        • Python 11
          • Python Basics
          • Python Tokens
          • Python Operators
          • Python if-else
          • Python loops
          • Python Strings
          • Python List
          • Python Tuple
          • Python Dictionary
          • Python Modules
        • Data Management
      • Computer Science 12
        • Sample Papers
        • Python 12
          • Python Functions
          • Python File Handling
          • Python Libraries
          • Python Recursion
          • Data Structures
        • Computer Networks
        • Data Management
    • ISC
      • Computer Science 11
        • Introduction to Java
        • Values & Data Types
        • Operators
        • if & switch
        • Iterative Statements
        • Functions
        • Arrays
        • String
        • Data Structures
        • Cyber Ethics
      • Computer Science 12
        • Sample Papers
        • Boolean Algebra
        • OOPS
        • Wrapper Classes
        • Functions
        • Arrays
        • String
Simply Coding Computer Courses for School                Privacy Policy     Terms of Use     Contact Us

© 2021 Simply Coding

Login with your site account

Lost your password?

Not a member yet? Register now

Register a new account

Are you a member? Login now