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 general knowledge
  1. Brackets, just like HTML

  2. Parentheses.

  3. Curly brackets.

  4. Forward slashes.

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

CSS uses curly brackets { } to contain style declarations for selectors. HTML uses angle brackets < > for tags, while parentheses ( ) are used in CSS for functions like calc(), url(), or rgb().

Multiple choice general knowledge
  1. Asynchronous java and XML

  2. Asynchronous java-script and XML

  3. Asymmetric java-script and XML

  4. Asymmetric java and XML

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

AJAX stands for Asynchronous JavaScript and XML, a technique for creating interactive web applications that update without reloading the page. While option B uses 'java-script' (should be 'JavaScript' as one word), it correctly identifies Asynchronous, the JavaScript component, and XML. Options A and D incorrectly use 'java' instead of JavaScript, and option C uses 'Asymmetric' which is wrong.

Multiple choice general knowledge
  1. Extensive Markup Language

  2. Extensible markup language

  3. External markup language

  4. Extern markup language

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

XML stands for eXtensible Markup Language. Option B correctly identifies this full form (capitalization varies). The key word is 'extensible' meaning it can be expanded with custom tags, unlike HTML which has fixed tags. Option A incorrectly uses 'Extensive' and C/D use wrong prefixes.

Multiple choice general knowledge science & technology
  1. WEBScript

  2. SUNScript

  3. ECMAScript

  4. HTLMScript

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

JavaScript is the common name for the language, but the official specification maintained by ECMA International is called ECMAScript. The language is standardized under this name to ensure consistency across different implementations (browsers, Node.js, etc.).

Multiple choice general knowledge science & technology
  1. Hypertext Temporal Markup Language

  2. Hypertext Transfer Markup Language

  3. Hypertext Transport Markup Language

  4. Hypertext Markup Language

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

HTML stands for Hypertext Markup Language, the standard markup language for creating web pages. The key is that it's 'Markup Language' not 'Temporal', 'Transfer', or 'Transport'. HTTP (Hypertext Transfer Protocol) is different: that's the communication protocol. The double space in option D appears to be a formatting artifact.

Multiple choice general knowledge science & technology
  1. Assimilation of JavaScript And XML

  2. Asynchronous JavaScript And Xcel

  3. Asynchronous JavaScript And XML

  4. Accentuation of JavaScript And XML

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

AJAX stands for Asynchronous JavaScript and XML. It's a web development technique that allows web applications to send and receive data from a server asynchronously without interfering with the display and behavior of the existing page, making web applications more responsive and dynamic.

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, not eXtensive. The name reflects its core design principle - it allows users to define their own custom markup tags, making it 'extensible' rather than being an extensive set of predefined tags.

Multiple choice general knowledge
Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The correct HTML element for creating a hyperlink is with the 'href' attribute specifying the destination URL. Option D correctly shows example. Options A and C incorrectly use 'url' and 'name' attributes which don't exist for hyperlinks, while B is missing the href attribute entirely.

Multiple choice general knowledge
  1. <js>

  2. <script>

  3. <javascript>

  4. <scripting>

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

JavaScript code is placed inside the `` element in HTML. This element can appear in the head or body section. The other options (<js>, <javascript>, <scripting>) are not valid HTML elements and will not execute JavaScript code.

Multiple choice general knowledge
  1. MAYSCRIPT

  2. CODE

  3. PARAM

  4. CODEBASE

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

The MAYSCRIPT attribute is an HTML attribute (not a JavaScript feature) used in tags to explicitly grant Java applets permission to access JavaScript objects and functions. This is a security feature - applets cannot access JavaScript unless this attribute is present. CODE, PARAM, and CODEBASE are other applet attributes.

Multiple choice general knowledge
  1. True

  2. False

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

External scripts are referenced via the src attribute in tags and are never displayed on the page. Browsers that don't understand JavaScript simply ignore the entire <script> element. Comment hiding was only needed for inline scripts to prevent code from displaying as text content, not for external script files.

Multiple choice general knowledge
  1. when another event is still being processed

  2. when Javascript is disabled

  3. when the page uses stylesheets

  4. when it is running locally instead of on the web

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

When JavaScript is disabled in the browser, no JavaScript code can execute, including event handlers. This is typically a browser setting that users can configure. The presence of stylesheets, local execution, or other events being processed does not prevent JavaScript execution.

Multiple choice general knowledge
  1. True

  2. False

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

External JavaScript files (.js) contain only JavaScript code without any HTML tags. The script tag with the src attribute is placed in the HTML document to load the external file. If you include script tags in an external .js file, it would cause JavaScript syntax errors.

Multiple choice general knowledge
  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 in the FORM tag prevents the default form submission behavior when the user presses Enter. This allows custom JavaScript processing to handle the form data instead. The other options - hidden input, trapping return key, or instructing users - don't address the core issue of form submission behavior.