0% found this document useful (0 votes)
23 views

Assignment: 1.) : Selector Declaration Declaration

CSS allows separation of document content from presentation, improving accessibility and flexibility. It provides control over fonts, colors, spacing and more. Selectors like ID target unique elements, Class targets groups of elements sharing styles. CSS syntax pairs selectors with declarations setting property values to specify presentation styles.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Assignment: 1.) : Selector Declaration Declaration

CSS allows separation of document content from presentation, improving accessibility and flexibility. It provides control over fonts, colors, spacing and more. Selectors like ID target unique elements, Class targets groups of elements sharing styles. CSS syntax pairs selectors with declarations setting property values to specify presentation styles.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

PINOTE, Christine A. CWP111-IT1E ASSIGNMENT: 1.) What is CSS?

Cascading Style Sheets (CSS) is a simple mechanism for adding style such as fonts, colors and spacing to web documents. CSS id designed primarily to enable the separation of document content from document presentation. This separation can improve content accessibility, provide more flexibility and control in the specification of presentation characteristics, enable multiple pages to share formatting and reduce complexity and repetition in the structural content.

2.) What is ID Class & Selector? The ID Selector is used to specify a style for a single, unique element. It uses the ID attribute of the HTML document and is defined with #. The Class Selector is used to specify a style for a group of elements. Unlike the ID selector, the class selector is most often used on several elements. This allows you to set a particular style for many HTML elements with the same class. The class selector uses the HTML class attribute and is defined with a.

3.) Example syntax/ code in CSS.

selector declaration declaration

p { color : red ; text-align : center ; }

property value

property value

You might also like