Machine-translated by Google. Questions are authored in English.
Top

HTML and Semantic Markup Questions and Answers

1.

Which of the given options best describes the truthfulness of the following statements?

i) Class is one of the html global attributes which specifies one or more class names for an element (refers to a class in a style sheet).
ii) HTML is a markup language used for server-side processing.
iii) CSS describes how HTML elements are to be displayed on screen, paper, or in other media.

Exam Year(s)

DSSSB TGT - 2023,

Answer: C

Statements i and iii are true and ii is false. The class attribute is one of the HTML global attributes and gives one or more class names to an element, referring to a class in a style sheet. CSS describes how HTML elements are displayed on screen, paper or other media. HTML is a markup language that structures a page and is interpreted by the browser, not a language for server-side processing, so statement ii is false and the options that mark it true are wrong.

Please log in or register to report this question.

Answer: A

The first option is the right way to comment out multiple lines in XML, using <!-- to open the comment and --> to close it, which can span several lines. The second and third options use the comment styles of C and C++ (/* */ and //), which are not XML comments. The fourth lacks the exclamation mark and so is not a valid comment opening. The two dashes after the opening mark and before the closing mark are part of the syntax, and the text between them is ignored by the XML processor.

Please log in or register to report this question.

Answer: A

The correct anchor is the first one, with href = "mailto : ...".

A link to the mail system is an a element whose href attribute is assigned with an equals sign and whose value uses the mailto URL scheme followed by the address, so that clicking it opens a new message to amitkumar@gmail.com. The spaces around the colon and the @ are how the paper sets the text; a working link writes mailto:amitkumar@gmail.com without them.

'emailto' is not a URL scheme, so the second and fourth anchors fail. 'href :' is not valid attribute syntax, since an attribute takes its value with =, so the third and fourth fail as well.

Please log in or register to report this question.

4.

Most of recent browsers support an additional ENCTYPE of multipart/form-data, which statements out of the following correctly define it ?

(i) This encoding transmit each field as a separate part of MIME compatible document automatically
(ii) MIME compatible document automatically use POST to submit data in multipart
(iii) This attribute specifies the way in which data is enclosed
(iv) This encoding sometime makes it easier for server side program to handle complex data.

Exam Year(s)

MH SET - 2023, SET Exam - 2023,

Answer: D

The key is (i), (ii) and (iv).

With ENCTYPE set to multipart/form-data, the browser sends the form as a MIME multipart message in which each field is its own part (i). The form must use the POST method for this encoding, which is the point of (ii). It is useful for complex data such as file uploads, where the parts are easier for a server-side program to separate (iv).

Statement (iii) describes the ENCTYPE attribute in general, saying how the data is enclosed, rather than defining the multipart encoding itself, which is why the key leaves it out. That is a fine distinction, and (iii) is not false in itself. Options A, B and C each omit (i), (ii) or (iv), so D is the only option holding all three.

Please log in or register to report this question.

5.

Which of the following activities is not an application of XML ?

Exam Year(s)

MH SET - 2024, SET Exam - 2024,

Answer: D

The activity that is not an application of XML is interaction with the user to get the data.

XML is a markup language for describing and structuring data. It is used to store data, to transmit it between systems, and to separate content from presentation so the same data can be rendered in several ways (for example with XSLT).

XML has no means of interacting with a user; collecting input is the job of forms and programs, such as HTML forms and scripts, which may then produce XML.

Please log in or register to report this question.

6.

Which of the following options appropriately describes the term DHTML ?

Exam Year(s)

MH SET - 2025, SET Exam - 2025,

Answer: D

DHTML is the combination of HTML, stylesheets and client-side scripts.

Dynamic HTML is not a separate language. It is the use of HTML for content, CSS for presentation and client-side scripting such as JavaScript, working through the Document Object Model, to change a page in the browser without reloading it.

HTML with stylesheets alone gives a styled but static page, and HTML with scripts leaves out the styling layer that DHTML scripts manipulate. DHTML is a technique, not a version of HTML tied to particular browsers.

Please log in or register to report this question.

7.

Which one is a collection of templates and rules ?

Exam Year(s)

UGC NET - 2012,

Answer: D

XSL (the Extensible Stylesheet Language) is a collection of templates and rules: the processor matches the nodes of an XML document against templates and applies the rules to produce the output. XML is a markup language for data, CSS is a style sheet language with rules but not templates for transforming a tree, and DHTML is dynamic HTML. The keyed answer is XSL.

Please log in or register to report this question.

8.

Match the following with respect to HTML tags and usage.

List - IList - II
a. CITE1. Italic representation
b. EM2. Represents output from programmes
c. VAR3. Represents to other source
d. SAMP4. Argument to a programme

Codes : a b c d

Exam Year(s)

UGC NET - 2012,

Answer: A

In HTML, the CITE tag marks a reference to another source (3), the EM tag gives emphasis, usually shown in italics (1), the VAR tag marks a variable, that is the argument to a programme (4), and the SAMP tag represents sample output from programmes (2). The code is 3 1 4 2. The other codes give the output tag to the italic one or the variable tag to the citation tag. The keyed answer is the first code.

Please log in or register to report this question.

9.

HTML is defined using SGML - an _______ standard, information processing-text and office systems (SGML) for text information processing.

Exam Year(s)

UGC NET - 2012,

Answer: B

HTML was defined as an application of SGML, the Standard Generalized Markup Language, which is the ISO standard 8879, 'Information processing, text and office systems, Standard Generalized Markup Language'. The neighbouring numbers 8878, 8880 and 8881 are the numbers of other ISO standards and have nothing to do with SGML. The answer is ISO - 8879, option (B), and this is a recall item with a single correct number.

Please log in or register to report this question.

Loading…

Other Subjects

Tags: HTML and Semantic Markup Questions and Answers || HTML and Semantic Markup MCQ Questions and Answers || HTML and Semantic Markup GK Questions and Answers || HTML and Semantic Markup GK MCQ Questions || HTML and Semantic Markup Multiple Choice Questions and Answers || HTML and Semantic Markup GK || GK on HTML and Semantic Markup || Web Technologies Questions and Answers || Web Technologies MCQ Questions and Answers || Web Technologies GK Questions and Answers || GK on Web Technologies