0% found this document useful (0 votes)
23 views

Web

Uploaded by

mansyamr870
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)
23 views

Web

Uploaded by

mansyamr870
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
You are on page 1/ 29

1-HTML stands for __________

a) HyperText Markup Language


b) HyperText Machine Language
c) HyperText Marking Language
d) HighText Marking Language

2-Which of the following tag is used for inserting the largest heading in HTML?
a) head
b) <h1>
c) <h6>
d) heading

3-Which element is used to get highlighted text in HTML5?


a) <u>
b) <mark>
c) <highlight>
d) <b>

4-How do we write comments in HTML5?


a) </…….>
b) <!……>
c) </……/>
d) <…….!>

5-Which of the following elements in HTML5 defines video or movie content?


a) <video>
b) <movie>
c) <audio>
d) <media>

6-Which of the following is not the element associated with the HTML table layout?
a) alignment
b) color
c) size
d) spanning

7-Which element is used for or styling HTML5 layout?


a) CSS
b) jQuery
c) JavaScript
d) PHP
8-What is the tag used for making character appearance bold?
a) <u>content</u>
b) <b>content</b>
c) <br>content</br>
d) <i>content</i

9-Which HTML tag is used to insert an image?


a) <img url=” htmllogo.jpg” />
b) <img alt=” htmllogo.jpg” />
c) <img src=” htmllogo.jpg” />
d) <img link=” htmllogo.jpg” />

10-Which character is used to represent when a tag is closed in HTML?


a) #
b)!
c) /
d) \

11- Which of the following HTML code will make an image clickable?
a)

<a href="https://www.sanfoundry.com/">Home Page</a>

b)

<img src="https://www.sanfoundry.com/sanfoundry-logo">
<a href="https://www.sanfoundry.com/">Home Page</a>
</img>

c)

<a href="https://www.sanfoundry.com/">Home Page</a>


<img src="https://www.sanfoundry.com/sanfoundry-logo" />

d)

<a href="https://www.sanfoundry.com/"><img src="https://www.sanfoundry.com/sanfoundry-logo"


/></a>
12-Among the following, which is the HTML paragraph tag?
a) <p>
b) <pre>
c) <hr>
d) <a>

13- Which attribute is used to create a link that opens in a new window tab?
a) src=” _blank”
b) alt=” _blank”
c) target=” _self”
d) target=” _blank”

14- Which element is used for short quote?


a) <em>
b) <abbr>
c) <q>
d) <blockquote>

15- Which of the following tag is used to create an unordered list?


a) <ol>
b) <ul>
c) <li>
d) <ll>

16- Which element is used for abbreviation or acronym?


a) <abbr>
b) <blockquote>
c) <q>
d) <em>

17- Which of the following HTML tag is used to add a row in a table?
a) <th>
b) <td>
c) <tr>
d) <tt>
18- What is the work of <address> element?
a) contains IP address
b) contains home address
c) contains url
d) contains contact details for author

19- Which of the following tag is used to create a text area in HTML Form?
a) <textarea> </textarea>
b) <text></text>
c) <input type=”text” />
d) <input type=” textarea” />

20- To show deleted text, which element is used?


a) <del>
b) <em>
c) <strong>
d) <ins>

21-Which tag is used to create a dropdown in HTML Form?


a) <input>
b) <select>
c) <text>
d) <textarea>

22- Which tag is used to create a numbered list in HTML?


a) <ol>
b) <ul>
c) <li>
d) <ll>

23- How to create a checkbox in HTML Form?


a) <input type=”text”>
b) <input type=” textarea”>
c) <input type=”checkbox”>
d) <input type=”button”>
24- How to insert Hyperlink in HTML Page?
a)

<a href="https://www.sanfoundry.com/">Home Page</a>

b)

<a target="https://www.sanfoundry.com/" Home Page />

c)

<a src="https://www.sanfoundry.com/">Home Page</a>

d)

<a>https://www.sanfoundry.com/</a>

25- Which of the following extension is used to save an HTML file?


a). hl
b) .h
c). htl
d) .html

26 Which tag is used to create a blank line in HTML?


a) <b>
b) <br>
c) <em>
d) <a>

27- Which HTML tag is used to convert the plain text into italic format?
a) <b>
b) <p>
c) <i>
d) <a>

28- What is the use of <hr/> tag?


a) For making content appearance italics
b) To create vertical rule between sections
c) To create a line break
d) To create horizontal rule between sections
29-Which attribute specifies a unique alphanumeric identifier to be associated with an
element?
a) type
b) article
c) id
d) class

