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 2.0
  1. Hypertext Markup List

  2. Happytext Markup Language

  3. Hypertext Mark Language

  4. Hypertext Markup Language

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

HTML stands for Hypertext Markup Language, which serves as the standard markup language for structuring and creating web pages. The other options are incorrect variations that replace standard terms with incorrect words like List, Happytext, or Mark.

Multiple choice technology web 2.0
  1. <-Comment->

  2. <--Comment-->

  3. <!--Comment-->

  4. <Comment/>

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

The standard syntax for comments in HTML is . This prevents the enclosed text from being rendered by browsers. Distractors like <--Comment--> or <-Comment-> lack the correct exclamation mark and double-hyphen structure required by the HTML parser.

Multiple choice technology web 2.0
  1. <a url="http://www.webdesignerhelp&quot;&gt;Web Designer Help</a>

  2. <link="http://www.webdesignerhelp&quot;/&gt;Web Designer Help</a>

  3. <a link="http://www.webdesignerhelp&quot;&gt;Web Designer Help</a>

  4. <a href="http://www.webdesignerhelp&quot;&gt;Web Designer Help</a>

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

HTML hyperlinks use the tag with an 'href' attribute: link text. 'url' and 'link' are not valid attributes, and option B has malformed syntax with both 'link=' and ''.

Multiple choice technology web 2.0
  1. <img display="image.gif" />

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

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

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

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

HTML images use the self-closing tag with a 'src' attribute pointing to the image file path: . 'display', 'image', and bare '=' are not valid image attributes.

Multiple choice technology web 2.0
  1. Radio Buttons

  2. Checkboxes

  3. Form

  4. Text Field

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

Checkboxes are designed to let users select multiple independent options from a given list of choices in an HTML form. In contrast, radio buttons restrict selection to a single option, while text fields and forms do not serve as multi-select input controls.

Multiple choice technology web 2.0
  1. eXtra Hypertext Markup Language

  2. eXtension Hypertext Markup Language

  3. eXtensible Hypertext Markup Language

  4. eXtended Hypertext Markup Language

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

XHTML stands for eXtensible Hypertext Markup Language; it reformats HTML as XML (strictly well-formed, closing tags required). It's not an extension or extra version of HTML.

Multiple choice technology web 2.0
  1. <dt>

  2. <dd>

  3. <dl>

  4. <di>

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

The

tag defines a description list (formerly known as a definition list) in HTML, which contains groups of terms (
) and descriptions (

). While

and

are child elements representing individual terms and details,
is the container tag that initializes the list itself.

Multiple choice technology web 2.0
  1. <abbr>

  2. <abr>

  3. <abbreviation>

  4. <ab>

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

The HTML tag is standardly used to mark up abbreviations or acronyms, allowing browsers, search engines, and translation systems to identify them. The other options (, , and ) are invalid HTML tags and are not recognized by the HTML specification.

Multiple choice technology web 2.0
  1. <title="Web Designer Help"></title>

  2. <title=Web Designer Help/>

  3. <title="Web Designer Help"/title>

  4. <title>Web Designer Help</title>

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

The title tag is a standard HTML element used to specify the title of a webpage. It requires a standard start tag and end tag enclosing the text. Other options incorrectly format the element by placing the text inside attributes or utilizing self-closing tag syntax.

Multiple choice technology web technology
  1. <? ?>

  2. <script language=”php”> </script>

  3. <% %>

  4. <?php ?>

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

To solve this question, the user needs to know about the different PHP tags and their compatibility with XML or XHTML.

Option A: ?> is a valid PHP tag but it is not recommended to use as it may conflict with XML processing instruction. It is also not recommended to use with XHTML.

Option B: is not a valid PHP tag and will not be parsed as PHP code. It may work on some servers with specific configurations, but it is not portable or recommended.

Option C: <% %> is a valid PHP tag, but it is not compatible with XML or XHTML. It is used in ASP-style syntax.

Option D: is the recommended and most portable version of the PHP tag. It is compatible with XML or XHTML and is widely supported on different servers and configurations.

Therefore, the correct answer is:

The Answer is: D.

Multiple choice technology web 2.0
  1. Add a TYPE=HIDDEN INPUT to the form

  2. Trap the return keypress and return (null)

  3. Add 'return false' to onsubmit="..." in the FORM tag

  4. Instruct the user not to press the Return key.

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

Adding 'return false' to the onsubmit handler prevents the form from being submitted when the Return key is pressed, which would otherwise submit the form before the button click. TYPE=HIDDEN doesn't prevent submission, trapping keypress is JavaScript-heavy, and instructing users isn't a technical fix.