Q 1. What does the abbreviation HTML stand for?
A. HyperText Markup Language.
B. HighText Markup Language.
C. HyperText Markdown Language.
D. None of the above.Hide
Show Answer
Answer:-A. HyperText Markup Language.Explanation
HTML stands for HyperText Markup Language.Q 2. How many sizes of headers are available in HTML by default?
A. 5
B. 1
C. 3
D. 6
Show Answer
Answer:-D. 6Explanation
6 headers are available in HTML by default ranging from h1 to h6.Q 3. What is the smallest header in HTML by default?
A. h1
B. h2
C. h6
D. h4
Show Answer
Answer:-C. h6Explanation
h6 is the smallest header in HTML by default.Q 4. What are the types of lists available in HTML?
A. Ordered, Unordered Lists.
B. Bulleted, Numbered Lists.
C. Named, Unnamed Lists.
D. None of the above.
Show Answer
Answer:-A. Ordered, Unordered Lists.Explanation
The lists available in HTML are Ordered and Unordered List.Q 5. How to create an ordered list in HTML?
A. <ul>
B. <ol>
C. <href>
D. <b>
Show Answer
Answer:-B.Explanation
An ordered list is created in HTML by using the- tag.
Q 6. HTML files are saved by default with the extension?
A. .html
B. .h
C. .ht
D. None of the above
Show Answer
Answer:-A. .htmlExplanation
HTML files are saved by the .html or .htm extension.Q 7. We enclose HTML tags within?
A. { }
B. < >
C. ! !
D. None of the above
Show Answer
Answer:-B.Explanation
HTML tags are enclosed within according to syntax.Q 8. What is the effect of the <b> tag?
A. It converts the text within it to bold font.
B. It is used to write black-colored font.
C. It is used to change the font size.
D. None of the above.
Show Answer
Answer:-A. It converts the text within it to bold font.Explanation
is used to convert the text within it to bold font.Q 9. Which of the following is correct about HTML?
A. HTML uses User Defined Tags.
B. HTML uses tags defined within the language.
C. Both A and B.
D. None of the above.
Show Answer
Answer:-B. HTML uses tags defined within the language.Explanation
HTML can only use the tags defined within the language.Q 10. How to display preformatted text in HTML?
A. <p>
B. <pre>
C. <hr>
D. All of the above
Show Answer
Answer:-B.Explanation
Explanation:-tags is used to handle preformatted text in HTML.
Q 11. Which of the following tags doesn’t require a closing tag?
A. <br>
B. <hr>
C. Both A and B
D. None of the above
Show Answer
Answer:-B.Explanation
Explanation:- Both theand the
tag doesn’t require a closing tag.
Q 12. What is meant by an empty tag in HTML?
A. There is no such concept of an empty tag in HTML
B. An empty tag does not require a closing tag
C. An empty tag cannot have any content within it
D. None of the above
Show Answer
Answer:-B. An empty tag does not require a closing tagExplanation
Explanation:- In HTML, empty tags are those tags that don’t require a closing tag for completion.Q 13.What are the attributes used to change the size of an image?
A. Width and height
B. Big and Small
C. Top and bottom
D. None of the above
Show Answer
Answer:-A. Width and heightExplanation
Explanation:- Width and Height attributes are used to change the size of an image.Q 14. Which attribute is used to provide a unique name to an HTML element?
A.class
B. id
C. type
D. None of the above
Show Answer
Answer:-B. idExplanation
Explanation:- An id is used to provide a unique name for an HTML element that can be used to identify it.Q 15. What is the function of the HTML style attribute?
A. It is used to uniquely identify some specific styles of some element.
B. It is used to add styles to an HTML element.
C. Both A and B.
D. None of the above.
Show Answer
Answer:-B.It is used to add styles to an HTML element.Explanation
Explanation:- The HTML style attribute is used to add styles like font, color, and size to an HTML element.Q 16. Which of the following is the correct syntax for using the HTML style attribute?
A. <tagname style = “property: value;”>
B. <tagname style = “property;”>
C. <tagname style >
D. None of the above
Show Answer
Answer:-A.Explanation
Explanation:-The correct syntax for the style attribute is shown in Option A.Q 17. Which HTML element is used to define description data?
A. <li>
B. <ol>
C. <dd>
D. <dl>
Show Answer
Answer:-C.Explanation
Explanation:- Description data is defined byQ 18. Which of the following properties is used to change the font of text?
A. text-align
B. font-family
C. font-size
D. None of the above
Show Answer
Answer:-B. font-familyExplanation
Explanation:- The font-family property is used to change text font in HTMLQ 19. How are quotations defined in HTML?
A. <quote>
B. <block>
C. <blockquote>
D. None of the above
Show Answer
Answer:-C.Explanation
Explanation:- Thetag is used to define a section that is quoted from another source.
Q 20. What tag is used to render an image on a webpage?
A. img
B. src
C. image
D. None of the above
Q 21. Apart from <i> tag, which of the following tag is used to render a text in italics?
Show Answer
Answer:-A. imgExplanation
Explanation:- The img tag is used to display an image on a webpage.A. <strong>
B. <b>
C. <me>
D. <em>
Show Answer
Answer:-D.Explanation
Explanation:- The tag is used to emphasize text, which puts same effect as tag.Q 22. What is the correct syntax to write an HTML comment?
A. <!-- Comment -->
B. // Comment
C. # Comment
D. /* Comment */
Show Answer
Answer:-A.Explanation
Explanation:- The correct syntax of writing an HTML comment is shown in option A.Q 23. Colors are defined in HTML using?
A. RGB Values
B. HEX Values
C. RGBA values
D. All of the above
Show Answer
Answer:-D. All of the aboveExplanation
Explanation:- Colors are defined using RGB, HEX, HSL, RGBA, HSLA values or with predefined color names.Q 24. Which property is used to set colors in HTML?
A. font-color
B. background-color
C. color
D. text-color
Show Answer
Answer:-C. colorExplanation
Explanation:- The color property is used to set and change colors in HTML.Q 25. What are the types of unordered lists in HTML?
A. Triangle, Square, disc.
B. Circle, square, disc.
C. Triangle, Circle, Disc.
D. All of the above.
Show Answer
Answer:-B. Circle, square, disc.Explanation
Explanation:- The unordered lists in HTML can form bullets of form Circle, Square and Disc.Q 26. Which property is used to set border colors in HTML?
A. border
B. border-color
C. Both A and B
D. None of the above
Show Answer
Answer:-A. borderExplanation
Explanation:- The border property is used to change the border properties, including color in HTML.Q 27. Which of the following things are necessary to create an HTML page?
A. A text editor.
B. Web Browser
C. Both A and B
D. None of the above
Show Answer
Answer:-B. Web BrowserExplanation
Explanation:-With a text editor and a web browser we can create an HTML page.Q 28. Which of the following tags is used to indicate the page’s start and endpoints?
A. <body>
B. <doctype>
C. <head>
D. <html>
Show Answer
Answer:-D.Explanation
Explanation:- tag indicates the web browser where a webpage starts and ends.Q 29. Which of the following is true about HTML tags?
A. Are case sensitive
B. Are not case sensitive
C. Are in uppercase
D. Are in lowercase
Show Answer
Answer:-B. Are not case sensitiveExplanation
Explanation:- HTML tags are not case-sensitive in nature.Q 30. Which HTML tag is called the root element of an HTML document?
A. <html>
B. <body>
C. <title>
D. <head>
Show Answer
Answer:-A.Explanation
Explanation:- The tag is the root element of an HTML document, which means that it contains all the contents and tags of the HTML document within it.Q 31. How is black color represented in terms of RGB values?
A. RGB(100, 0, 0)
B. RGB(100, 100, 100)
C. RGB(100, 100, 0)
D. RGB(0, 0, 0)
Show Answer
Answer:-D. RGB(0, 0, 0)Explanation
Explanation:- RCB(0, 0, 0) is equivalent to black color in terms of RGB values.Q 32. What does the Alpha value in RGBA represent?
A. Opacity value for a color.
B. The shade of a color.
C. Both A and B.
D. None of the above
Show Answer
Answer:-A. Opacity value for a color.Explanation
Explanation:- A in RGBA represents the value of the Alpha Channel which is a measure of the Opacity of a color.Q 33. What does the Alpha value of 0.0 represent?
A. Fully Opaque.
B. Fully Transparent.
C. 50% transparent.
D. None of the above.
Show Answer
Answer:-B. Fully Transparent.Explanation
Explanation:- The Alpha value varies between 0.0 (fully transparent) to 1.0(fully opaque).Q 34. How to set a font for a whole page?
A. <targetfont>
B. <defaultfont>
C. <font>
D. None of the above
Show Answer
Answer:-B.Explanation
Explanation:- tag is used to set up a default font type for a whole page.Q 35. The CSS inside HTML elements used alongside style attribute is called?
A. External CSS
B. Inline CSS
C. Internal CSS
D. None of the above
Show Answer
Answer:-B. Inline CSSExplanation
Explanation:- The CSS used alongside the style attribute with HTML elements is called Inline CSS.Q 36. Which of the following colors contain equal amounts of RBG?
A. Black
B. White
C. Gray
D. All of the above
Show Answer
Answer:-D. All of the aboveExplanation
Explanation:- Gray is RGB(50, 50, 50), White is RGB(100, 100, 100) and Black is RGB(0, 0, 0).Q 37. What is the speciality about the <small> and <big> tags in HTML?
A. They work on anything.
B. They can be used for text only.
C. They can be repeated.
D. None of the above.
Show Answer
Answer:-C. They can be repeated.Explanation
Explanation:- The tags can be repeated and their effects and stacked on top of each other.Q 38. Which of the following tags is used to add a row to a table in HTML?
A. <tr>
B. <td>
C. <th>
D. None of the above
Show Answer
Answer:-A.Explanation
Explanation:-Q 39. Which property allows an image link to show a text label?
A. str
B. alt
C. alternative
D. None of the above
Show Answer
Answer:-B. altExplanation
Explanation:- The alt property allows an image link to show a text label.Q 40. If a background image is smaller than the screen on which it is being displayed, what will occur on the webpage?
A. The blank space will be shown in black.
B. The image will be stretched
C. The image will be repeated
D. The image won’t be displayedHide
Show Answer
Answer:-C. The image will be repeatedExplanation
Explanation:- By default on most screens, if the background image is smaller than the screen on which it is being displayed, the image will be repeated.Q 41. What are the properties of block-level elements?
A. It always starts on a new line.
B. It always takes the full width available.
C. It has a top and bottom margin.
D. All of the above.
Show Answer
Answer:-D. All of the above.Explanation
Explanation:- All the above properties are valid properties of block-level elements.Q 42. Which of the following are examples of block-level elements in HTML?
A. <div>
B. <p>
C. <h1>
D. All of the above
Show Answer
Answer:-D. All of the aboveExplanation
Explanation:- All the above examples satisfy the properties in Prob. 41 and hence are block-level elementsQ 43. How many characters can be written in 1KB?
A. 1048
B. 1024
C. 1000
D. None of the above
Show Answer
Answer:-B. 1024Explanation
Explanation:- 1024 characters can be written in a file of size 1KB.Q 44. What are some valid character sets available?
A. UTF-8
B. ANSI
C. ASCII
D. All of the above
Show Answer
Answer:-D. All of the aboveExplanation
Explanation:- All of the above options are examples of valid character sets.Q 45. The default value of the BORDER attribute is?
A. 8pixel
B. 2pixel
C. 4pixel
D. 1pixel
Show Answer
Answer:-D. 1pixelExplanation
1pixel is the default value for the BORDER attribute in HTML.Q 46. What are those objects called which are used for storing data on the client provided by the HTML local storage?
A. Windows.localStorage
B. Window.sessionStorage
C. Both A and B
D. None of the above
Show Answer
Answer:-B. Window.sessionStorageExplanation
Such objects with the property mentioned above are called as Windows.localStorage or Window.sessionStorage.Q 47. The most basic part of any HTML page is?
A. Text
B. Binary Text
C. ASCII Text
D. None of the above
Show Answer
Answer:- C. ASCII TextExplanation
ASCII Text comprises the most basic part of any HTML page, as it is the simplest character set a webpage can use.Q 48. What is the select tag used for?
A. Change text font.
B. Select some attributes and change their style.
C. Creates a combo box.
D. None of the above.
Show Answer
Answer:-C. Creates a combo box.Explanation
A HTML combo box is created using the select tag.Q 49. What are the main components of the front end of any working website?
A. HTML, CSS, Javascript.
B. HTML only.
C. Javascript only.
D. Node.js.
Show Answer
Answer:-A. HTML, CSS, Javascript.Explanation
HTML, CSS, and Javascript combined to form the basic components of any working website’s frontend.Q 50. Which HTML tag is used to set up a Java script-like client-side scripting language?
A. <select>
B. <script>
C. <anchor>
D. None of the above
Show Answer
Answer:-B.Explanation
tag is used for the purpose of setting up a client-side scripting language.by
Comments
You cannot copy content of this page
Leave a Reply