Q #1) What is CSS?
Answer: CSS outline the style of an HTML webpage, it is a language
by which we can set the behavior of an HTML webpage. It describes how the
HTML content will be shown on screen.
CSS controls the layout of several
HTML web pages. CSS is referred to as the Cascading Style Sheet.
Q #2) Name all the
modules which are used in the current version of CSS.
Answer: There are several modules in
CSS as stated below:
- Selectors
- Box Model
- Backgrounds and Borders
- Text Effects
- 2D/3D Transformations
- Animations
- Multiple Column Layout
- User Interface.
Q #3) Distinguish
between CSS2 and CSS3.
Answer:
There are several differences
between CSS2 and CSS3.
- CSS3 is divided into two various sections which are called a module. Whereas in CSS2 everything accedes into a single document with all the information in it.
- CSS3 modules are supported almost on every browser and on the other hand modules of CSS and CSS2 are not supported in every browser.
- In CSS3 we will find that many graphics related characteristics have been introduced like “Border-radius or box-shadow, flexbox.
- In CSS3, a user can precise multiple background images on a webpage by using properties like background-image, background-position, and background-repeat styles.
Q #4) Cite different
types of CSS.
Answer: There are three types of CSS
as mentioned below.
- External – These are written in separate files.
- Internal – These are cited at the top of the web page code document.
- Inline – These are written right next to the text.
·
Q
#5) Why is the external style sheet useful?
·
Answer: External style sheet is very useful as we write all the
styling codes in a single file and it can be used anywhere by just referencing
the link of that external style sheet file.
·
So if we do any changes in that
external file, then the changes can also be observed on the webpage. So we can
say that it is very useful and it makes your work easy while working on larger
files.
No comments:
Post a Comment