CS 511-Web Engineering
Week 2
Topic 21-24
CS 511- Week 2:Topic 21-24 |
Topic 21:
Introduction to CSS:
CSS stands for cascading style sheet. CSS describes the formatting or presentation of documents.
With CSS you can assign
- font properties
- colors
- sizes
- borders
- background images
- position elements on the page
Benefits of CSS:
- Improved control over formatting
- Improved site maintainability
- Improved accessibility
- Improved page-download speed
- Improved output flexibility
Assessment:
Which of the following protocol is the backbone world wide web system?
- HTTP
- HTML
- CSS
- C++
Topic 22:
CSS Syntax:
A CSS document consists of properties. The most used CSS properties are given below:
Fonts
- font
- font-family
- font-size
- font-style
- font-weight
- @font-face
Text
- letter-spacing
- line-height
- text-align
- text-decoration*
- text-indent
Color and background
- background
- background-color
- background-image
- background-position
- background-repeat
- box-shadow
- color
- opacity
Borders
- border*
- border-color
- border-width
- border-style
- border-top, border-left, …*
- border-image*
- border-radius
Spacing
- padding
- padding-bottom, padding-left, …
- margin
- margin-bottom, margin-left, …
Sizing
- height
- max-height
- max-width
- min-height
- min-width
- width
Layout
- bottom, left, right, top
- clear
- display
- float
- overflow
- position
- visibility
- z-index
Lists
- list-style*
- list-style-image
- list-style-type
Effects
- animation*
- filter
- perspective
- transform*
- transition*
Topic 23:
CSS Syntax (Values)
CSS declaration contains a value for a property
CSS declaration contains a value for a property
Color Values:
- Name
- RGB
- Hexadecimal
- RGBa
- HSL
Units of Measure Values:
- px
- em
- ex
- ch
- rem
- vw, vh
- in
- cm
- mm
- pt
- Pc
Topic 24:
Location of styles:
CSS style can be in three different locations.
Inline styles placed within an HTML element with the style attribute. Inline style only affects the element.
CSS style can be in three different locations.
- Inline Styles
- Embedded Style Sheet
- External Style Sheet
Inline styles placed within an HTML element with the style attribute. Inline style only affects the element.
2. Embedded Style Sheet
Embedded style sheets also called internal styles placed within the <style> element inside the <head> element of an HTML document.
3.External Style Sheet
External style sheets placed within a external text file with the .css extension.
Assessment:
- Rules in the CSS always begin with the
- Value
- Selector
- Property
- End point
- It is used to style the HTML documents.
- Python
- CSS
- Php
- Java
- CSS level 1 recommendations were published in
- 1876
- 2010
- 1996
- 2022
- P {Font-weight: bold;} Identity the selector in the above CSS code.
- bold
- font
- weight
- p
- CSS stands for
- Cascading superior sheet
- Cascading super sheet
- Cascading single sheet
- Cascading style sheet
- <h2 style="font-size: 24pt; font-weight:bold;"> Reviews</h2> Identity the CSS linking method used in above code.
- Embedded Style Sheet Method
- External Style Sheet Method
- Double External Style Sheet Method
- Inline Style sheet Method
- A CSS document consists of only one style rule
- True
- False
- There are _____ ways to specify the CSS rules.
- 3
- 10
- 20
- 2
- Separation of content and styles in website development scenario helps to improve the
- Page download speed
- System Memory
- Computer Refresh Rate
- Browser Development Tool
- The unit of any given value in CSS is dependent upon the
- Selector
- Property
- Brackets
- Computer
- CSS does not improve control over formatting.
- True
- False
0 Comments