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
-
color:
-
bgcolor:
-
background-color:
-
background-colour:
C
Correct answer
Explanation
The CSS property background-color sets the background color of an element. The American spelling "color" is correct; "colour" is not valid in CSS. The bgcolor attribute is obsolete HTML, not a CSS property. The color property sets text color, not background.
B
Correct answer
Explanation
Web components are a specific set of web platform APIs (Custom Elements, Shadow DOM, HTML Templates) that create reusable custom elements. An HTML page is a complete document served by a web server, not a reusable component.
A
Correct answer
Explanation
WSDL (Web Services Description Language) is an XML format for describing network services as a set of endpoints operating on messages. It documents the service location, operations, and message formats needed to interact with the web service.
-
XML
-
HTTP
-
FTP
-
All the above
A,B
Correct answer
Explanation
The basic web service platform uses XML for encoding/decoding data (A) and HTTP as the transport protocol (B). FTP is not a standard web service transport protocol, so 'All the above' is incorrect.
-
HTML & HTTP
-
XML & HTTP
-
XML & SOAP
-
HTML & SOAP
C
Correct answer
Explanation
Web services use XML to code and decode data, and SOAP (which uses HTTP) to transport that data. SOAP is the XML-based protocol that handles the message format and communication, while HTTP provides the underlying transport layer.
A
Correct answer
Explanation
ALT text should always be provided for images. If an image is purely decorative (adds no content), use alt="" (empty/null ALT) so screen readers skip it. This is better than omitting ALT entirely, which causes screen readers to read the filename.
-
EncType: application/x-www-urlencoded
-
Content-Type: application/x-www-form-urlencoded
-
Content-Type: multipart/form-data
-
Encoding-Type: multipart/form-data
-
Accept-Encoding: application/www-form-encoded
-
Encoding-Type: multipart/www-form-data Request
B
Correct answer
Explanation
The 'Content-Type: application/x-www-form-urlencoded' header tells the server how to decode the parameter data from an HTML form submission. This is the standard encoding for form data where key-value pairs are URL-encoded (special characters converted to %XX format). The servlet container uses this header to properly parse the request body and populate the HttpServletRequest's parameter methods. Note the header name is 'Content-Type', not 'EncType' or 'Encoding-Type'.
-
System.Data.Xml
-
System.Xml
-
System.DOM.Xml
-
System.DOM
B
Correct answer
Explanation
System.Xml is the namespace in .NET that provides XML DOM (Document Object Model) support. It contains classes like XmlDocument, XmlNode, XmlElement for parsing and manipulating XML documents. There is no System.DOM namespace in .NET, and System.Data.Xml is not the primary XML namespace.
-
System.Data.Xml
-
System.XML
-
System.DOM.Xml
-
System.DOM
B
Correct answer
Explanation
System.Xml (same as System.XML - case difference) is the .NET namespace for XML DOM support. This question is a duplicate of 135084 testing the same concept - that XML functionality lives in the System.Xml namespace which provides XmlDocument and related DOM classes.
-
WSDL
-
XML schema organisation
-
W3C
-
XML consortium
C
Correct answer
Explanation
XML is standardized by the World Wide Web Consortium (W3C). WSDL is a description language for web services, and there is no "XML schema organisation" or "XML consortium" that serves as the official standards body.
C
Correct answer
Explanation
XAML (eXtensible Application Markup Language) is the declarative markup language used in WPF (Windows Presentation Foundation) for defining user interfaces and visual elements. It's analogous to HTML in web development.
-
eXtensive Markup Language
-
eXtensive Markup List
-
eXtension Markup List
-
eXtensible Markup Language
D
Correct answer
Explanation
XML stands for eXtensible Markup Language. It was designed to store and transport data in a structured, human-readable format. The 'extensible' means users can define their own tags and document structure, unlike HTML which has predefined tags. Options A, B, and C are incorrect expansions.
-
As a string called xml
-
As an object called xml
-
As a string called node
-
As an object called node
A
Correct answer
Explanation
In webMethods Integration Server, when an HTML form is submitted via POST, the server's content handler parses the form fields into the pipeline. A field named 'xml' is treated as a standard input parameter and appears in the pipeline as a String variable with the same name. It is not automatically converted to a node object unless specific XML parsing services are invoked.
A
Correct answer
Explanation
Both and support runtime expressions in their attribute values. You can use <%= %> syntax to dynamically set the property name or value, as shown in the example where value="<%= strFirst %>" sets the property to a variable's value.
-
Hyperlinks and Text Markup Language
-
Hyper Text Markup Language
-
Hyper Text Markinup Language
-
All of the above
B
Correct answer
Explanation
HTML stands for HyperText Markup Language, which is the standard markup language for creating web pages. HyperText refers to links that connect web pages, and Markup Language means it uses tags to define elements. Option A swaps 'Text' with 'and Text', and option C misspells 'Markup' as 'Markinup'.