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
  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

Multiple choice
  1. iframe

  2. inframe

  3. form

  4. frame

  5. frameset

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

The HTML iframe tag is used to specify an inline frame. An inline frame allows us to embed another document within the current HTML document. We  can use the iframe src attribute to specify the source of the other document, as well as other attributes to determine the height, width, scrolling properties, border, etc.

Multiple choice
  1. The content of a webpage can be changed dynamically using InnerHTML.

  2. The id of an element can be referred by using getElement() method.

  3. InnerHTML is not a part of DOM.

  4. It was introduced by Microsoft.

  5. It is valid for both block and inline elements.

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

Each element that we want to modify dynamically must be assigned a unique id. The InnerHTML property is used along with the getElementById() method to refer to a particular element by using its Id.

Multiple choice
  1. The tag under a keyword string is possible.

  2. The tag under a Hex colour is possible.

  3. The tag under a reference to another resource type is possible.

  4. The tag under another item tag is possible.

  5. -

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

<item> tag in another item tag is not possible. A Keyword string, Hex colour and a reference to another resource type are possible values to an <item> tag.

Multiple choice
  1. entity

  2. switch board

  3. macro

  4. pages

  5. none of these

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

In database design and Entity-Relationship modeling, attributes are properties or characteristics that describe entities. Entities are the objects/concepts (like Customer, Product), while attributes are their details (like CustomerName, Price). Switchboards, macros, and pages are Access interface elements, not structural database components that have attributes.

Multiple choice
  1. Web Service Method ()

  2. Web Method ()

  3. Web Services ()

  4. Services Method ()

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

In .NET ASMX web services, methods must be marked with the [WebMethod] attribute to be exposed as callable web service operations. This attribute enables the method to be invoked via SOAP/HTTP requests. Without it, the method remains internal to the class.