Computer Knowledge

Markup and Web Languages

1,701 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 general knowledge
  1. True

  2. False

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

Macromedia, the software company behind Flash, Dreamweaver, and Director (later acquired by Adobe in 2005), used "What the web can be" as their tagline during the late 1990s and early 2000s, reflecting their focus on web development and multimedia tools.

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.

Multiple choice general knowledge science & technology
  1. eXtensive Markup Language

  2. eXtensive Markup List

  3. eXtension Markup List

  4. eXtensible Markup Language

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

XML stands for eXtensible Markup Language, a text-based markup language designed to store and transport data in a structured format. The 'extensible' means users can define their own custom tags, unlike HTML which has predefined tags. XML is widely used for data interchange between systems and platforms.

Multiple choice general knowledge

Which of the following tags would create an image on your website, http://www.myweb.com that is found on another website, http://www.bonzo.com/bonzo.gif that is aligned to the center of the page and has a thin border?

  1. < img src="bonzo.gif" web="http://www.myweb.com" align="center" border="small" >

  2. < img src="http://www.bonzo.com/bonzo.gif" web="http://www.myweb.com" align="center" border="5" >

  3. < img src="http://www.bonzo.com/bonzo.gif" align="center" border="5" >

  4. < img src="http://www.bonzo.com/bonzo.gif" align="center" border="thin" >

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

To solve this question, the user needs to know how to insert and format images on a website using HTML.

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

A. < img src="bonzo.gif" web="http://www.myweb.com" align="center" border="small" >: This option is incorrect because the src attribute is only indicating the file name, not the full URL of the image. Also, there is no align attribute called "center" and "small" is not a valid value for the border attribute.

B. < img src="http://www.bonzo.com/bonzo.gif" web="http://www.myweb.com" align="center" border="5" >: This option is incorrect because the web attribute is not a valid attribute for the img tag. The correct attribute for specifying the URL of the website is href. Also, the border attribute is an integer value, not a string. "5" is a valid value, but "small" is not.

C. < img src="http://www.bonzo.com/bonzo.gif" align="center" border="5" >: This option is correct. The src attribute is correctly specifying the full URL of the image. The align attribute is specifying that the image should be centered on the page. The border attribute is specifying that the image should have a border of thickness 5.

D. < img src="http://www.bonzo.com/bonzo.gif" align="center" border="thin" >: This option is incorrect because "thin" is not a valid value for the border attribute. The border attribute only accepts integer values.

The Answer is: C

Multiple choice general knowledge
  1. TABLE

  2. IMG

  3. BACKGROUND

  4. BODY

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

The BODY tag's BGCOLOR or BACKGROUND attribute sets the entire webpage background. The TABLE tag can also use BACKGROUND or BGCOLOR attributes to set background for just that table portion. These are legacy HTML attributes for background styling.

Multiple choice general knowledge
  1. To provide an alternate image location if the original is not available

  2. To provide the image height

  3. To provide the image width

  4. To provide a textual description of the image

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

The ALT attribute in the IMG tag provides alternative text that describes the image content. This text is displayed when the image cannot load and is used by screen readers for accessibility. It does not specify dimensions or alternate image locations.

Multiple choice general knowledge
  1. To ensure that frames are not used on a particular page

  2. To give the user the option of not using frames on a particular page

  3. To let the browser know what page to display if it does not support frames

  4. To help search engine robots better access all of the content on a page

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

The NOFRAMES tag provides alternate content for browsers that don't support frames, serving both accessibility (screen readers/old browsers) and SEO purposes. Option C addresses browser compatibility while D addresses search engine indexing, both valid use cases.

Multiple choice general knowledge
  1. SUMMARY

  2. SUM

  3. META

  4. CRAWLER

  5. HEADER

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

META tags in the HTML head section provide metadata about the webpage, including descriptions and keywords that search engines use to index and categorize content. They are specifically designed for search engine optimization and do not affect the visible page content. Other options like SUMMARY and HEADER are not standard HTML metadata tags, while CRAWLER is not an HTML element at all.

Multiple choice general knowledge
  1. <h1>

  2. <h2>

  3. <h5>

  4. <h6>

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

HTML heading tags range from

(largest) to

(smallest) by default. The

tag represents the most important heading and displays the largest text size, while

is the least significant and smallest. CSS can override these default sizes.

Multiple choice general knowledge
  1. <title>

  2. link to a style sheet

  3. background image

  4. metatags

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

The section contains metadata like , meta tags, and links to stylesheets. Background images are visual elements that belong in the section or should be specified through CSS within . The HTML structure separates content (body) from presentation and metadata (head).