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
-
UIDOC
-
DOC
-
Values
-
Getvalue
A
Correct answer
Explanation
In Lotus Notes, UIDOC (NotesUIDocument) provides the QuerySave event where you can validate field values before the document is saved. DOC is the backend document class without UI events, Values is a property, and Getvalue is not a standard validation method. UIDOC's QuerySave is the correct validation hook.
-
RTF
-
Plain Text
-
HTML
-
DHTML
B
Correct answer
Explanation
Plain text creates the smallest email message files because it contains only the raw text characters without any formatting information, markup tags, or embedded styling. RTF (Rich Text Format) includes formatting codes, HTML includes tags, and DHTML (Dynamic HTML) includes even more scripting and interactive elements.
-
html
-
innerHTML
-
text
-
None of the above
B
Correct answer
Explanation
The innerHTML property gets or sets the HTML content inside an element. The 'html' option doesn't exist as a DOM property, and 'text' is not a standard property for this purpose.
-
XSL and WSL
-
XQL and WSL
-
WQL and XQL
-
XSLT and XPATH
-
Adding new XML Schema types
-
Changing the parameters of an operation, in data type or order
-
Renaming an operation
-
Changing the structure of a complex data type
-
None of the above
A
Correct answer
Explanation
Adding new XML Schema types is backward compatible because existing requestors don't reference or need these new types. Changing parameters (B), renaming operations (C), or changing complex data type structures (D) all break existing requestors that depend on the current definitions. WSDL is designed for extensibility through additions.
D
Correct answer
Explanation
Struts provides five core tag libraries: bean, html, logic, nested, and tiles. However, the question may be referring to the four most commonly used ones (excluding nested or tiles depending on version). The core libraries are bean (for JavaBeans manipulation), html (for form/rendering), logic (for conditional logic), and tiles (for layout composition).
-
Bean tag library
-
Xml tag library
-
Logic tag library
-
HTml tag library
A,C,D
Correct answer
Explanation
The three main Struts tag libraries are: Bean tags (for accessing JavaBeans and their properties), Logic tags (for conditional presentation and iteration), and HTML tags (for generating HTML forms and UI elements). There is no separate 'Xml tag library' - the HTML library is the third correct option.
-
HTML 4.01
-
HTML 1.0
-
XHTML 2.0
-
HTML 5.0
A
Correct answer
Explanation
HTML 4.01 is unique as the last major HTML specification based on SGML (Standard Generalized Markup Language). HTML 1.0 was pre-standardization, XHTML 2.0 was XML-based, and HTML 5.0 represents a modern specification - making 4.01 least like the others in its SGML foundation.
-
More robust formatting attributes for the font tag
-
The ability to create dynamic, scriptable bitmapped images
-
An API for saving data to client-side storage
-
New tags for embedding audio and video in Web pages
A
Correct answer
Explanation
HTML5 explicitly deprecated presentational tags like font in favor of CSS, so it would not add more formatting attributes to the font tag. The other options describe actual HTML5 features: the Canvas API creates dynamic bitmapped images, the Web Storage API provides client-side data persistence, and native audio/video tags were introduced.
-
All tags must be closed, even stand-alone tags on a single line
-
All image tags must include a name attribute
-
All element and attribute names must be lowercase
-
The document must specify a valid XHTML DOCTYPE
B
Correct answer
Explanation
XHTML requires all tags to be properly closed, element and attribute names to be lowercase, and a valid XHTML DOCTYPE declaration. However, the name attribute for img tags is not required - the alt attribute is required for accessibility, but name is optional and deprecated in favor of id in XHTML 1.0 Strict and HTML5.
-
Extended Markup Language
-
EXtensible Markup Language
-
Extension Markup Language
-
Extensional Markup Language
B
Correct answer
Explanation
XML stands for EXtensible Markup Language. The 'X' represents EXtensible, emphasizing that users can define their own tags and document structures, making it flexible for diverse data representation needs.
-
Above statement is completely wrong
-
Above statement is partially correct
-
Above statement is fully correct
-
Can't say
C
Correct answer
Explanation
XML was indeed designed to transport and store data with focus on what data is, rather than how it looks. This separation of content from presentation is a fundamental XML principle, unlike HTML which emphasizes display.
-
1 & 2 is correct
-
2 & 3 is correct
-
4 & 5 is correct
-
All are correct
D
Correct answer
Explanation
All five statements correctly describe the relationship between XML and HTML. XML and HTML have different goals: XML describes data (what it IS), HTML displays data (how it LOOKS). XML is not a replacement for HTML - they serve complementary purposes. Statement 5 reinforces statements 3 and 4.
-
Extended Markup Language
-
EXtensible Markup Language
-
Extension Markup Language
-
Extensional Markup Language
B
Correct answer
Explanation
XML stands for EXtensible Markup Language. The 'X' stands for 'Extensible' (not Extended, Extension, or Extensional), meaning users can define their own tags and document structures. This extensibility is XML's key feature.