0% found this document useful (0 votes)
12 views9 pages

HTML Basics: Key Tags and Attributes

The document contains a series of multiple-choice questions and answers related to HTML, covering topics such as tags, attributes, and document structure. It includes questions on the purpose of specific tags, the correct usage of attributes, and the basics of HTML formatting. Additionally, it provides definitions for various HTML-related terms and concepts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views9 pages

HTML Basics: Key Tags and Attributes

The document contains a series of multiple-choice questions and answers related to HTML, covering topics such as tags, attributes, and document structure. It includes questions on the purpose of specific tags, the correct usage of attributes, and the basics of HTML formatting. Additionally, it provides definitions for various HTML-related terms and concepts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1. HTML stands for?

A.​ Hyper Text Markup Language


B.​ High Text Markup Language
C.​ Hyper Tabular Markup Language
D.​ None of these​
Answer A ​
2. which of the following tag is used to mark a begining of paragraph ?
A.​ <TD>
B.​ <br>
C.​ <P>
D.​ <TR>​
Answer C

3: From which tag descriptive list starts ?
A.​ <LL>
B.​ <DD>
C.​ <DL>
D.​ <DS>
Answer C
4: Correct HTML tag for the largest heading is
A.​ <head>
B.​ <h6>
C.​ <heading>
D.​ <h1> ​
Answer D ​
5: The attribute of <form> tag

A.​ Method
B.​ Action
C.​ Both (a)&(b)
D.​ None of these​
Answer C
6: Markup tags tell the web browser

A.​ How to organise the page


B.​ How to display the page
C.​ How to display message box on page
D.​ None of these​
Answer B

7: www is based on which model?

A.​ Local-server
B.​ Client-server
C.​ 3-tier
D.​ None of these ​
Answer B

8: What are Empty elements and is it valid?

A.​ No, there is no such terms as Empty Element


B.​ Empty elements are element with no data
C.​ No, it is not valid to use Empty Element
D.​ None of these​
Answer B

9: Which of the following attributes of text box control allow to limit the maximum character?

A.​ size
B.​ len
C.​ maxlength
D.​ all of these​
Answer C

10: Web pages starts with which ofthe following tag?

A.​ <Body>
B.​ <Title>
C.​ <HTML>
D.​ <Form>​
Answer C

11: HTML is a subset of

A.​ SGMT
B.​ SGML
C.​ SGMD
D.​ None of these​
Answer B

12: Which of the following is a container?

A.​ <SELECT>
B.​ <BODY>
C.​ <INPUT>
D.​ Both (a) and (b)​
Answer D

13: The attribute, which define the relationship between current document and HREF'ed
URL is

A.​ REL
B.​ URL
C.​ REV
D.​ all of these​
Answer A

14: <DT> tag is designed to fit a single line of our web page but <DD> tag will accept a

A.​ line of text


B.​ full paragraph
C.​ word
D.​ request​
Answer B

15: Character encoding is

A.​ method used to represent numbers in a character


B.​ method used to represent character in a number
C.​ a system that consists of a code which pairs each character with a pattern,sequence
of natural numbers or electrical pulse in order to transmit the data
D.​ none of these​
Answer C

16. A webpage displays a picture. Whattag was used to display that picture?
A.​ picture
B.​ image
C.​ img
D.​ src
Answer C

17. <b> tag makes the enclosed text bold. What is other tag to make text bold?
a. <strong>
b. <dar>
c. <black>
d. <emp>
Answer A

18. Tags and text that are not directly displayed on the page are written in _____ section.
a. <html>
b. <head>
c. <title>
d. <body>

Answer b

19. Which tag inserts a line horizontally on your web page?


a. <hr>
b. <line>
c. <line direction="horizontal">
d. <tr>
Answer a

20. What should be the first tag in any HTML document?


a. <head>
b. <title>
c. <html>
d. <document>
Answer c

21. Which of the following is not a pair tag?


a. <p>
b. < u >
c. <i>
d. <img>
Answer d

22. To create HTML document you requirea


a. web page editing software
b. High powered computer
c. Just a notepad can be used
d. None of above
Answer c

23. The special formatting codes in HTML document used to present contentare
a. tags
b. attributes
c. values
d. None of above
Answer a

