Q: How many standard color names does HTML supports?
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?
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?
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?
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?
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?
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?
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 usedelement for shorter quote. Browser put quote aroundelement.This is a
Output: This is a “black dog”.black dog.
Q: Which element is used for abbreviation or acronym?
Solution: element indicates emphasis, browser will show the contents of element in italic. We usedelement for shorter quote. Browser put quote aroundelement. 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?
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?
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
Output: This is not for deletion.notfor deletion
You Have Score    | /10 |