30-Which works similar to <b> element?


a) <blockquote>
b) <strong>
c) <em>
d) <i>

31- Which of the following is not example of block element?


a) <h1>
b) <ul>
c) <p>
d) <a>

32-What is the size of content of an <h1> element?


a) Smallest
b) Largest
c) Medium
d) Anything between smallest and largest

33-What is the tag used for making character appearance bold?


a) <b>content</b>
b) <i>content</i>
c) <u>content</u>
d) <br>content</b

34-What is the work of controls?


a) specify the path to an audio file
b) indicates if the player displaying controls
c) audio starts playing automatically
d) play again after finishing the audio
35-What is the work of src?
a) audio starts playing automatically
b) play again after finishing the audio
c) specify the path to an audio file
d) insert more than one audio

36-What is the default type of ‘type’ attribute of <input> element?


a) Text
b) Password
c) Numerals
d) Special Characters

37-Which attribute defines the file-select field?


a) file
b) checkbox
c) button
d) text

38-Which attribute is not used on new forms?


a) size
b) text
c) name
d) maxlength

39-Which element is used to create multi-line text input?


a) text
b) textarea
c) submit
d) radio button

40-Which of the following is not set with font-style property?


a) font-style: normal
b) font-style: italic
c) font-style: oblique
d) font-style: capitalize
41-What should be set with text-align property so that every line has equal width like in
magazines and newspapers?
a) text-align: justify
b) text-align: none
c) text-align: bottom
d) text-align: top

42-Which of the following is not used with text-decoration property?


a) overline
b) underline
c) line-through
d) inline

43- Which element is used to show inserted element?


a) <ins>
b) <del>
c) <strong>
d) <em>

44-How <bdo> element works?


a) override text direction
b) stops writing in the current text direction
c) only override direction of rtl text
d) only changes the direction of ltr text

45-Which element defines a title of the Work?


a) <abbr>
b) <cite>
c) <address>
d) <blockquote>

46-For smaller text which element is used?


a) <tiny>
b) <min>
c) <small>
d) <em>
47-Each cell of the table can be represented by using __________
a) <tr>
b) <td>
c) <th>
d) <thead>

48-For heading we can use ____________


a) <td>
b) <tr>
c) <thead>
d) <th>

49-Which of the following is not the element associated with HTML table layout?
a) size
b) spanning
c) alignment
d) color

50-For adding caption to the table we use ____________


a) <caption>
b) <thead>
c) <th>
d) <tr>

51-border-spacing is given in _____________


a) pixels
b) cm
c) mm
d) inch

52-Which element defines preformatted text?


a) <p>
b) <pre>
c) <hr>
d) <ins>

53-Which element is used for creating links?


a) <a>
b) <p>
c) <li>
d) <ol>
54-Which one of the following is not the value of the target attribute?
a) _blank
b) _top
c) _self
d) _empty

55-What is the path for an image located in same folder as the current page?

a) <img src= “pic.jpg”>


b) <img src= “../pic.jpg”>
c) <img src= “images/pic.jpg”>
d) <img src= “/images/pic.jpg”>

Which tag is used for List items?


a) <li>
b) <ol>
c) <ul>
d) <dl>

Which element contains definition?


a) <dl>
b) <dd>
c) <dt>
d) <ul>

Which of the following can’t be the value of list-style-type?


a) square
b) circle
c) ellipse
d) disc

Which element is restricted to inline content?


a) <dt>
b) <dd>
c) <ul>
d) <dl>
target attribute cannot have?
a) _blank
b) _self
c) _parent
d) _color
56- What is the preferred way for adding a background color in HTML?
a.) <body background="yellow">
b.) <background>yellow</background>
c.) < body style="background-color: yellow">
d.) <background color="yellow">text<background>

57- What is the correct HTML for creating a hyperlink?


a.) <a name="">A</a>
b.) <a>B</a>
c.) <a href="http://www.example.com">example</a>
d.) <a url="http://www.example.com">example</a>
58- How can you open a link in a new browser window?
a.) <a href="url" new>
b.) <a href="url" target="new">
c.) <a href="url" target="_blank">
d.) <a href="url" target="">

59) Which of these tags are all <table> tags?


