Which of the following is a mechanism for defining how to display elements of a Web page, including their characteristics such as fonts, borders, color, and size?

Which of the following is a mechanism for defining how to display elements of a Web page, including
their characteristics such as fonts, borders, color, and size?

Which of the following is a mechanism for defining how to display elements of a Web page, including
their characteristics such as fonts, borders, color, and size?

A.
CSS

B.
XML

C.
JavaScript

D.
HTML

Explanation:
Cascading Style Sheets (CSS) is a style sheet language used to describe the presentation (that is, the
look and formatting) of a document written in a markup language. Its most common application is to
style Web pages written in HTML and XHTML, but the language can be applied to any kind of XML
document, including SVG and XUL.
Cascading style sheets (CSS) is used so that the Web site authors can exercise greater control on the
appearance and presentation of their Web pages. And also because CSS increases the ability to
precisely point to the location and enhance the look of elements on a Web page and helps in
creating special effects. Cascading Style Sheets contains code that is interpreted and applied by the
browser on to the Web pages and their elements. There are three types of Cascading Style Sheets,
which are as follows:
External Style Sheets
Embedded Style Sheets
Inline Style Sheets

Answer D is incorrect. HTML is used for primarily defining the content and layout of a Web
document.

Answer C is incorrect. JavaScript is a language that is used to make the Web pages interactive. The
user can send and receive information with the use of JavaScript objects. JavaScript can be used to
create image rollovers and validating forms. It can also be used to open a new browser window. It is

placed in the HTML code by using the <script>… </script> tag pair. It was developed by Netscape in
conjunction with Sun Microsystems.

Answer B is incorrect. XML stands for Extensible Markup Language. It is a metamarkup language for
developing text documents. This language allows developers and writers to invent the elements they
need, as they need them. This language defines a generic syntax used to mark up data with simple,
human-readable tags.



Leave a Reply 0

Your email address will not be published. Required fields are marked *