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
-
Brackets, just like HTML
-
Parentheses.
-
Curly brackets.
-
Forward slashes.
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().
-
Asynchronous java and XML
-
Asynchronous java-script and XML
-
Asymmetric java-script and XML
-
Asymmetric java and XML
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.
-
Extensive Markup Language
-
Extensible markup language
-
External markup language
-
Extern markup language
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.
-
WEBScript
-
SUNScript
-
ECMAScript
-
HTLMScript
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.).
-
<script>
-
<javascript>
-
<java>
-
<insert>
-
<language>
A
Correct answer
Explanation
HTML uses the tag to embed JavaScript code. Other tags like <javascript>, <java>, <insert>, or <language> are not valid HTML elements.
-
Hypertext Temporal Markup Language
-
Hypertext Transfer Markup Language
-
Hypertext Transport Markup Language
-
Hypertext Markup Language
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.
-
Assimilation of JavaScript And XML
-
Asynchronous JavaScript And Xcel
-
Asynchronous JavaScript And XML
-
Accentuation of JavaScript And XML
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.
-
eXtensive Markup Language
-
eXtensive Markup List
-
eXtension Markup List
-
eXtensible Markup Language
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.
-
<js>
-
<script>
-
<javascript>
-
<scripting>
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.
-
MAYSCRIPT
-
CODE
-
PARAM
-
CODEBASE
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.
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.
-
when another event is still being processed
-
when Javascript is disabled
-
when the page uses stylesheets
-
when it is running locally instead of on the web
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.
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.
-
Add a TYPE=HIDDEN INPUT to the form
-
Trap the return keypress and return (null)
-
Add 'return false' to onsubmit="..." in the FORM tag
-
Instruct the user not to press the Return key.
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.