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 technology web technology
  1. <thead><body><tr>

  2. <table><head><tfoot>

  3. <table><tr><td>

  4. <table><tr><tt>

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

A complete HTML table structure uses as the container, for table rows, and for table data cells. Option A incorrectly uses (not a table tag), option B uses (an HTML document element, not a table element), and option D uses (teletype text, not a table tag).

Multiple choice technology web technology
  1. <img>image.gif</img>

  2. <image src="image.gif" />

  3. <img href="image.gif />

  4. <img src="image.gif" />

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

The tag with the src attribute is the correct syntax for inserting images in HTML. Option A uses incorrect closing syntax (images are self-closing), option B uses a non-existent tag, and option C uses href instead of src.

Multiple choice technology web technology
  1. .html

  2. .hta

  3. .htx

  4. .httml

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

HTML files use the .html extension (or .htm as a shorter variant). HTA is for HTML Applications, HTX is an older index server extension, and httml is not a valid extension. HTML is the standard markup language for web pages.

Multiple choice technology web technology
  1. Null elements

  2. Empty elements

  3. No elements

  4. Zero elements

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

HTML elements without content are called Empty elements. They don't have closing tags and can't contain child elements. Examples include
, , ,


, . They are self-contained and defined by their attributes alone.

Multiple choice technology web technology
  1. ControlToValidate property

  2. Text property

  3. Both A) and B)

  4. None of the Above

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

Every validation control in ASP.NET requires the ControlToValidate property to specify which input control to validate. Additionally, validation controls support the Text property to display validation error messages. Therefore, both properties are found in validation controls.

Multiple choice technology programming languages
  1. @Register directive.

  2. @Page directive.

  3. @control directive.

  4. All the above

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

The @Page directive is used in ASP.NET to define page-specific attributes like the programming language, master page file, or other configuration settings at the top of an .aspx file. @Register is used for registering user controls and custom tag prefixes, while @control is not a standard ASP.NET directive.