MCQ

HTML/CSS MCQs – Multiple Choice Questions and Answers – Part 7

Multiple choice questions and answers (MCQs) on HTML/CSS to prepare for exams, tests, and certifications. These questions are taken from a real written exam and some parts are taken from an interview. So you will find questions on basic techniques such as tags, web standards, CSS selector, objects, and more. This quiz will easily prepare anyone to pass their online test.
 

1. Which attribute can be used with the <table> tag to give your table a border?

A line

B border

C margin-left border

D All the answers are true

B
Example : <table border="1">

 

 
 

2. Which element has very similar properties to the DIV element?

A strong

B span

C table

D All the answers are true

B
The difference between span and div is that the span element is usually used for a small piece of code in a line, while the div element is a block and used to group together large pieces of code. Example:
<div id = "myDiv">
       <p> Lorem <span class = "paper"> ipsum </span> </p>
</div>
 

3. What is the alternative to the <b> tag, to make the text bold?

A <bold>

B <strong>

C <i>

D <emp>

B

 

 

4. What HTML stand for __________?

A HyperText Markup Language

B Hyper Teach Markup Language

C Hyper Tech Markup Language

D None of the above

A

 

 
 

5. HTML web pages can be read and rendered by the _________.

A Compiler

B Server

C Web browser

D Interpreter

C

 

 

6. Which of the following is not an attribute of the <form> tag

A action

B method

C name

D url

D

 

 

7. HTML is a subset of ______ ?

A SGML

B SGMD

C SGMT

D None of the above

A
SGML (Standard Generalized Markup Language) is a standard for how to specify a markup language or a set of tags.

 

 

8. Choose the correct HTML tag to render text in italics

A <italic>

B <it>

C <il>

D <i>

D

 

 
 

9. Which tag is used to create a checkbox in HTML?

A <checkbox>

B <input type = "checkbox">

C <check>

D <input type = "checkbox">

B

 

 

10. How to create a link to an email?

A <a href="mailto:xxx@yyy">

B <a href="xxx@yyy">

C Mail>xxx@yyy

D Mail href="xxx@yyy"

A

 

 
 

11. What is the latest version of CSS available?

A CSS2

B CSS3

C CSS3.1

D CSS4

B

 

 

12. Which of the following properties defines the font size of the text?

A text-size

B font-size

C size

D text

B
Example : font-size: 12px;

 

 

13. Which of the following properties defines the spacing between letters?

A space

B line-height

C letter-spacing

D None of the above

C
Example :
h1 {
     letter-spacing: 9px;
}
Output:

Lorem Ipsum

 

mcqMCQPractice competitive and technical Multiple Choice Questions and Answers (MCQs) with simple and logical explanations to prepare for tests and interviews.Read More

One thought on “HTML/CSS MCQs – Multiple Choice Questions and Answers – Part 7

Leave a Reply

Your email address will not be published. Required fields are marked *