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 xml
  1. <first name>

  2. <age>

  3. <NAME>

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

XML element names cannot contain spaces. The name is invalid because it contains a space character. Element names must start with a letter or underscore, and can only contain letters, digits, hyphens, underscores, and periods. and `` are both valid names.

Multiple choice xml
  1. Not as much coding is needed

  2. Its ability to adapt to new uses

  3. The fact that its supported by all of the major software vendors

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

XML's extensibility - the ability to define custom tags and document structures - makes it more powerful than HTML. While HTML has a fixed set of tags, XML allows users to create their own tag sets tailored to specific applications. This adaptability enables XML to be used for countless data representation purposes beyond web pages.

Multiple choice xml
  1. Create new tags

  2. Exchange information over the Web

  3. Put your tags in any order, with closing tags optional

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

To solve this question, the user needs to have knowledge about XML and its features.

Now, let's go through each option and explain why it is right or wrong:

A. Create new tags: This option is correct. Unlike HTML, XML allows users to create their own custom tags. This flexibility allows for more specific and structured data representation.

B. Exchange information over the Web: This option is incorrect. While XML is often used for exchanging information over the web, it is not the only purpose of XML. XML can be used for various purposes, including data storage and representation.

C. Put your tags in any order, with closing tags optional: This option is incorrect. In XML, tags must be properly nested, and closing tags are mandatory. The order of tags is also important in XML, as it defines the structure and hierarchy of the data.

The Answer is: A

Multiple choice xml
  1. 1994

  2. 1995

  3. 1996

  4. 1997

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

The W3C published the first working draft of the XML specification in 1996 (specifically November 1996). XML was designed to improve upon SGML and HTML by providing a more flexible markup language for the web. 1994-1995 were too early, and 1997 was when XML 1.0 became a recommendation.

Multiple choice xml
  1. Internet Engineering Task Force (IETF)

  2. IEEE

  3. American National Standards Institute (ANSI)

  4. OASIS

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

ANSI published SGML as a standard in 1980. SGML was the precursor to both HTML and XML, providing a framework for defining markup languages. The IETF handles internet protocols, IEEE focuses on engineering standards, and OASIS deals with e-business standards.

Multiple choice css html
  1. text-color

  2. foreground-color

  3. background-color

  4. color

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

The CSS 'color' property specifically controls text color (foreground color). Option A 'text-color' doesn't exist in CSS. Option B 'foreground-color' also doesn't exist - though it sounds logical, CSS uses the simpler 'color' property name. Option C 'background-color' controls the background, not the text. 'color' is the standard, correct property for text color in CSS.

Multiple choice css html
  1. Apply the style to a specific element

  2. Apply the style to all the elements

  3. Apply the style to a group of elements

  4. Apply the style to elements of the same type

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

In CSS, an ID selector (e.g., #header) is used to target a single, unique element on a page. Class selectors are used for groups of elements, and element selectors (tags) are used for all elements of a specific type. IDs have higher specificity than classes.

Multiple choice css html
  1. Tag

  2. Attribute

  3. Deceleration

  4. This is H1

  5. h1 {color: red;}

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

A CSS declaration consists of a property and its associated value. The correct term is 'Declaration' but option C uses 'Deceleration' which appears to be a typo/spelling error. However, this is clearly the intended answer. Option A 'Tag' refers to HTML elements. Option B 'Attribute' refers to HTML name-value pairs. Option E shows a complete CSS rule, not a single declaration. Option D is nonsensical filler.

Multiple choice html
  1. selector

  2. attribute

  3. property

  4. decleration

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

In HTML syntax, 'attribute' is the correct term for the name='value' pairs inside element tags. The blank in '

' represents where the attribute name goes, followed by = and its value in quotes. A 'selector' is a CSS concept for targeting elements. A 'property' is CSS terminology. 'Declaration' is also CSS terminology referring to property-value pairs within style rules.

Multiple choice general knowledge
  1. Asynchronous JavaScript and XML

  2. Asynchronous JavaScript and XtraLanguage

  3. Asyns JavaScript and HTML

  4. Added JavaScript and XML

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

AJAX stands for Asynchronous JavaScript and XML, a technique for creating interactive web applications. Option A is correct. Options B XtraLanguage, C HTML instead of XML, and D Added instead of Asynchronous are incorrect.

Multiple choice general knowledge
  1. Web Services Description Language

  2. Web Services Defination Language

  3. Web Server Description Language

  4. Web Server Defination Language

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

WSDL stands for Web Services Description Language, an XML-based language for describing web services. Option A is correct. Options B, C, and D use incorrect terms Defination typo and Server instead of Services.

Multiple choice general knowledge
  1. eXtra Hypertext Markup Language

  2. eXtensible Hypertension Markup Language

  3. eXtra Hypertext Makeup Language

  4. eXtensible Hypertext Markup Language

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

XHTML stands for eXtensible Hypertext Markup Language, a reformulation of HTML 4 as an XML application. Option D correctly identifies 'eXtensible' (not eXtra), 'Hypertext' (not Hypertension), and 'Markup' (not Makeup).

Multiple choice general knowledge
  1. Author webpages

  2. Plot complicated graphs

  3. Solve equations

  4. Translate one language into another

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

HTML (HyperText Markup Language) is the standard markup language for creating and structuring web pages. It defines the content structure using elements and tags, making it the fundamental tool for web authoring rather than for computation, translation, or graphing.