Cascading Style Sheet (CSS)
By
M.Priyadharshini
MCA
Introduction
 CSS – Cascading Style Sheet.
 It define how to display HTML elements.
 The term cascading derives from the fact that
multiple style sheets can be applied to the same Web
page.
CSS Syntax
We have 3 types of CSS
➢Inline style sheet
<H1 style="color: maroon">
➢Embeded style sheet
<style> </style>
➢External style sheet
<link href="style.css">
We type the code in notepad and save it in .html
format.
Inline style sheet:
We can write css properties directly at the tags by
using style attribute.
Inline style(inside an HTML element)
<p style="color:sienna;margin-
left:20px">This is a paragraph.</p>
Properties:
➔ Background-color: Used to change the bgcolor
of a text in a web page.
➔ Color: Used to apply Color to the text in a web
page.
➔ Text-align: Used to adjust the text in left, right,
centre of the page.
➔ Word-spacing: Used to give specified space in
b/w the words.
➔ Letter-spacing: Used to give specified space in
b/w the letters.(ex: 12px px means pixel).
Embeded style sheet. :
we write css properties at the head part by using
style attribute.
Embeded style sheet(in the head section)
<head>
< style>
hr {color:sienna;}
p {margin-left:20px;}
body {background-image:url("images/back40.gif");}
< /style>
< /head>
properties
 url: it helps to bring the image to a web page by
giving its address or the image name with
format.(ex: bg.jpg) “background- image: url
(“nh.jpg”)
 Background-repeat: when we add an image
then it will be added in a x , y axis format , no-
repeat. So we have 4 types
 Background-color: to give color to the webpage.
External style sheet:
we write the css properties in another notepad and
save it with .css format.
We are calling this css file at the head part of the html
by using link tag.
External style sheet
<head>
< link rel="stylesheet" type="text/css"
href="mystyle.css">
< /head>
properties
●
Link: This is used to link the code in
different notepads.
CSS Styling CSS Box Model CSS Advanced
Styling
Backgrounds
Styling Text
Styling Fonts
Styling Links
Styling Lists
Styling Tables
CSS Box Model
CSS Border
CSS Outline
CSS Margin
CSS Padding
CSS Display
CSS Positioning
CSS Floating
CSS Align
CSS Tags Categories
Thank you

More Related Content

PPTX
PDF
Html / CSS Presentation
PPT
CSS Basics
PPTX
HTML (Web) basics for a beginner
PPTX
Links in Html
PPTX
Html presentation
PPT
Css Ppt
Html / CSS Presentation
CSS Basics
HTML (Web) basics for a beginner
Links in Html
Html presentation
Css Ppt

What's hot (20)

PPTX
Html and css presentation
PPTX
Html ppt
PPTX
Cascading style sheet
PDF
Intro to HTML and CSS basics
PPTX
Css ppt
PPT
Active Server Page(ASP)
PDF
Introduction to HTML and CSS
PPT
HTML Tables.ppt
PPT
Introduction to Cascading Style Sheets (CSS)
PPTX
Web Design Basics for Kids: HTML & CSS
PPTX
PPTX
HTML: Tables and Forms
PDF
HTML and CSS crash course!
PPSX
Html ordered & unordered list
PDF
Intro to HTML & CSS
PPSX
Html introduction
PPT
PPT
Html and css presentation
Html ppt
Cascading style sheet
Intro to HTML and CSS basics
Css ppt
Active Server Page(ASP)
Introduction to HTML and CSS
HTML Tables.ppt
Introduction to Cascading Style Sheets (CSS)
Web Design Basics for Kids: HTML & CSS
HTML: Tables and Forms
HTML and CSS crash course!
Html ordered & unordered list
Intro to HTML & CSS
Html introduction
Ad

Viewers also liked (12)

PPTX
Teaching presentation
PPT
Cascading Style Sheet
PPTX
Cascading Style Sheet (CSS)
PPT
Cascading Style Sheets
PPT
Tutorial 08 - Creating Effective Web Pages
 
PPT
Html Ppt
PPT
cascading style sheet ppt
PPT
Introduction to CSS
KEY
HTML presentation for beginners
PPT
Introduction to HTML
PPT
Html Ppt
PDF
The Great State of Design with CSS Grid Layout and Friends
Teaching presentation
Cascading Style Sheet
Cascading Style Sheet (CSS)
Cascading Style Sheets
Tutorial 08 - Creating Effective Web Pages
 
Html Ppt
cascading style sheet ppt
Introduction to CSS
HTML presentation for beginners
Introduction to HTML
Html Ppt
The Great State of Design with CSS Grid Layout and Friends
Ad

Similar to Introduction to css & its attributes with syntax (20)

DOC
Css introduction
PPTX
Introduction of css
PPTX
Cascading style sheets
PPTX
Introduction to CSS
PPT
Cascading style sheet (css)]
PPTX
cascadingstylesheets,introduction.css styles-210909054722.pptx
PPTX
PPTX
Cascading style sheets
PPTX
Beginners css tutorial for web designers
PPTX
v5-introduction to html-css-210321161444.pptx
PDF
Css tutorial
PPTX
Cascading style sheets (CSS)
PPTX
properties of css.pptx power pointpresentation
PPTX
it-150608145445-lva1-app6891Unit_3 .pptx
DOC
Css introduction
PPT
Introduction to css by programmerblog.net
PDF
cascading style sheets ppt.sildeshower phone view
PPT
PPTX
CSS-ppt.pptx f df dff dfvdfv fdvfdfddf dfv df
Css introduction
Introduction of css
Cascading style sheets
Introduction to CSS
Cascading style sheet (css)]
cascadingstylesheets,introduction.css styles-210909054722.pptx
Cascading style sheets
Beginners css tutorial for web designers
v5-introduction to html-css-210321161444.pptx
Css tutorial
Cascading style sheets (CSS)
properties of css.pptx power pointpresentation
it-150608145445-lva1-app6891Unit_3 .pptx
Css introduction
Introduction to css by programmerblog.net
cascading style sheets ppt.sildeshower phone view
CSS-ppt.pptx f df dff dfvdfv fdvfdfddf dfv df

