Computer Knowledge

Markup and Web Languages

1,492 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. <p>


  2. <hr>

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

To create a horizontal rule in HTML, we can use the <hr> tag.

Now let's go through each option and determine if it is the correct answer:

A. <b>: This tag is used to make text bold, not to create a horizontal rule. So, this option is incorrect.

B. </b><p>: This tag is used to create a paragraph, not a horizontal rule. Therefore, this option is incorrect.

C. <br>: This tag is used to insert a line break, not a horizontal rule. Hence, this option is incorrect.

D. </p><hr>: This tag is specifically used to create a horizontal rule. So, this option is the correct answer.

Therefore, the correct answer is D - <hr>.

Multiple choice technology web technology
  1. /* This is a comment */

  2. 'This is a comment

  3. //This is a comment

  4. <!-- This is a comment -->

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

HTML comments use the syntax . Option A is JavaScript/C-style, option B is not valid HTML comment syntax, and option C is used in programming languages like JavaScript or C++.

Multiple choice technology web technology
  1. <input type='radio' name='rdButton' id='rdButton'>

  2. <input type='check' name='rdButton' id='rdButton'>

  3. <input type='input' name='rdButton' id='rdButton'>

  4. <input type='text' name='rdButton' id='rdButton'>

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

Radio buttons in HTML are created using . The name attribute groups related radio buttons together so only one can be selected at a time. The id attribute is used for label association and scripting purposes.

Multiple choice technology web technology
  1. Two Rows and One column

  2. Two columns and One Row

  3. Two Rows and Two columns

  4. One Row and One column

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

Each tag in HTML creates one table row. The code shows two tags, which means two rows are created. Since each row contains only one (table data) cell, the table has one column.

Multiple choice technology programming languages
  1. That all pages are saved in .asp extensions.

  2. Check that the web server has Microsoft FrontPage extensions installed

  3. Make sure the web server is capable of hosting ASP pages

  4. Check the coding and be sure the ASP code is surrounded with

  5. All of the above

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

Before adding ASP capability, verify the web server supports ASP (IIS or compatible). Option C is correct. Option A (.asp extension) is a consequence, not a prerequisite. Option B (FrontPage) is unrelated. Option D's syntax is incomplete and ASP delimiter check is premature.

Multiple choice technology web technology
  1. Hyperlinks and Text Markup Language

  2. Hyper Text Markup Language

  3. Home Tool Markup Language

  4. Higher Text Markup Language

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

HTML stands for Hyper Text Markup Language, which accurately describes its purpose: a markup language for creating hypertext documents. 'Hyper Text' refers to the interconnected nature of web content through links, and 'Markup Language' indicates it uses tags to structure and format content.

Multiple choice technology web technology
  1. <body background="yellow">

  2. <body style="background-color:yellow">

  3. <background>yellow</background>

  4. <bgcolor="yellow">

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

The inline style attribute using CSS syntax (background-color) is the modern approach to adding background colors. Option A uses an obsolete attribute that's deprecated, and options C and D use non-existent HTML elements or invalid syntax.