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
-
.<style type="text/css">
-
.<link rel="stylesheet" type="text/css" href="r4rcss.css">
-
Both
-
None
B
Correct answer
Explanation
External CSS files are linked using the element placed in the HTML section. This approach separates content from presentation and allows multiple pages to share the same stylesheet. The tag is used for internal CSS embedded within the HTML document itself.
-
tag works in all browsers
-
is recommended now.
-
tag not supported for IE, Mazola etc. works in all browsers
-
is more will outdated
A,B
Correct answer
Explanation
The
tag is a self-closing element for line breaks. HTML5 allows
without the closing slash, but XHTML and earlier standards recommended
. Both syntaxes work in modern browsers, though the self-closing version is considered more standards-compliant.
-
HTML allow images and objects to be embedded on web page to create interactive forms by using some script
-
.HTML allow images and objects to be embedded on web page to create interactive forms by using tags.
-
Both of the above
-
None
B
Correct answer
Explanation
HTML allows images and objects to be embedded on a web page to create interactive forms using tags. While scripts can add dynamic behaviors, the capability to embed these objects is natively provided by standard HTML tags rather than scripting.
-
Using SSI include
-
Using JSP include
-
Using Asp include
-
All of the above
A
Correct answer
Explanation
Server Side Includes (SSI) are HTML directives that are evaluated on the server to add dynamic content to pages. The standard and most common file extension used to process these directives on the server is .shtml.
-
<html><head></head><body><title></<title></body></html>
-
<html><head><title></<title></head><body></body></html>
-
<html><head><title></<title><body></body></head></html>
-
<html><title></<title><head></head><body></body></html>
B
Correct answer
Explanation
HTML requires proper nesting: contains and . The contains , and contains page content. Option B correctly shows -> -> sequence with proper closing order. Other options have incorrect nesting like outside .
-
JavaScript and AJAX
-
CSS
-
LINQ
-
HTML
A
Correct answer
Explanation
Visual Studio 2008 (.NET 3.5) introduced IntelliSense support for JavaScript and AJAX to improve client-side development. CSS, LINQ, and HTML support existed or aren't the primary new feature.
-
page
-
request
-
context
-
application
-
None
-
context and application
C
Correct answer
Explanation
The valid scopes for jsp:useBean are page, request, session, and application. 'context' is not a valid scope value - it should be 'application' for application scope. Option C correctly identifies 'context' as invalid.
-
page
-
request
-
context
-
application
-
None
-
context and application
C
Correct answer
Explanation
The valid scope values for are: page (default), request, session, and application. 'context' is NOT a valid scope value. Option C is correct because 'context' is invalid. Option F claims both 'context and application' are invalid, but 'application' IS valid, so F is incorrect.
-
a.Show-XML
-
b.Show-Html
-
c.Show-Page
-
d.Show-Step-Page
C
Correct answer
Explanation
Show-Page is the Pega method that displays a step page's complete structure in XML format, making it invaluable for debugging. It shows all properties and their values in the current clipboard context. Despite the name, it outputs XML, not HTML, and is specifically designed for page inspection.
A
Correct answer
Explanation
JSP technology was specifically designed to process HTML form data as part of Java EE web application development. JSP pages can access form parameters through implicit objects like request.getParameter(), making form processing a core capability.
-
error-page
-
exception-type
-
location
-
None of the above
A
Correct answer
Explanation
The 'error-page' tag in web.xml is used to define error pages for JSP/servlet applications. It maps error codes or exception types to specific location URLs where error handling pages reside. The other options are sub-elements within error-page configuration, not the defining tag itself.
-
AirthmaticFormat
-
CurrencyFormat
-
NumberFormat
-
StringBuffer
C
Correct answer
Explanation
The NumberFormat class (specifically NumberFormat.getCurrencyInstance()) is the correct Java class for formatting monetary values on JSP pages. ArithmeticFormat is not a standard Java class, CurrencyFormat doesn't exist in the standard API, and StringBuffer is for string manipulation not formatting.
A
Correct answer
Explanation
The action tag is used to embed client-side components like Applets or JavaBeans into a web page. It automatically generates the browser-specific HTML elements and `` depending on the client browser, making the statement and stored answer correct.
A
Correct answer
Explanation
SOAP messages do not have a default encoding style. SOAP supports multiple encoding styles including document/literal and RPC/encoded. The encoding is specified in the WSDL and SOAP message itself, not predefined by the SOAP specification.