More from priyadharshini murugan (18)

DOCX
Vb.net class notes
DOCX
DOCX
Web based booking a car taxi5
PPTX
New 7 world wonders
PPT
Values of indian culture
PPTX
Unsolved mysteries of world
PPT
Bluetooth based-smart-sensor-network
PPTX
Environment light pollution
PPT
transport layer
PPTX
Bit plane coding
PPTX
Image compression models
PPTX
Source coding theorem
PPTX
Lossless predictive coding in Digital Image Processing
PPTX
general topic for presentation:Devil's Triangle
PPT
Open Source Technology
Vb.net class notes
Web based booking a car taxi5
New 7 world wonders
Values of indian culture
Unsolved mysteries of world
Bluetooth based-smart-sensor-network
Environment light pollution
transport layer
Bit plane coding
Image compression models
Source coding theorem
Lossless predictive coding in Digital Image Processing
general topic for presentation:Devil's Triangle
Open Source Technology

Recently uploaded (20)

PPT
Geologic Time for studying geology for geologist
PDF
STKI Israel Market Study 2025 version august
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
DOCX
search engine optimization ppt fir known well about this
PPT
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
PDF
Two-dimensional Klein-Gordon and Sine-Gordon numerical solutions based on dee...
PDF
Architecture types and enterprise applications.pdf
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
UiPath Agentic Automation session 1: RPA to Agents
PDF
Five Habits of High-Impact Board Members
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PPTX
Microsoft Excel 365/2024 Beginner's training
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
PPT
What is a Computer? Input Devices /output devices
PDF
Zenith AI: Advanced Artificial Intelligence
PPTX
Configure Apache Mutual Authentication
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
Hindi spoken digit analysis for native and non-native speakers
Geologic Time for studying geology for geologist
STKI Israel Market Study 2025 version august
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
search engine optimization ppt fir known well about this
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
Two-dimensional Klein-Gordon and Sine-Gordon numerical solutions based on dee...
Architecture types and enterprise applications.pdf
Taming the Chaos: How to Turn Unstructured Data into Decisions
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
UiPath Agentic Automation session 1: RPA to Agents
Five Habits of High-Impact Board Members
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
Microsoft Excel 365/2024 Beginner's training
Convolutional neural network based encoder-decoder for efficient real-time ob...
What is a Computer? Input Devices /output devices
Zenith AI: Advanced Artificial Intelligence
Configure Apache Mutual Authentication
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
Hindi spoken digit analysis for native and non-native speakers

Introduction to css & its attributes with syntax

  • 1. Cascading Style Sheet (CSS) By M.Priyadharshini MCA
  • 2. Introduction  CSS – Cascading Style Sheet.  It define how to display HTML elements.  The term cascading derives from the fact that multiple style sheets can be applied to the same Web page.
  • 4. We have 3 types of CSS ➢Inline style sheet <H1 style="color: maroon"> ➢Embeded style sheet <style> </style> ➢External style sheet <link href="style.css"> We type the code in notepad and save it in .html format.
  • 5. Inline style sheet: We can write css properties directly at the tags by using style attribute. Inline style(inside an HTML element) <p style="color:sienna;margin- left:20px">This is a paragraph.</p>
  • 6. Properties: ➔ Background-color: Used to change the bgcolor of a text in a web page. ➔ Color: Used to apply Color to the text in a web page. ➔ Text-align: Used to adjust the text in left, right, centre of the page. ➔ Word-spacing: Used to give specified space in b/w the words. ➔ Letter-spacing: Used to give specified space in b/w the letters.(ex: 12px px means pixel).
  • 7. Embeded style sheet. : we write css properties at the head part by using style attribute. Embeded style sheet(in the head section) <head> < style> hr {color:sienna;} p {margin-left:20px;} body {background-image:url("images/back40.gif");} < /style> < /head>
  • 8. properties  url: it helps to bring the image to a web page by giving its address or the image name with format.(ex: bg.jpg) “background- image: url (“nh.jpg”)  Background-repeat: when we add an image then it will be added in a x , y axis format , no- repeat. So we have 4 types  Background-color: to give color to the webpage.
  • 9. External style sheet: we write the css properties in another notepad and save it with .css format. We are calling this css file at the head part of the html by using link tag. External style sheet <head> < link rel="stylesheet" type="text/css" href="mystyle.css"> < /head>
  • 10. properties ● Link: This is used to link the code in different notepads.
  • 11. CSS Styling CSS Box Model CSS Advanced Styling Backgrounds Styling Text Styling Fonts Styling Links Styling Lists Styling Tables CSS Box Model CSS Border CSS Outline CSS Margin CSS Padding CSS Display CSS Positioning CSS Floating CSS Align CSS Tags Categories