Web MCQ
Web MCQ
Web MCQ
A. Robert Cailliau
B. Tim Thompson
C. Charles Darwin
D. Tim Berners-Lee
A. Scripting Language
B. Programming Language
C. Markup Language
D. Network Protocol
3. What should be the first tag in any HTML document?
A. <head>
B. <title>
C. <html>
D. <document>
A. <dl>
B. <ol>
C. <list>
D. <ul>
5. HTML uses________.
9. What is WordPress?
A. Power Point
B. Excel
C. Dream Weaver
D. IDM
A. WordPress
B. Drupal
C. Magento
D. ASP
A. Hostgator
B. Blue Host
C. WPX Hosting
D. Facebook
A. bgcolor
B. color
C. background-color
D. All of the above
20. The CSS property used to control the element's font-size is ______.
A. text-style
B. text-size
C. font-size
D. None of the above
21. The HTML attribute used to define the inline styles is _______.
A. style
B. styles
C. class
D. None of the above
22. The HTML attribute used to define the internal stylesheet is _______.
A. <style>
B. style
C. <link>
D. <script>
23. Which of the following CSS property is used to set the background
image of an element?
A. background-attachment
B. background-image
C. background-color
D. None of the above
24. Which of the following property is used as the shorthand property for
the padding properties?
A. padding-left
B. padding-right
C. padding
D. All of the above
25. The CSS declaration used to make the text bold is _______.
A. font-weight: bold
B. weight: bold
C. font: bold
D. style: bold
A. Yes
B. No
C. Can't say
D. May be
A. margin-left
B. margin-right
C. margin
D. None of the above
28. The CSS property used to specify the transparency of an element is ___.
A. opacity
B. filter
C. visibility
D. overlay
29. Apart from <b> tag, what other tag makes text bold?
A. <bold>
B. <strong>
C. <black>
D. <emp>
30. If we want to define style for a unique element, then which CSS selector
will we use?
A. Id
B. text
C. class
D. name
31. If we want to wrap a block of text around an image, which CSS property
will we use?
A. wrap
B. push
C. float
D. Align
A. James Gosling
B. Mark Jukervich
C. Dennis Ritchie
D. Mark Otto and Jacob Thornton
A. .container-fixed
B. .container-fluid
C. .container
D. All of the above
34. The correct syntax of creating a standard navigation bar is _____.
35. Which program is used by web clients to view the web pages?
A. Web browser
B. Protocol
C. Web server
D. Search Engine
36. What is the name of the location address of the hypertext documents?
37. Which tag is used to display text in title bar of a web document?
A. Body tag
B. Meta tag
C. Title tag
D. Comment tag
A. <h5>
B. <h9>
C. <h10>
D. <h1>
A. <U>
B. <u>
C. <underline>
D. <Underline>
41. Which attribute is used for showing an alternative text if the image fails
to load?
A. alt
B. Alt
C. ALT
D. Alternative
A. btn
B. button
C. BTN
D. Button
A. <Link>
B. <link>
C. <rel>
D. <LINK>
45. The bootstrap-5 grid system is based on how many columns?
A. 10
B. 12
C. 8
D. 6
A. .card-header
B. .card-head
C. .card-footer
D. .card-heading
A. #idName
B. .idName
C. idName
D. id
A. Information Provider
B. Internet Provider
C. Internet Protocol
D. Information Protocol
A. Browser
B. Internet
C. WWW
D. Web site
50. What is the correct HTML tag for inserting a line break?
A. <br>
B. <lb>
C. <break>
D. <newline>
51. title tag is nested within the ______ tag.
A. Body
B. Head
C. List
D. Table
A. <em>
B. <i>
C. <italic>
D. <emphasize>
A. /
B. <
C. *
D. ^
A. <table><tr><td>
B. <table><head><tfoot>
C. <thead><body><tr>
D. <table><tr><tt>
57. What is the correct HTML for making a checkbox?
A. <input type="checkbox">
B. <check>
C. <checkbox>
D. <input type="check">
58. What is the correct HTML for making a text input field?
A. <input type="text">
B. <input type="textfield">
C. <textinput type="text">
D. <textfield>
A. <input type="dropdown">
B. <input type="list">
C. <list>
D. <select>
A. <textarea>
B. <input type="textbox">
C. <input type="textarea">
D. <input style="textarea">
A. <body style="background-image:url(background.gif)">
B. <background img="background.gif">
C. <body bg="background.gif">
D. <background image="background.gif">
63. An <iframe> is used to display a web page within a web page.
A. True
B. There is no such thing as an <iframe>
C. False
A. <title>
B. <meta>
C. <head>
D. <heading>
65. Which HTML attribute specifies an alternate text for an image, if the
image cannot be displayed?
A. alt
B. title
C. src
D. longdesc
A. <!DOCTYPE html>
B. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN"
"http://www.w3.org/TR/html5/strict.dtd">
C. <!DOCTYPE HTML5>
D. <!DOCTYPE HTML NEW>
A. <footer>
B. <bottom>
C. <section>
D. <sitefooter>
68. What is the correct HTML element for playing video files?
A. <video>
B. <media>
C. <movie>
D. <webvid>
69. What is the correct HTML element for playing audio files?
A. <audio>
B. <sound>
C. <mp3>
D. <webaudio>
A. Event attributes
B. Style attributes
C. HTML elements
D. On demand attributes
A. HTML
B. CSS
C. XML
D. PHP
A. draw graphics
B. manipulate data in MySQL
C. display database records
D. create draggable elements
73. In HTML, which attribute is used to specify that an input field must be
filled out?
A. required
B. validate
C. placeholder
D. formvalidate
A. <range>
B. <measure>
C. <meter> Correct answer
D. <gauge>
A. <nav>
B. <navigation>
C. <navigate>
D. <navmenu>
A. <header>
B. <top>
C. <section>
D. <head>
A. /* this is a comment */
B. ' this is a comment
C. // this is a comment
D. // this is a comment //
82. How do you add a background color for all <h1> elements?
A. h1 {background-color:#FFFFFF;}
B. h1.all {background-color:#FFFFFF;}
C. all.h1 {background-color:#FFFFFF;}
D. #all.h1 {background-color:#FFFFFF;}
83. Which CSS property controls the text size?
A. font-size
B. text-size
C. font-style
D. text-style
84. What is the correct CSS syntax for making all the <p> elements bold?
A. p {font-weight:bold;}
B. p {text-size:bold;}
C. <p style="text-size:bold;">
D. <p style="font-size:bold;">
A. a {text-decoration:none;}
B. a {underline:none;}
C. a {text-decoration:no-underline;}
D. a {decoration:no-underline;}
86. How do you make each word in a text start with a capital letter?
A. text-transform:capitalize
B. You can't do that with CSS
C. transform:capitalize
D. text-style:capitalize
A. font-family
B. font-weight
C. font-style
D. font-change
88. How do you make a list that lists its items with squares?
A. list-style-type: square;
B. list-type: square;
C. list: square;
D. square: list;
89. How do you select all p elements inside a div element?
A. div p
B. div + p
C. div.p
D. div#p
A. .text-warning
B. .bg-warning
C. .txt-warning
D. .txt-orange
A. .table-striped
B. .table-zebra
C. .even and .odd
D. .table-bordered
A. .img-rounded
B. .img-round
C. .rounded-circle
D. .img-circle
A. .btn-group
B. .button-group
C. .group-button
D. .group-btn
95. Which button class is used to create a large button?
A. .btn-large
B. .btn-l2
C. .btn-l
D. .btn-lg
A. .badge
B. .label-badge
C. .badge-label
D. .badge-item
A. .pagination
B. .navigation
C. .pages
D. .page
A. .dropdown
B. .select
C. .dropdown-list
D. .dropdown-menu
A. Carousel
B. Slideshow
C. Orbit
D. Scrollspy
A. .text-uppercase
B. .ucase
C. .uppercase
D. .text-capitalize