24. Some tags enclose the text. Those tags are known as
a. Couple tags
b. Single tags
c. Double tags
d. Pair tags
Answer d

25. The _____ character tells browsers to stop tagging the text
a. ?
b. /
c. >
d. %
Answer b

26. In HTML document the tags


a. Should be written in upper case
b. should be written in lower case
c. should be written in propercase
d. can be written in both uppercase or lowercase
Answer d

27. Marquee is a tag in HTML to


a. mark the list of items to maintaininqueue
b. Mark the text so that it is hidden in browser
c. Display text with scrolling effect
d. None of above
Answer c

28. There are ____ different of heading tags in HTML


a. 4
b. 5
c. 6
d. 7
Answer c

29. To create a blank line in your web page


a. press Enter two times
b. press Shift + Enter
c. insert <BR> tag
d. insert <BLINE>
Answer c

30. Which of the following is not a style tag?


a. <b>
b. <tt>
c. <i>
d. All of above are style tags
Answer d

31. The way the browser displays the object can be modified by _____
a. attributes
b. parameters
c. modifiers
d. None of above
Answer a

32. Which of the following HTML code is valid?


a. <font colour="red">
b. <font color="red">
c. <red><font>
d. All of above are style tags
Answer b

33. Which of the following is an attribute related to font tag?


a. size
b. face
c. color
d. All of above are style tags
Answer d

34. HTML supports


a. ordered lists
b. unordered lists
c. both type of lists
d. does not support those types
Answer c

35. What tag is used to list individual items of an ordered list?


a. LI
b. OL
c. UL
d. None of above
Answer a

36. When should you use path along with file name of picture in IMG tag?
a. path is optional and not necessary
b. when the location of image file andhtml file are different
c. when image file and html file both are on same location
d. path is always necessary when inserting image
Answer b

37. Which of the following is not a valid alignment attribute?


a. Left
b. Right
c. Top
d. All of above
Answer c

38. Which attribute is used with img tag to display the text if image could not load in
browser?
a. description
b. name
c. alt
d. id
Answer c

39. Which attribute can be used with BODY tag to set background color green?
a. background="green"
b. bgcolor="green"
c. vlink="green"
d. None of above
Answer b

40. Which attribute you’ll use with TD tag to merge two cells horizontally?
a. merge=colspan2
b. rowspan=2
c. colspan=2
d. merge=row2
Answer c

41. Awebpage displays a picture. What tag was used to display that picture?
a. picture
[Link]
[Link]
d. src
Answer c

42. <b> tag makes the enclosed text bold. What is other tag to make text bold?
a. <strong>
b. <dar>
c. <black>
d. <emp>
Answer a

43. Tags and test that are not directly displayed on the page are written in _____ section.
a. <html>
b. <head>
c. <title>
d. <body>
Answer b

44. Which tag inserts a line horizontally on your web page?


a. <hr>
b. <line>
c. <line direction="horizontal">
d. <tr>
Answer a

45. What should be the first tag in any HTML document?


a. <head>
b. <title>
c. <html>
d. <document>
Answer c

46. Which tag allows you to add a row in a table?


a. <td> and </td>
b. <cr> and </cr>
c. <th> and </th>
d. <tr> and </tr>
Answer d
47. How can you make a bulleted list?
a. <list>
b. <nl>
c. <ul>
d. <ol>
Answer c

48. How can you make a numbered list?


a. <dl>
b. <ol>
c. <list>
d. <ul>
Answer b

49. How can you make an e-mail link?


a. <a href="xxx@yyy ">
b. <mail href="xxx@yyy ">
c. <mail>xxx@yyy </mail>
d. <a href="[Link] ">
Answer d

50. What is the correct HTML for making a hyperlink?


a. <a href="[Link] Sets Quiz</a>
b. <a name="[Link] Sets Quiz</a>
c. <[Link]
d. url="[Link] Sets Quiz
Answer a

Expand the following

HTML - hypertext markup language


DHTML - dynamic hypertext markup language
XML - extensible markup language
SGML - standard generalized markup language
<B> - bold
<I> - italic
<U> - underline
<TT> - typewriter
<SUB> - subscript
<SUP> super script
<OL> order list
<UL> unordered list
<DL> definition list
<DOCTYPE> - document type
<TR> - table row
<TD> - table data
<TH> - table heading

You might also like