Computer Knowledge

Markup and Web Languages

1,701 Questions

Test your understanding of HTML tags, XML structures, and web page creation technologies. The questions cover elements like CSS styling, parsing documents, and defining web attributes. This section is essential for candidates appearing for computer proficiency tests in various competitive exams.

HTML tags and attributesXML document parsingCSS styling levelsWeb page creation basicsBrowser compatibility

Markup and Web Languages Questions

Multiple choice
  1. HTML tags are case sensitive.

  2. Some html tags are not required to be closed.

  3. The opening and closing html tag is optional.

  4. HTML tags can have attributes.

  5. HTML tags can be written using any text editor.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

HTML tags are not case sensitive. For example to create a paragraph we can write P or p. The tags in XML are case sensitive.

Multiple choice
  1. input type = textbox

  2. input type = text

  3. input type = label

  4. input type = textfield

  5. textarea

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Input type=Text or simply input creates a standard textbox. This can also have a value attribute, which sets the initial text in the textbox.

Multiple choice
  1. SGML

  2. DHTML

  3. XML

  4. JSP

  5. None of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

SGML or Standard Generalized Markup Language is the standard technology for defining generalized markup language for documents. HTML is an example of SGML based languages. SGML is not a language in itself but a description of how to specify a language.

Multiple choice
  1. CSS defines how to display HTML elements.

  2. External style sheets are stored in CCS files.

  3. Styles were added from HTML 4.0.

  4. External style sheets can save a lot of work.

  5. A CSS rule has two main parts: a selector, and one or more declarations.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Style sheets are normally saved in external .CSS files not .CCS files.

Multiple choice
  1. It can appear anywhere in an HTML page.

  2. !DOCTYPE is not an HTML tag.

  3. It does not have an end tag.

  4. If the !DOCTYPE is not specified the page will be rendered in quirks mode.

  5. The !DOCTYPE refers to DTD.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The !DOCTYPE declaration must be the very first thing in your HTML document, before the html tag.

Multiple choice
  1. The class selector is used to specify a style for a single, unique element.

  2. The class selector is defined with '.' (dot).

  3. Class name should comprise only alpha numeric characters, and hyphens.

  4. The name of the class can be as desired by the user.

  5. It is used with style sheets.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The id selector is used to specify a style for a single, unique element whereas the class selector is used to specify a style for a group of elements. Unlike the id selector, the class selector is most often used on several elements.

Multiple choice
  1. acronym

  2. code

  3. dd

  4. blockquote

  5. cite

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The acronym tag defines an acronym.An acronym can be spoken as if it were a word, example HTML, ASP, etc. By marking up acronyms we can give useful information to browsers, spell checkers, translation systems and search-engine indexers. It has been replace by the abbr tag in HTML 5