Q1. Markup tags tell the web browser:
A. How to organize the page
B. How to display the page
C. How to display message box on page
D. None of these
Q2. Which attribute is used for body background color?
A. bgcolor
B. background
C. back color
D. None of the above
Q3. Marquee tag is used for:
A. To scroll piece of text or image
B. Mark the list of items
C. To hide the text
D. None of the above
Q4. How to read and render an HTML page?
A. Through Web server
B. Through Web network
C. Through Web browser
D. Through Web matrix
Q5. Correct HTML tag to left align content inside a table cell:
A. <tdleft>
B. <td ralign="left">
C. <td align="left">
D. <td leftalign>
Q6. <INPUT> is:
A. format tag
B. empty tag
C. Both (A) & (B)
D. None of the above
Q7. Text inside <TEXTAREA> works like:
A. <P> formatted text
B. <T> formatted text
C. <PRE> formatted text
D. None of these
Q8. HTML tag used for superscript text:
A. <sup>
B. <superscript>
C. <S>
D. <superscripted>
Q9. Tag used for inserting the largest heading in HTML:
A. <h3>
B. <h6>
C. <h2>
D. <h1>
Q10. Which of the following is a container tag?
A. <SELECT>
B. <BODY>
C. <INPUT>
D. Both (A) & (B)
Q11. Attribute of text box control to limit maximum characters:
A. size
B. len
C. maxlength
D. all of the above
Q12. Character encoding is:
A. Method to represent numbers in a character
B. Method to represent character in a number
C. A system pairing each character with a pattern or pulse
D. None of these
Q13. Better approach to establish base URL:
A. BASE element
B. HEAD element
C. Both (A) & (B)
D. None of these
Q14. Tag to create a new list item and include hyperlink:
A. <LI>
B. <DL>
C. <DD>
D. <UL>
Q15. Which is not a heading tag in HTML?
A. <h1>
B. <h6>
C. <h3>
D. <h0>
Q16. <DT> fits a single line, but <DD> accepts:
A. Line of text
B. Full paragraph
C. Word
D. Request
Q17. Tag to create hypertext relationship between documents:
A. <LINK>
B. <STYLE>
C. <HEAD>
D. <LIST>
Q18. Which is not a semantic element?
A. <form>
B. <article>
C. <table>
D. <span>
Q19. Tag to create a PUSH button:
A. RESET
B. RADIO
C. INPUT
D. CHECKBOX
Q20. HTML5 is:
A. HTML + CSS3 + JavaScript APIs
B. HTML + CSS1 + JavaScript APIs
C. HTML + JavaScript APIs
D. HTML + CSS2
Q21. How to create a checkbox in HTML?
A. <input type="checkbox">
B. <input type="button">
C. <checkbox>
D. <input type="check">
Q22. Colors are defined in HTML using:
A. RGB values
B. Hex values
C. RGBA values
D. All of the above
Q23. Tag to create a number/ordered list:
A. <LI>
B. <UL>
C. <OL>
D. None of these
Q24. HTML metadata is present in:
A. <HEAD>
B. <TITLE>
C. <BODY>
D. <FORM>
Q25. DTDs are:
A. Part of namespaces
B. Document Type Declarations in XML
C. Template creation method
D. None of these
Q26. Well-formed XML document means:
A. Contains a root element
B. Contains an element
C. Contains one or more elements
D. Must contain root and all other elements
Q27. Which of the following are <style> tag(s)?
A. <b<
B. <tt<
C. <i<
D. All
Q28. Tag allowing nesting of other HTML tags within description:
A. <TR>
B. <TD>
C. <TH>
D. <CAPTION>
Q29. How does "for" attribute of label link input box?
A. Set "name" attribute same as "for"
B. Set "value" attribute same as "for"
C. Set "id" attribute same as "for"
D. All of the above
Q30. Tag to show image from parent folder's 'image' folder:
A. <img src="pic.img">
B. <img src="../pic.img">
C. <img src="../image/pic.img">
D. <img src="image/pic.img">
Q31. All HTML tags are enclosed in:
A. # and #
B. < and >
C. ? and !
D. { and }
Q32. Tag to create a combo box (drop-down):
A. <select>
B. <list>
C. <input type="dropdown">
D. All
Q33. Tag to insert a line-break in HTML:
A. <br>
B. <break>
C. <newline>
D. <b>
Q34. How to open a link in a new browser window/tab?
A. <a href="url" target="new">
B. <a href="url" target="_blank">
C. <a href="url".new>
D. <a href="url" target="open">
Q35. Correct HTML tag for smallest heading:
A. <head>
B. <heading>
C. <h6>
D. <h1>
Q36. Properties of block-level elements:
A. Starts on a new line
B. Takes full width
C. Has top and bottom margin
D. All of the above
Q37. Main container for <TR>, <TD>, and <TH> is:
A. <TABLE>
B. <CAPTION>
C. <HEADER>
D. None of these
Q38. <TR> tag is used for:
A. Table Row
B. Table Records
C. Table Heading
D. Row Heading
Q39. Text within <STRONG> tag is displayed as:
A. Indented
B. Italic
C. List
D. Bold
Q40. <TD> tag is used for:
A. Table Row
B. Table Records
C. Table Heading
D. Row Heading
Q41. When is table content shown?
A. Before border loads
B. After table is loaded
C. In pieces as it loads
D. None of these
Q42. Purpose of markup language:
A. Add hypertext capabilities
B. Enhance the document
C. Define elements within a document
D. All of the above
Q43. Attribute that defines URL when using <iframe>:
A. src
B. href
C. style
D. title
Q44. Correct syntax to change paragraph text using DOM object 'params':
A. params.value = "Updated Text";
B. params.content = "Updated Text";
C. params.nodeValue = "Updated Text";
D. params.firstChild.nodeValue = "Updated Text";
Q45. 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
Q46. What is meant by an empty tag in HTML?
A. No such concept in HTML
B. Does not require a closing tag
C. Cannot have any content
D. None of the above
Q47. In <img> tag, what does "img.png" inside quotes imply?
A. Element
B. Attribute
C. Value
D. Operator
Q48. Attributes used to change image size:
A. Width and height
B. Big and Small
C. Top and Bottom
D. None of the above
Q49. Which entity provides multiple spaces between texts?
A.
B.  
C.  
D. All of the above
Q50. Apart from <i>, which tag renders text in italics?
A. <em>
B. <strong>
C. <b>
D. None of these