Test Series - html

Test Number 33/72

Q: How many standard color names does HTML supports?
A. 120
B. 130
C. 140
D. 90
Solution: 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.
Q: 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
Solution: 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.
Q: 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
Solution: 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.
Q: Which of the following is not used with text-decoration property?
A. overline
B. underline
C. line-through
D. inline
Solution: 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.
Q: Which works similar to  element?
A. 
B. 
C. 
D. 
Solution:  element shows the importance of text/paragraph between it’s tags.  makes text bolder. A section which is quoted from another source is specified by 
. element indicates emphasis, browser will show the contents of element in italic.

I like dog.

Output: I like dog.
Q: Which works similar to  element?
A. 
B. 
C. 
D. 
Solution: The words written inside  can be said with strong emphasis. Browser shows contents written inside  element in bold.

Dog is an animal.

Output: Dog is an animal.
Q: Which element is used for short quote?
A. 
B. 
C. 
D. 
Solution:  element indicates emphasis, browser will show the contents of  element in italic. A section which is quoted from another source is specified by 
. The defines abbreviation. We used element for shorter quote. Browser put quote around element.

This is a black dog.

Output: This is a “black dog”.
Q: Which element is used for abbreviation or acronym?
A. 
B. 
C. 
D. 
Solution:  element indicates emphasis, browser will show the contents of  element in italic. We used  element for shorter quote. Browser put quote around  element. A section which is quoted from another source is specified by 
. For using, abbreviation or acronym element is helpful. A title element is to be used with abbr.

The Dr. is on the way.

Output: The Dr. is on the way.
Q: What is the work of 
element?
A. contains contact details for author
B. contains IP address
C. contains home address
D. contains url
Solution: The contact details for author of a page is specified by 
attribute. The content is often displayed in italics, e.g.
Sanfoundry
Q: To show deleted text, which element is used?
A. 
B. 
C. 
D. 
Solution:  element shows the importance of text/paragraph between it’s tags.  element indicates emphasis, browser will show the contents of  element in italic.  element shows the content that has been inserted, usually it has underline.  element shows text that has been deleted from, usually it has a line through the content.

This is not for deletion

Output: This is not for deletion.

You Have Score    /10