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
-
TLDs
-
DDLs
-
Web-inf
-
Meta-Inf
A
Correct answer
Explanation
JSP custom tags require a Tag Library Descriptor (TLD) file in the WEB-INF directory (or subdirectory). The TLD file defines the custom tag library, including tag names, attributes, and handler classes. DDL is unrelated (database definition), Web-inf is the wrong capitalization, and Meta-Inf is for JAR metadata.
-
<NAME>Write name here</NAME>
-
<name>Write name here</name>
-
<NAme>Write name here</naME>
-
<naME>Write name here</NAme>
A
Correct answer
Explanation
XML element names are case-sensitive by specification. The correct casing must match exactly what's defined in the DTD or schema. If was defined in the schema, then is correct and , , or would all be different, incorrect elements.
-
Map.xml
-
Web.xml
-
ps.xml
-
DynamicContentAliases.xml
C
Correct answer
Explanation
The ps.xml file (possibly Struts configuration or framework-specific) defines task flows and page flows in this application context. Web.xml handles servlet mappings, Map.xml is not a standard Java EE file, and DynamicContentAliases.xml is application-specific. This appears to be testing a specific framework knowledge.
-
<!-- - - >
-
<%-- --%>
-
</* */>
-
//
A
Correct answer
Explanation
HTML comments use the syntax to hide content from browsers without deleting it. Option A shows this format (with unusual spacing). Option B is JSP comment syntax, C mixes invalid closing tag syntax with C-style comments, and D is for JavaScript single-line comments.
-
REXpand Xml
-
REstructured EXtended EXecutor
-
Reload EXtended XML
-
REstructured EXpand XML
B
Correct answer
Explanation
REXX stands for REstructured eXtended eXecutor, a programming language developed by IBM. It's a high-level, interpreted language designed to be easy to learn and use, commonly used for scripting, automation, and prototyping on IBM mainframe and other platforms.
-
Tag Library Descriptor
-
Tag Language Description
-
Tag Library Description
-
Tag Language Dynamics
A
Correct answer
Explanation
TLD stands for Tag Library Descriptor, an XML file that describes a custom tag library in JSP. It contains metadata about the tag library including tag names, attributes, validation rules, and tag handler classes. The descriptor file enables JSP containers to process custom tags correctly by providing the necessary mapping and validation information.
A
Correct answer
Explanation
XML (eXtensible Markup Language) was specifically created to transport and store data in a structured, platform-independent format.
B
Correct answer
Explanation
XML and HTML serve different purposes. XML is designed for data storage and transport, while HTML is designed for displaying data in web browsers. They complement each other rather than replace.
A
Correct answer
Explanation
XML provides a standardized, platform-independent format for data representation, making it easier for different systems to share and exchange data without compatibility issues.
B
Correct answer
Explanation
XSL (eXtensible Stylesheet Language) is designed for transforming XML documents, not as a version of HTML. HTML is for markup, XSL is for styling XML data.
A
Correct answer
Explanation
XML is case-sensitive, meaning opening and closing tags must match exactly in case (e.g., and, not and).
A
Correct answer
Explanation
Every well-formed XML document must have exactly one root element that contains all other elements, creating a hierarchical tree structure.
A
Correct answer
Explanation
XSLT (eXtensible Stylesheet Language Transformations) is specifically designed to transform XML documents into other formats including HTML, PDF, and different XML structures.
A
Correct answer
Explanation
The XML declaration `` is the correct syntax that must appear at the beginning of an XML document to declare the XML version being used.