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 .net asp
  1. TagPrefix

  2. Name space of the dll that is referenced

  3. Assemblyname

  4. All of the above

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

To use a custom control in an ASP.NET page, the @Register directive requires the TagPrefix (to identify the control in markup), the Namespace, and the Assembly name where the control is defined. Therefore, all these components are necessary for registration.

Multiple choice .net asp
  1. Scripting is separated from the HTML, Code is interpreted seperately

  2. Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs can be executed on server

  3. Code is separated from the HTML and interpreted Code is interpreted separately

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

Classic ASP was an interpreted scripting language (VBScript/JScript). ASP.NET introduced a compiled model where code is separated into code-behind files or script blocks that are compiled into DLLs (Intermediate Language), providing significantly better performance and type safety.

Multiple choice .net asp
  1. .Asmx

  2. .Ascx

  3. .Aspx

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

Web user controls in ASP.NET use the .ascx file extension. The .aspx extension is for web forms pages, and .asmx is for XML web services. User controls are reusable components that can be embedded in multiple pages.

Multiple choice css
  1. css

  2. text/style

  3. style

  4. script

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

The element is used to define CSS rules within an HTML document. It must be placed in the <head> section and contains CSS code that applies to the document, distinguishing it from <script> which is for JavaScript.

Multiple choice css
  1. font

  2. styles

  3. css

  4. text

  5. style

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

The style attribute allows CSS rules to be applied directly to HTML elements. It uses the same syntax as CSS but without selectors, and is called inline because the styles are written inside the HTML opening tag itself.

Multiple choice css
  1. body {color: black}

  2. body:color=black

  3. {body:color=black(body}

  4. {body;color:black}

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

CSS uses selector {property: value} syntax. The selector targets elements, curly braces contain the rules, properties are followed by colons, and value pairs end with semicolons. Option A shows this correctly with body as selector, color as property, and black as value.

Multiple choice css
  1. all.h1 {background-color:#FFFFFF}

  2. h1.all {background-color:#FFFFFF}

  3. h1 {background-color:#FFFFFF}

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

To style all elements of a type, use the element name as the selector without modifiers. The selector h1 targets all

elements in the document, and the declaration sets their background color.

Multiple choice css
  1. text-color:

  2. color:

  3. text-color=

  4. font-color:

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

The color property controls text color in CSS. Many beginners expect text-color or font-color, but the actual property is simply color, while background-color controls the element background.

Multiple choice css
  1. p {text-size:bold}

  2. p {font-weight:bold}

  3. style:bold

  4. p{font:bold}

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

In CSS, the 'font-weight' property is specifically used to define the thickness of characters. Setting it to 'bold' makes the text heavy. 'text-size' is not a valid property (it is 'font-size'), and 'font:bold' is incomplete shorthand syntax.

Multiple choice css
  1. <script>

  2. <css>

  3. <stylesheet>

  4. <style>

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

tags contain internal/embedded CSS within HTML head or body. Option A is for JavaScript, B and C are not valid HTML elements. The style element specifically holds CSS rules for the current page.

Multiple choice css
  1. styles

  2. class

  3. font

  4. style

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

The style attribute applies CSS directly to HTML elements inline. Option A is a common typo, B is for reusable classes, and C is not a valid attribute. Inline styles use style="property:value" syntax.

Multiple choice css
  1. p {font-weight:bold}

  2. p {text-size:bold}

  3. <p style="text-size:bold">

  4. <p style="font-size:bold">

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

p {font-weight:bold} is correct CSS selector syntax targeting all paragraph elements. Options B and C use the non-existent text-size property, and D incorrectly uses font-size for boldness.

Multiple choice html
  1. It makes Michelle strong

  2. It highlights Michelle as being strong

  3. It will print out Michelle in bold font

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

The HTML tag renders its content in bold font and indicates strong importance (semantically stronger than ). Options A and B incorrectly interpret semantic meaning rather than visual rendering. In HTML, both and display bold text, but carries semantic meaning.