HTML Mcqs
HTML Mcqs
HTML Mcqs
a. IP address
b. domain name
c. URL
d. user name
a. The content that displays in the browser is contained in the head section.
b. The content that displays in the browser is contained in the body section.
a. IP
b. TCP
c. HTIP
d. FTP
a. <area> </area>
b. <div> </div>
c. <cite> </cite>
d. <strong> </strong>
a. <hl> </hl>
b. <h9> </h9>
d. <h6> </h6>
6. Which tag configures the following text or element to display on a new line?
a. <new line>
b. <nl>
c. <br>
d. <line>
a. <para> </para>
b. <paragraph> </paragraph>
c. <p> </p>
d. <body> </body>
a. center
b. left
c. right
9. Which type of HTML list will automatically number the items for you ?
a. numbered list
b. ordered list
c. unordered list
d. description list
a. <br>
b. <hl>
b. <hr>
a. <line>
11. Which tag pair contains the items in an ordered or unordered list?
a. <item> </item>
b. <li> </li>
c. <dd> </dd>
b. The W3C Markup Validation Service lists syntax errors in a web page.
a. <link> tag
b. <a> tag
c. <hyperlink> tag
d. <body > ta g
a. always
d. never
a. automatically sends you an e-mail message with the visitor's e-mail address as the reply-to
field
b. launches the default e-mail application for the visitor's browser with your e-mail address as
the recipient
c. displays your e-mail address so that the visitor can send you a message later
d. links to your mail server
16. How would you configure a hyperlink from the index.html file to another file named
products.html that is located in the same folder?
d. <a>Products</a>
17. Which attribute ca n be applied to an anchor tag to open a link in a new browser window?
a. window
b. rel
c. target
d. media
a. id
b. fragment
c. identifier
d. bookmark
20. Which attribute identifies the name and location of the file to access when a hyperlink is
clicked?
a. window
b. rel
c. href
d. media
22. Which of the following is influenced by the intended or target audience of a site?
23. Which of the following recommended design practices applies to a website that uses images
for its main site navigation?
a. provide alternative text for the images
c. both a and b
c. both a and b
25. Which of the following should you do when creating text hyperlinks?
b. a class name
c. an id name
a. bgcolor
b. color
c. background- color
28. Which type of CSS is coded in the body of the web page as an attribute of an HTML tag?
a. embedded
b. external
c. inline
d. imported
29. Which of the following associates a web page with an external style sheet?
30. Which of the following configures a CSS class called news with red text (#FFOOOO) and
light gray background (#EAEAEA)?
a. ess
b. htm
c. css
32. Where do you place the code to associate a web page with an external style sheet?
33. Which of the following configures a background color of #FFF8DC for a web page using
CSS?
b. <span>
b. <division>
a. <head>
35. Which property and value are used to configure an unordered list item with a square list
marker?
a. list-bullet: none;
c. list-style-image: square;
36. Which of the following creates an image link to the index.html page when the home.gif
graphic is clicked?
37. Why should you include height and width attributes on an <img> tag?
b. They help the browser render the page faster because it reserves the appropriate space for
the image.
c. They help the browser display the image in its own window.
d. none of the above
38. Which attribute specifies text that is available to browsers and other user agents that do not
support graphics?
a. alt
b. src
c. text
39. What is the term used to describe a square icon that is associated with a web page and is
displayed in the browser address bar or tab?
a. background
b. favicon
c. bookmark icon
d. logo
a. GIF
b. photo
c. BMP
d. JPEG
41. Which of the following configures a graphic to repeat vertically down the side of a web
page?
a. background-repeat: repeat- x;
b. background-repeat: repeat;
c. valign= "left”
a. background- color
b. favicon
c. bgcolor
d. background- image
a. font - face
b. font - family
c. face
d. size
a. font - face
b. font-weight
c. font-style
d. font-size
b. font-weight
c. font-style
d. font- size
46. Which configures a class called news with red text, large font, and AriaI or a sans-serif font
using CSS?
b. .news {color: red; font-size: large; font- family: Arial, sans- serif;}
47. Which of the following will configure padding that is 15 pixels on the top, 0 pixels on the
left and right, and 5 pixels on the bottom?
48. Which of the following is used along with the width property to configure centered page
content?
a. center
b. align
c. text - align
d. text – center
50. Which of the following will config ure a border that is 5 pixels wide, the color #330000, and
a solid line?
51. Which of the following is an HTML5 element used to indicate tangential content?
a. header
b. nav
c. sidebar
d. aside
52. Which of the following pseudo-classes is the default state for a hyperlink that has already
been clicked?
a. :hover
b. :onclick
c. :link
d. :visited
53. Which of the following is used to change the location of an element slightly in relation to
where it would otherwise appear on the page?
a. relative positioning
c. absolute positioning
54. Which of the following configures a class called nav to float to the left?
55. Which HTML attribute specifies the distance between the edges of each cell ?
a. cellpad
b. cellspacing
c. cellpadding
d. cellborder
56. Which HTML attribute specifies the distance between the cell text and the cell border?
a. cellpad
b. cellpadding
c. cellspacing
d. cellborder
57. Which HTML tag pair is used to group rows in the footer of a tab le?
a. <footer> </footer>
b. <tr> </tr>
c. <tfoot> </tfoot>
58. Which HTML element uses a border attribute to display a table with a border?
a. <td>
b. <table>
c. <tr>
d. <tableborder>
a. <td> </td>
b. <head> </head>
c. <th> </th>
d. <tr> </tr>
60. Which CSS property replaces the use of the cell padding attribute?
a. cell-padding
b. padding
c. border-spacing
61. Which HTML tag pair is used to begin and end a table row?
a. <td> </td>
b. <tr> </tr>
c. <table> </table>
62. Which of the following is the intended use of tables on web pages?
b. organizing information
c. forming hyperlinks
d. configuring a resume
a. background
b. bgcolor
c. background- color
64. Which HTML attribute associates a table data cell with a table header cell?
a. head
b. align
c. headers
d. rowspan
65. Which attribute of the <form> tag is used to specify the name and location of the script that
will process the form field values?
a. action
b. method
c. process
d. id
66. Forms contain various types of …………. such as text boxes and buttons, that accept
information from a web page visitor.
a. hidden elements
b. form controls
c. labels
d. legends
67. Choose the tag that would configure a text box with the name "city" and a width of 40
characters.
68. Which of the following form controls would be appropriate for an area that your visitors can
use to type in their e-mail address?
a. select list
c. text box
69. You would like to conduct a survey and ask your web page visitors to vote for their favorite
search engine. Which of the following form controls is best to use for this purpose?
a. check box
b. text box
c. radio button
70. What will happen when a browser encounters a new HTMLS form control that it does not
support?
71. Which tag would configure a scrolling text box with the name comments, two rows, and
thirty characters?
72. Choose the item that would associate a label displaying the text E-mail: with the text box
named email.
c. <label for= " email" >E - mail </label> <input type= "text" name="email" id =" email">
d. both b and c
73. Which property provides a way for you to rotate, scale, skew, or move an element?
a. display
b. transition
c. transform
d. list- style- type
74. In which of the following sections of a web page should meta tags be placed?
a. head
b. comment
c. body