|

Website Building Using HTML-CSS MCQs – Class 11 Web Application (803)

Master Class 11 Web Application (803) with top class Website Building Using HTML-CSS MCQs. Test your knowledge, spot weak areas, and boost your exam score!

One chapter. One goal. Full confidence!🔥Dive into these solved MCQs and sharpen your concepts.💯


Q1. Which of the following best describes a website?
a) A collection of related web pages
b) A software used to write HTML
c) A database containing only images
d) All of above


Q2. A website is identified by a common:
a) Server name
b) Domain name
c) Browser name
d) File name


Q3. Which of the following is NOT a commonly used web browser?
a) Google Chrome
b) Mozilla Firefox
c) Notepad
d) Safari


Q4. A website displays the same content every time a page is loaded. Which type of website is it?
a) Dynamic website
b) Static website
c) Interactive website
d) Database website


Q5. Which type of website can interact with a database?
a) Static website
b) Dynamic website
c) Both
d) None


Q6. Which language forms the core structure of a web page?
a) CSS
b) JavaScript
c) HTML
d) Python


Q7. Which language controls fonts, colours, and layout of a webpage?
a) HTML
b) CSS
c) JavaScript
d) Python


Q8. A developer wants to add animations and dynamic content updates to a webpage. Which language is most suitable?
a) HTML
b) CSS
c) JavaScript
d) XML


Q9. HTML is called a markup language because it:
a) Uses tags to structure and organize text on a webpage
b) Requires compiler and interpreter
c) Writes programs to make a website interactive
d) Stores large amounts of website data


Q10. Who invented the World Wide Web in 1989?
a) Bill Gates
b) Tim Berners-Lee
c) Charles babbage
d) Mark Zuckerberg


Q11. The first publicly available description of HTML was a document called:
a) “HTML Basics”
b) “HTML Tags”
c) “Web Design”
d) “Hypertext Manual”


Q12. HTML has:
a) A compiler
b) An interpreter
c) No compiler or interpreter
d) Both compiler and interpreter


Q13. The correct file extension for an HTML program is:
a) .doc or .txt
b) .htm or .html
c) .css or .js
d) .web or .page


Q14. Which of the following is a web page?
a) A document written in HTML that can be viewed using a browser
b) A collection of unrelated databases
c) A CSS property
d) A programming compiler


Q15. What is the correct general structure of an HTML tag?
a) [TAGNAME]
b) <TAGNAME>
c) {TAGNAME}
d) (TAGNAME)


Q16. Which of the following is a container tag?
a) <BR>
b) <HR>
c) <B>
d) <IMG>


Q17. Which of the following is an empty tag?
a) <HTML>
b) <TITLE>
c) <BR>
d) <BODY>


Q18. Which tag acts as the root/container for all other HTML elements?
a) <BODY>
b) <HEAD>
c) <HTML>
d) <TITLE>


Q19. Which tag contains the main visible content of a webpage?
a) <head>
b) <body>
c) <title>
d) <html>


Q20. Which tag defines the title displayed in the browser title bar?
a) <h1>
b) <head>
c) <title>
d) <caption>


Q21. Which part of an HTML document is not displayed in the browser window?
a) <body>
b) <head>
c) <p>
d) <h1>


Q22. Which declaration identifies an HTML5 document?
a) <html5>
b) <!DOCTYPE html>
c) <doctype>
d) <html version=”5″>


Q23. What is the purpose of the <br> tag?
a) To create a table
b) To move the text to the next line
c) To insert an image
d) To create a hyperlink


Q24. Which attribute is used to set a background color for an HTML page?
a) color
b) bgcolor
c) backcolor
d) style-color


Q25. Which attribute allows a background image to be used on a page?
a) bgimage
b) background
c) imgback
d) src


Q26. How many levels of headings are available in HTML?
a) 4
b) 5
c) 6
d) 8


Q27. Which heading tag produces the largest and boldest text?
a) <H6>
b) <H1>
c) <H4>
d) <H3>


Q28. A student wants to display a heading in the centre of a webpage. Which attribute can be used with the heading tag in the given chapter?
a) align=”center”
b) position=”center”
c) text=”center”
d) heading=”center”


Q29. Which tag is used to display text in bold in the given chapter?
a) <strong>
b) <b>
c) <bold>
d) <em>


Q30. The <font> tag uses which attribute to specify the typeface of text?
a) style
b) face
c) type
d) font-family


Q31. What is the default font size mentioned for the <font> tag?
a) 1
b) 3
c) 5
d) 7


Q32. What is the range of font sizes supported by the <font> tag in the given chapter?
a) 1 to 5
b) 1 to 7
c) 0 to 10
d) 2 to 8


