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
-
TRUE
-
FALSE
-
It depends on the browser
-
Only if the CSS makes it display that way
B
Correct answer
Explanation
The tag defines the browser tab title, not visible page content. It appears in the browser window title bar or tab, not as text on the webpage itself. To display large bold text on a page, use heading tags like
through in the body section.
-
specific places within a particular page.
-
other pages within your website.
-
pages anywhere on the Internet.
-
All of these are correct
D
Correct answer
Explanation
The anchor tag is versatile and can link to specific locations within the same page (using # with id), other pages on the same website (relative paths), or any page on the internet (absolute URLs). This flexibility makes it fundamental for web navigation and creating interconnected content.
B
Correct answer
Explanation
CSS files always use the .css extension as the standard file naming convention. .xml is for XML data files, .ccs is not a recognized extension, and .xhtml is specifically for XHTML documents.
-
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().
-
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
-
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.
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.
-
Solve equations
-
Author webpages
-
Translate one language into another
-
Plot complicated graphs
B
Correct answer
Explanation
HTML (HyperText Markup Language) is the standard markup language for creating and designing web pages. It defines the structure and layout of web content, not mathematical solving, translation, or graph plotting.