a.) <table><head><tfoot>
b.) <table><tr><td>
c.) <table><tr><tt>
d.) <thead><body><tr>
60.) Which HTML tag is used to define an internal style sheet?
a.) <script>
b.) <css>
c.) none of them
d.) <style>
61.) Which is the correct CSS syntax?
a.) body: color=black
b.) {body; color: black}
c.) {body: color=black(body}
d.) body {color: black}
62.) How do you change the text color of an element?
a.) text-color=
b.) text-color:
c.) color:
d.) fgcolor:
63.) How do you display hyperlinks without an underline?
a.) a {text-decoration: none}
b.) a {underline: none}
c.) a {text-decoration:no underline}
d.) a {decoration:no underline}
64.) How do you change the font of an element?
a.) font=
b.) f:
c.) font-family:
d.) None of the above
65.) Choose the correct HTML tag for the largest heading
a.) <h6>
b.) <heading>
c.) <head>
d.) <h1>
66.) What is the correct HTML tag for inserting a line break?
a.) <br />
b.) <break />
c.) <lb />
d.) <nbsp>

67.) Can a data cell contain images?


a.) true
b.) false
68.) How do I add scrolling text to my page?
a.) <scroll>
b.) <marquee>
c.) <ciruler>
d.) <tab>
69.) What is the preferred way for adding a background color in HTML?
a.) <body background="yellow">
b.) <background>yellow</background>
c.) < body style="background-color: yellow">
d.) <background color="yellow">text<background>
70.) What is the correct HTML for creating a hyperlink?
a.) <a name="">A</a>
b.) <a>B</a>
c.) <a href="http://www.example.com">example</a>
d.) <a url="http://www.example.com">example</a>
71.) What is the correct HTML for making a checkbox?
a.) <checkbox>
b.) <input type="checkbox" />
c.) <input type="check" />
d.) <check>
72.) What is the correct HTML for making a text input field?
a.) <input type="textfield" />
b.) <textinput type="text" />
c.) <textfield>
d.) <input type="text" />
73.) What is the correct HTML for making a text area?
a.) <input type="textarea" />
b.) <input type="textbox" />
c.) <textarea>
d.) None of this
74.) colspan=n can be added to only what tag?
a.) <table>
b.) <td>
c.) <tr>
d.) <thead>
75.) Which of the following is the HTML tag to start a Heading Level 3?
a.) <H3>
b.) </H3>
c.) <#H3>
d.) <H3/>
76.) What is the correct HTML for referring to an external style sheet?
a.) <style src="mystyle.css">
b.) <stylesheet>mystyle.css
c.) <link rel="stylesheet" type="text/css" href="mystyle.css">
77.) Where in an HTML document is the correct place to refer to an external style
sheet?
a.) At the top of the document
b.) At the end of the document
c.) In the section
d.) In the <head> section
78.) What would be the colors of the RGB where the hexadecimal values are #FF0000,
#00FF00 and #0000FF respectively?
a.) Blue, Green, Red
b.) Green, Blue, Red
c.) Red, Blue, Green
d.) Red, Green, Blue
79.) The elements <DIV> and <SPAN> have the following characteristics
a.) Element <DIV> inherits properties defined for <SPAN> in a stylesheet
b.) Elements <SPAN> and <DIV> define content to be inline or block-level
c.) <DIV> and <SPAN> are used as alternatives for the element <P>
d.) <DIV> is used inside element <P>.
80-The following is a web-page:

<html>
<head> <title>JavaScript </head>
<body bgcolor=""#0000ff"">
<script language=""JavaScript"">
<!-- document.write(""<h1> hello world </h1>""); //-->
</script>
</body>
</html>

When the above web page is loaded into a browser, what will happen?

a.) The body of the web page will not contain any text
b.) The body of the web page will contain the text "hello world"• as an H1 heading
c.) The background color of the web page will be green
d.) document. write("<h1> hello world </h1 >"•); is a comment.
Which property does one use to align text to the right side of a block-level element in
Cascading Style Sheets?
a.) horizontal-align
b.) align
c.) block-align
d.) text-align
The href attribute in the link tag specifies the:
a.) Destination of a link
b.) Link
c.) Hypertext
d.) None of the above
What is cell padding?
a.) Used to separate cell walls from their contents
b.) Used to set space between cells
c.) Both a and b above
d.) Used to provide width to a cell
81-Which of the following elements in HTML5 defines video or movie content?
a) <video>
b) <movie>
c) <audio>
d) <media>

82-Which of the following HTML code will make an image clickable?


a)

<a href="https://www.sanfoundry.com/">Home Page</a>

b)

<img src="https://www.sanfoundry.com/sanfoundry-logo">
<a href="https://www.sanfoundry.com/">Home Page</a>
</img>

c)

<a href="https://www.sanfoundry.com/">Home Page</a>