Q33. Which tag is used to display text as superscript?
a) <sub>
b) <sup>
c) <super>
d) <up>


Q34. Which tag is commonly used for writing chemical formulas like H₂O?
a) <sup>
b) <sub>
c) <chem>
d) <index>


Q35. Which tag is used to insert a comment in HTML?
a) <!– comment –>
b) /* comment */
c) // comment
d) <comment>


Q36. Comments in HTML source code are:
a) Displayed on the webpage
b) Not interpreted or displayed by the browser
c) Always bold
d) Shown as tooltips


Q37. Which statement about HTML comments is correct?
a) They are interpreted by the browser
b) They affect the appearance of the webpage
c) They are ignored by the browser
d) They must be placed only inside <body>


Q38. Which tag is used to insert an image into an HTML document?
a) <picture>
b) <image>
c) <img>
d) <src>


Q39. Which attribute of <img> specifies the image path or URL?
a) href
b) src
c) path
d) url


Q40. A webpage should display alternative text when an image cannot be loaded. Which attribute should be used?
a) title
b) alt
c) text
d) caption


Q41. Which attribute displays a tooltip when the user hovers over an image?
a) alt
b) title
c) tooltip
d) hover


Q42. A student wants to display an image with a width of 130 pixels. Which attribute should be used?
a) size
b) height
c) width
d) length


Q43. Which of the following is the correct purpose of the alt attribute?
a) To define the image URL
b) To provide alternative text for an image
c) To set the image height
d) To create an image border


Q44. Which tag is used to create an ordered list?
a) <ul>
b) <ol>
c) <dl>
d) <li>


Q45. Which tag is used to create an unordered list?
a) <ol>
b) <ul>
c) <dl>
d) <list>


Q46. Which tag defines an individual item in an ordered or unordered list?
a) <item>
b) <li>
c) <dt>
d) <dd>


Q47. A student wants to display a list of steps that must be followed in sequence. Which list should be used?
a) Unordered list
b) Ordered list
c) Description list
d) Table


Q48. By default, an ordered list starts with:
a) 0
b) 1
c) A
d) I


Q49. Which tag defines the entire description list?
a) <ul>
b) <ol>
c) <dl>
d) <list>


Q50. Which tag defines a term in a description list?
a) <dd>
b) <dt>
c) <li>
d) <term>


Q51. Which tag defines the description of a term in a description list?
a) <dt>
b) <dd>
c) <desc>
d) <def>


Q52. Which list is most suitable for displaying items that do not have a specific order?
a) Ordered list
b) Unordered list
c) Description list
d) Table


Q53. Which bullet style is represented by type=”square” in an unordered list?
a) Hollow circle
b) Solid box
c) Number
d) Uppercase letter


Q54. A student wants to display a list of festivals along with their descriptions. Which HTML list is most suitable?
a) Ordered list
b) Unordered list
c) Description list
d) Nested list


Q55. Which tag is used to create a table in HTML?
a) <tab>
b) <table>
c) <tr>
d) <td>


Q56. Which tag is used to create a row in a table?
a) <td>
b) <th>
c) <tr>
d) <row>


Q57. Which tag is used to define a table heading?
a) <td>
b) <th>
c) <tr>
d) <head>


Q58. Which tag is used to define a table data cell?
a) <td>
b) <th>
c) <tr>
d) <data>


Q59. Which attribute is used to create space between different cells of a table?
a) cellpadding
b) cellspacing
c) spacing
d) border-spacing


Q60. Which attribute controls the space between the cell contents and the cell wall?
a) cellspacing
b) cellpadding
c) margin
d) padding-cell


Q61. A table has a cell containing a heading that must cover three rows. Which attribute should be used?
a) colspan=”3″
b) rowspan=”3″
c) span=”3″
d) rows=”3″


Q62. A table has a heading that must cover three columns. Which attribute should be used?
a) rowspan=”3″
b) colspan=”3″
c) columns=”3″
d) span=”3″


Q63. Which attribute specifies the horizontal alignment of cell contents?
a) valign
b) align
c) horizontal
d) text-position


Q64. Which attribute specifies the vertical alignment of cell contents?
a) align
b) valign
c) vertical
d) position


Q65. Which of the following is a valid value of the valign attribute?
a) center
b) middle
c) right
d) justify


Q66. A student wants to display lines between table cells. Which attribute should be used?
a) border
b) line
c) cell-line
d) grid


Q67. Which tag is used to group sections of a webpage together as a block element?
a) <span>
b) <div>
c) <section>
d) <group>


Q68. Which tag is an inline element used to highlight part of a paragraph?
a) <div>
b) <span>
c) <p>
d) <mark>


