HTML Font MCQ Questions and Answers

HTML Font MCQ Questions and Answers here provide HTML MCQ Questions and Answers on Font. you can learn and practice multiple choice questions with answers.

HTML Font MCQ Questions and Answers

1. How many standard color names does HTML supports?

A. 120
B. 130
C. 140
D. 90
Answer: C
Explanation: In HTML one can use a color name to specify a color e.g. Tomato, Orange, DodgerBlue, MediumSeaGreen, Gray, SlateBlue, Violet, LightGray etc. For colored fonts, we used text-decoration property to set the color of the text.

2. Which of the following is not set with font-style property?

A. font-style: normal
B. font-style: italic
C. font-style: oblique
D. font-style: capitalize
Answer: D
Explanation: Text-transform: capitalize, capitalizes the first letter of each word whereas font-style set font as normal, italic, oblique. We use text-transform: uppercase and text-transform: lowercase to change the text from lowercase to uppercase and from uppercase to lowercase respectively.

3. What should be set with text-align property so that every line has equal width like in magazines and newspapers?

A. text-align: justify
B. text-align: none
C. text-align: bottom
D. text-align: top
Answer: A
Explanation: By setting text-align property to “justify”, each line is stretched so that every line has equal width, left and right margins are straight like in magazines and newspapers. Text-align: center, text-align: right, text-align: left is also used for aligning the text at center, right and left respectively.

4. Which of the following is not used with text-decoration property?

A. overline
B. underline
C. line-through
D. inline
Answer: D
Explanation: overline, underline, line-through properties are used to decorate the text.

Syntax:
h1{text-decoration: line-through; },
h2 {text-decoration: overline ;},
h3{text-decoration: underline;}

it will produce headings h1 with text having line-through, h2 with text having overline and h3 with text having underline.

5. Which works similar to <i> element?

A. <strong>
B. <em>
C. <b>
D. <blockquote>
Answer: B
Explanation: <strong> element shows the importance of text/paragraph between it’s tags. <b></b> makes text bolder. A section which is quoted from another source is specified by <blockquote>. <em> element indicates emphasis, browser will show the contents of <em> element in italic.

<p>I <em>like</em> dog.</p>

I like dog.

6. Which works similar to <b> element?

A. <strong>
B. <em>
C. <i>
D. <blockquote>
Answer: A
Explanation: The words written inside <strong> can be said with strong emphasis. Browser shows contents written inside <strong> element in bold.

<p><strong>Dog is</strong> an animal.</p>

Dog is an animal.

7. Which element is used for short quote?

A. <q>
B. <blockquote>
C. <em>
D. <abbr>
Answer: a
Explanation: <em> element indicates emphasis, browser will show the contents of <em> element in italic. A section which is quoted from another source is specified by <blockquote>. The <abbr> defines abbreviation. We used <q> element for shorter quote. Browser put quote around <q> element.

8. Which element is used for abbreviation or acronym?

A. <em>
B. <q>
C. <abbr>
D. <blockquote>
Answer: C
Explanation: <em> element indicates emphasis, browser will show the contents of <em> element in italic. We used <q> element for shorter quote. Browser put quote around <q> element. A section which is quoted from another source is specified by <blockquote>. For using, abbreviation or acronym <abbr> element is helpful. A title element is to be used with abbr.

<p>The <abbr title=”Doctor”>Dr.</abbr> is on the way.</p>

The Dr. is on the way.

9. What is the work of <address> element?

A. contains contact details for author
B. contains IP address
C. contains home address
D. contains url
Answer: a
Explanation: The contact details for author of a page is specified by <address> attribute. The content is often displayed in italics,
e.g.

<address>
<a href="mailto:study2online1@gmail.com">Study2Online</a>
</address>
Study2Online

10. To show deleted text, which element is used?

A. <ins>
B. <del>
C. <em>
D. <strong>
Answer: B
Explanation: <strong> element shows the importance of text/paragraph between it’s tags. <em> element indicates emphasis, browser will show the contents of <em> element in italic. <ins> element shows the content that has been inserted, usually it has underline. <del> element shows text that has been deleted from, usually it has a line through the content.

<p>This is <del>not</del> for deletion </p>

This is not for deletion

11. Which element is used to show inserted element?

A. <ins>
B. <del>
C. <strong>
D. <em>
Answer: A
Explanation: <del> element shows text that has been deleted from, usually it has a line through the content. <strong> element shows the importance of text/paragraph between it’s tags. <em> element indicates emphasis, browser will show the contents of <em> element in italic. <ins> element shows the content that has been inserted, usually it has underline.

<p>This is the <ins>inserted </ins> element.</p>

This is the inserted element.

12. How <bdo> element works?

A. override text direction
B. stops writing in the current text direction
C. only override direction of rtl text
D. only changes the direction of ltr text
Answer: A
Explanation: For bidirectional override of current text direction, we used <bdo> element, e.g. <bdo dir=”rtl”>Text is right to left</bdo>. This element was already there before HTML5. It is supported by all the browsers.

13. Which property is similar to C/C++ can be applied to comments?
A. for loop
B. while loop
C. ifelse
D. switch case
Answer: C
Explanation: We can add conditional comments in our web page using if and endif, e.g. <!–[if age 9]>..text….<![endif] – >, there is no provision of “for” or “while” loop in HTML, same apply with switch case also.

14. Which element defines a title of the Work?

A. <abbr>
B. <cite>
C. <address>
D. <blockquote>
Answer: B
Explanation: For using, abbreviation or acronym <abbr> element is helpful. The contact details for author of a page is specified by <address> attribute. A section which is quoted from another source is specified by <blockquote>. The tittle of a Work is defined by <cite> elements, usually it displays in italics.

<p><cite>Hamlet</cite> by William Shakespeare</p>

Hamlet by William Shakespeare

15. For smaller text which element is used?

A. <tiny>
B. <min>
C. <small>
D. <em>
Answer: C
Explanation: min is an attribute for input method for inserting minimum value. smaller text is define by <small>element. <em> is used for emphasis usually it is display in italics.

<p>This is text in <small>small</small>.</p>

This is text in small.

Be the first to comment

Leave a Reply

Your email address will not be published.


*