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.

Loading…
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