HTML

Question 1

Given below are several usages of the anchor tag in HTML.

Which of the above are valid?

A
1 and 2 only
B
1 and 3 only
C
1, 2 and 3 only
D
1, 2, 3 and 4
Question 1 Explanation: 
Note: Out of syllabus.
Question 2

Consider an XML file called intro.xml and a document type defintion (DTD) file intro.dtd as follows:

A validating parser will classify intro.xml as

A
Well-formed and validated
B
Well-formed but not validated
C
Validated but not well-formed
D
Neither validated nor well-formed
Question 2 Explanation: 
Note: Out of syllabus.
Question 3

Given below is an excerpt of an xml specification.

Given below are several possible excerpts from "library.dtd". For which excerpt would the above specification be valid?

A




B




C




D




Question 3 Explanation: 
Note: Out of syllabus.
Question 4

A HTML form is to be designed to enable purchase of office stationery. Required items are to be selected (checked). Credit card details are to be entered and then the submit button is to be pressed. Which one of the following options would be appropriate for sending the data to the server. Assume that security is handled in a way that is transparent to the form design.

A
Only GET
B
Only POST
C
Either of GET or POST
D
Neither GET nor POST
Question 4 Explanation: 
Note: Out of syllabus.
Question 5

Consider the three commands : PROMPT, HEAD and RCPT.
Which of the following options indicate a correct association of these commands with protocols where these are used?

A
HTTP, SMTP, FTP
B
FTP, HTTP, SMTP
C
HTTP, FTP, SMTP
D
SMTP, HTTP, FTP
Question 5 Explanation: 
Note: Out of syllabus.
Question 6
In HTML, which of the following can be considered a container?
A
SELECT
B
Value
C
INPUT
D
BODY
Question 6 Explanation: 
→ A container tag in HTML is one which has both opening and closing tags.
→ There are some tags in HTML which don't have a closing tag.
→ They end within the same tag.
Examples:
→ is a container tag, it has it's closing tag as .
→Other examples are , ,

etc.
→These are called container tags because they contain something, within the two tags.

Question 7
How can we set a cookie visibility scope to local storage?
A
$
B
%
C
/
D
All of the options
Question 7 Explanation: 
Setting the path of a cookie to “/” gives scoping like that of localStorage and also specifies that the browser must transmit the cookie name and value to the server whenever it requests any web page on the site
There are 7 questions to complete.

Access subject wise (1000+) question and answers by becoming as a solutions adda PRO SUBSCRIBER with Ad-Free content

Register Now