<img src="https://www.sanfoundry.com/sanfoundry-logo" />

d)

<a href="https://www.sanfoundry.com/"><img src="https://www.sanfoundry.com/sanfoundry-logo"


/></a>

83. Which element is used for abbreviation or acronym?


a) <abbr>
b) <blockquote>
c) <q>
d) <em>

84. Which of the following HTML tag is used to add a row in a table?
a) <th>
b) <td>
c) <tr>
d) <tt>
85. Which tag is used to create a dropdown in HTML Form?
a) <input>
b) <select>
c) <text>
d) <textarea.

86. How to create a checkbox in HTML Form?


a) <input type=”text”>
b) <input type=” textarea”>
c) <input type=” checkbox”>
d) <input type=” button”>

87.How to insert Hyperlink in HTML Page?


a)

<a href="https://www.sanfoundry.com/">Home Page</a>


b)

<a target="https://www.sanfoundry.com/" Home Page />


c)

<a src="https://www.sanfoundry.com/">Home Page</a>


d)

<a>https://www.sanfoundry.com/</a>

88-If you write the following line of code in HTML, what would you see on your final
page?

o A.

The word: "body"

o B.

The word: "html"

o C.

The words: "Tiger Media Online"

o D.

The words: "Thanks for visiting Tiger Media"

E. The word: ""


89- What do you think the tag "em" does to whatever is contained within it?
Remember anything between the opening tag and the closing tag is affected.

o A.

Makes the text disappear on the final page.

o B.

Makes the text italic on the final page.

o C.

Separates the text into a paragraph on the final page.

o D.

Changes the color of the text on the final page.

o E. It does not affect the text.

90-TITLE tag must be within ________

o A.

Title

o B.

Form

o C.

Header

o D.

Body
91-Text within EM tag is displayed as ________

o A.

Bold

o B.

Italic

o C.

List

o D.

Indented

92-Text within STRONG tag is displayed as ________

o A.

Bold

o B.

Italic

o C.

List

o D.

Indented
93-UL Tag is used to ________

o A.

Display the numbered list

o B.

Underline the text

o C.

Display the bulleted list

o D.

Bold the text

94-Which tag is used to display the numbered list?

o A.

OL

o B.

DL

o C.

UL

o D.

LI


95-Using P tag will

o A.

Start a new paragraph

o B.

Break the line

o C.

End the current paragraph

o D.

None of the all

96-TD tag is used for ________

o A.

Table heading

o B.

Table Records

o C.

Table row

o D.

None of the above


97-Which is true to change the text color to red?

o A.

BODY BGCOLOR=RED

o B.

BODY TEXT=RED

o C.

BODY COLOR=RED

o D.

None of the all

98-The code and these < > together are called

o A.

Tags

o B.

Angle brackets

o C.

Less than symbol

o D.

Forward slash


99-Code used with < > to tell the computer you are using HTML

o A.

TITLE

o B.

HTML

o C.

BODY

o D.

HEAD

100-Code used with < > to tell the computer you have stopped using HTML

o A.

/TITLE

o B.

/BODY

o C.

/HEAD

o D.

/HTML


101-These two codes are important, without them, your page would be
completely blank

o A.

HTML & /HTML

o B.

TITLE & /TITLE

o C.

BODY & /BODY

o D.

HEAD & /HEAD


102-To display the title on the title bar, use this code

o A.

TITLE

o B.

HTML

o C.

/HEAD

o D.

BODY


103-Program used to tye in the HTML codes

o A.

Browser

o B.

Text editor

C. Internet Explore

o D.

Source

104-Program used to view Web Pages

o A.

Browser

o B.

Notepad

o C.

Text editor

o D.

Source


105-Tags used to add secret notes in HTML

o A.

Comment

o B.

Heading

o C.

Paragraph

o D.

Body

106-Tags used to change the size of the text

o A.

Body

o B.

Comment

o C.

Heading

o D.

Paragraph


107-"<h1></h1>, <h2></h2>, <h3></h3>"

o A.

Heading

o B.

Comment

o C.

Body

o D.

Paragraph

108-"<p>and</p>"

o A.

Comment

o B.

Source

o C.

Paragraph

o D.

Body
109-"<body> and </body> "
A. Commen.

o B.

Paragraph

o C.

Body

o D.

Heading

110-"<img src=filename>"

o A.

Hyperlink

o B.

Picture

o C.

Bullet list

o D.

Number list


111-"<a href=filename/website> text </a> "

o A.

Hyperlink

o B.

Picture

o C.

Bullet list

o D.

Number list

You might also like