Q69. Hyperlinks in HTML are created using which tag?
a) <link>
b) <href>
c) <a>
d) <url>


Q70. Which attribute of the <a> tag specifies the destination URL?
a) src
b) href
c) link
d) target


Q71. Which value of the target attribute opens a link in a new tab?
a) _self
b) _parent
c) _blank
d) _top


Q72. Which value of the target attribute is the default behavior of a link?
a) _blank
b) _self
c) _parent
d) _top


Q73. A link specifying the full URL including protocol and domain name is called:
a) Relative link
b) Absolute link
c) Internal link
d) Anchor link


Q74. Internal linking within the same page uses which symbol before the reference name?
a) @
b) #
c) &
d) %


Q75. Which of the following can also act as a hyperlink besides text?
a) Only paragraph
b) Only heading
c) An image
d) Only table


Q76. Which tag is used to embed audio content in a webpage?
a) <sound>
b) <audio>
c) <media>
d) <track>


Q77. Which attribute adds play/pause/volume controls to audio and video?
a) play
b) controls
c) media
d) enable


Q78. Which tag specifies an alternative audio or video source/format?
a) <alt>
b) <source>
c) <format>
d) <track>


Q79. Which attribute starts audio/video playback automatically?
a) auto
b) autoplay
c) start
d) run


Q80. Which attribute starts audio/video playback without sound?
a) silent
b) mute
c) muted
d) nosound


Q81. Which of the following is an absolute link?
a) href=”about.html”
b) href=”https://www.example.com/page.html”
c) href=”#about”
d) href=”page.html”


Q82. Which of the following is a relative link?
a) href=”https://www.example.com/page.html”
b) href=”about.html”
c) href=”https://www.cbse.nic.in”
d) href=”http://swayam.edu/”


Q83. A student wants to jump to a section within the same webpage. Which symbol is used in the link?
a) @
b) #
c) $
d) %


Q84. Which attribute is assigned to a section to identify it for internal linking?
a) href
b) id
c) name
d) target


Q85. Which statement about hyperlinks is correct?
a) Only text can be a hyperlink
b) An image can also be used as a hyperlink
c) Hyperlinks cannot point to files
d) Hyperlinks are created using the <img> tag


Q86. Which of the following is the correct syntax for a hyperlink?
a) <a src=”url”>Text</a>
b) <a href=”url”>Text</a>
c) <link href=”url”>Text</link>
d) <href=”url”>Text</href>


Q87. Which tag is used to create a form in HTML?
a) <input>
b) <form>
c) <fieldset>
d) <submit>


Q88. Which attribute specifies the URL where form data is sent?
a) method
b) action
c) target
d) submit


Q89. Which method submits form data as URL variables?
a) post
b) get
c) send
d) url


Q90. Which input type masks the entered characters?
a) text
b) password
c) email
d) hidden


Q91. Which input type allows a user to select multiple options?
a) radio
b) checkbox
c) password
d) text


Q92. Which tag creates a multi-line text input field?
a) <input type=”text”>
b) <textarea>
c) <multitext>
d) <longtext>


Q93. CSS stands for:
a) Creative Style Sheets
b) Cascading Style Sheets
c) Colorful Style Sheets
d) Computer Style Sheets


Q94. CSS is mainly used for:
a) Structuring content
b) Creating a unique style/design for a website
c) Server communication
d) Database management


Q95. Which of the following is an advantage of CSS?
a) Slower loading times
b) Faster loading times
c) No responsiveness
d) Difficult updates


Q96. How many ways are there to implement CSS?
a) Two
b) Three
c) Four
d) Five


Q97. Which method of CSS uses a separate .css file linked to the HTML document?
a) Inline CSS
b) Internal CSS
c) External CSS
d) Embedded CSS


Q98. Which tag is used to link an external CSS file?
a) <style>
b) <script>
c) <link>
d) <css>


Q99. Internal CSS is defined inside which tag?
a) <link>
b) <style>
c) <css>
d) <head only>


Q100. Inline CSS is applied using which attribute?
a) class
b) style
c) css
d) format


Q101. Which type of CSS has the highest priority when multiple styles conflict?
a) External CSS
b) Internal CSS
c) Inline CSS
d) Browser default


Q102. Between external and internal style sheets, which one takes priority if both are defined?
a) The one that comes first in the head section
b) The one that comes later in the head section
c) External always wins
d) Internal always wins


Q103. CSS comments start with which symbol combination?
a) //
b) /*
c) <!–
d) ##


Q104. Which CSS property specifies horizontal alignment of text?
a) text-indent
b) text-align
c) text-transform
d) line-height


Similar Posts

Leave a Reply

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