CASCADING STYLE SHEET CLASS VIII
1.What is
cascading style sheet?
Ans1. CSS is an acronym for cascading style
sheet is a programming specification markup language used for web development. It is a style sheet language
which is used to describe the look and formatting of a document written in
markup language. It provides an additional feature to HTML. It is generally
used with HTML to change the style of web pages and user interfaces.
2. What is
CSS used for?
Ans2. CSS (Cascading Style Sheets) is used to
style and layout web pages — for example, to alter the font, color,
size, and spacing of your content, split it into multiple columns, or adds
animations and other decorative features.
3. What is the difference between selector and
declaration?
Ans3. The selector
specifies the HTML element you want to style. The declaration block
contains one or more declarations separated by semicolons. Each declaration
includes a CSS property name and a value, separated by a colon.
For example:- h3
{color:green; font-size:10px;}
4. Explain internal, external and inline style
sheets.
Ans- Inline style sheet is used to apply a
unique style to HTML element It is applied using the style attribute of HTML element.
For example- <h3
style-color:green> Type text for level three heading. </h3>
Internal style sheet is present in the HTML
code document within the <head>….</head> element.
The styles of an internal style sheet are
defined using the <style> and </style> tags. The styles will be
applied to the specific HTML document in which code between the <style>
tags is written.
External style sheet is used when the style is
to be applied together to a set of webpages or to a complete website. External
style sheet is created in a separate file. All the formatting and layout
instructions are typed in this separate sheet and then linked to HTML
documents.
computer
NCERT Solutions for Class 10th: Ch 5 DHTML & CSS Computer Science
Comments
Post a Comment