0% found this document useful (0 votes)
6 views8 pages

Cascading Style Sheets

CSS allows styling of HTML documents through various methods like inline styling, internal styling using <style> tags, and external styling using external CSS files. CSS syntax specifies properties for text styling like color using hex codes, rgb values, or color names. Common text properties include text alignment, font weight, text decoration, line height, letter spacing, and font size which can be set in absolute units like px or relative units like %. Font family specifies the typeface to use.

Uploaded by

CHIRAAG SINGLA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views8 pages

Cascading Style Sheets

CSS allows styling of HTML documents through various methods like inline styling, internal styling using <style> tags, and external styling using external CSS files. CSS syntax specifies properties for text styling like color using hex codes, rgb values, or color names. Common text properties include text alignment, font weight, text decoration, line height, letter spacing, and font size which can be set in absolute units like px or relative units like %. Font family specifies the typeface to use.

Uploaded by

CHIRAAG SINGLA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

CSS

CASCADING STYLE SHEETS


BASIC FORMAT OF CSS
Methods of including CSS on HTML

INLINE

Using <style> tag

Using External Stylesheet


SYNTAX OF ALL THESE METHODS

HTML sheet to which CSS sheet is to be


linked.
COLOR PROPERTY
• There are three methods of mentioning the color during styling a tag.

 Directly mentioning the color.

 Using rgb codes of the color.

 FORMAT – Intensities of color ( red, green, blue ) max : 255, min: 0

 Using hexadecimal codes of a color.

 Includes digits 0 to 9 , A to F – min : 0 , max : F

 FORMAT - #rrggbb
TEXT PROPERTIES OF CSS
TEXT PROPERTIES FURTHER PROPERTIES OF
SAME
Text – align Centre, right/end, left/start,
Justify – sets the spacing format.
Font – weight 100 - 900
Text – decoration Underline, overline , line through,none,etc
We can also change color of line by for example
red underline etc.
Line – height X ; x times normal spacing
Letter – spacing In terms of px
Font – size In terms of px
FONT – SIZE UNITS
ABSOLUTE UNITS RELATIVE UNITS

px %
pt em
pc rem
cm ch
mm vh
inch vw + many more
FONT - FAMILY
• Specifies type of font to be used in the text.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy