SlideShare a Scribd company logo
PHP -  Introduction to PHP CSS
Introduction to PHPIntroduction to PHP
CSSCSS
Objectives:
- “What is CSS?”
- Structure of CSS
- How to use CSS in your webpage
Web Workshop: CSS
CSS stands for “Cascading Style Sheets”
Cascading: refers to the procedure that determines
which style will apply to a certain section, if you
have more than one style rule.
What is CSS?
CSS stands for “Cascading Style Sheets”
Style: how you want a certain part of your page to
look. You can set things like color, margins, font, etc
for things like tables, paragraphs, and headings.
What is CSS?
CSS stands for “Cascading Style Sheets”
Sheets: the “sheets” are like templates, or a set of
rules, for determining how the webpage will look.
What is CSS?
So, CSS (all together) is a styling language – a set of
rules to tell browsers how your webpage should
look.
What is CSS?
“Style” is a command that you set to tell the browser
how a certain section of your webpage should look.
You can use style on many HTML “elements”
(like <p> <h1> <table> etc)
What is “Style”
Two parts: (1) selector and (2) declaration.
Selector: the HTML element you want to add style to.
<p> <h1> <table> etc
Declaration: the statement of style for that element.
Made up of property and value.
How to write style rules
Selector {declaration;}
Declaration = {property: value;}
Property: what aspect you want to change
ex: color, font, margins, etc.
Value: the exact setting for that aspect.
ex: red, italic, 40px, etc.
How to write style rules
selector {property: value;}
Essentially means:
The thing I want to change
{the aspect of that thing I want to change: what I
want it to be;}
How to write style rules
Selector {property: value;}
h1 {color: red;}
Means: Speaking of my heading1, I want the text
color to be red.
How to write style rules
Selector {property: value;}
I want the color of the text in my paragraph
to be yellow.
How to write style rules
p {color: yellow;}
This is the text in this paragraph.
Selector {property: value;}
h1 {color: blue;
background-color: green;}
Means:
Speaking of my heading1, I want the text color to be
blue and the background color to be green.
How to write style rules
Selector {property: value;}
I want the text color of my link to be red
and the background color to be yellow.
How to write style rules
a{color: red;background-color: yellow;}
This is my link
There are three types of style-rule-places that we will
cover:
- Inlined
- Internal Style Sheet
- External Style Sheet
Where do I put my style rules?
<html>
<head><title>My Wonderful Example</title>
</head>
<body>
<p>What was I thinking?</p>
</body>
</html>
a) Inlined example-1
Original html
code
a) Inlined example-2
<body>
<p style=“text-align: center; font- weight:
bold; color: yellow;”>What was I thinking?</p>
</body>
What was I thinking?
<head><title>My Wonderful Example</title>
<style type=“text/css”>
body {
text-align: left;
font-family: trebuchet,
verdana;}
</style>
</head>
b) Internal-1
b) Internal-2
<head><title>My Wonderful Example</title>
<style type=“text/css”>
body
{
text-align: left;
font-family: Trebuchet,
verdana;
}
</style>
</head>
Internal: Statement of style
<style type=“text/css”>
…
</style>
this is a style
sheet (style type)
written (text) in
css (CSS)
language
Internal: Brackets & Declaration
<style type=“text/css”>
body
{
text-align: left;
font-family: trebuchet, verdana;
}
</style>
I want the
“align text”
property to be
given the value
of “left”
c) External
<html>
<head><title>My Way</title>
<link rel="stylesheet"
href="http://www2.hawaii.edu/~myway. css"
type="text/css“>
</head>
<body> </body>
</html> Link to a
separate css page
ThankThank You !!!You !!!
For More Information click below link:
Follow Us on:
http://vibranttechnologies.co.in/php-classes-in-mumbai.html

More Related Content

What's hot (17)

ODP
Introduction to css & its attributes with syntax
priyadharshini murugan
 
PPTX
Fwd week2 tw-20120903
TerryWeber
 
PPTX
Web programming css
Uma mohan
 
PDF
Css presentation introdution with sample basic projects
Digital Shende
 
PPT
Css1
Pulkit Tanwar
 
PPTX
Css intro
Andz Bass
 
PPSX
Introduction to css
Evolution Network
 
PPT
Basic HTML/CSS
Chris Heiden
 
PPTX
CSS- Cascading Style Sheet
Codewizacademy
 
PPTX
Css inclusion
AbhishekMondal42
 
PPT
Cascading Style Sheets
Marc Steel
 
PPSX
Session Two css
Mustafa Saeed
 
PPT
Html Expression Web
Mark Frydenberg
 
PPT
Cascading style sheet (css)]
9574395990
 
PDF
cascadingstylesheets
tutorialsruby
 
Introduction to css & its attributes with syntax
priyadharshini murugan
 
Fwd week2 tw-20120903
TerryWeber
 
Web programming css
Uma mohan
 
Css presentation introdution with sample basic projects
Digital Shende
 
Css intro
Andz Bass
 
Introduction to css
Evolution Network
 
Basic HTML/CSS
Chris Heiden
 
CSS- Cascading Style Sheet
Codewizacademy
 
Css inclusion
AbhishekMondal42
 
Cascading Style Sheets
Marc Steel
 
Session Two css
Mustafa Saeed
 
Html Expression Web
Mark Frydenberg
 
Cascading style sheet (css)]
9574395990
 
cascadingstylesheets
tutorialsruby
 

Similar to PHP - Introduction to PHP CSS (20)

PPTX
chitra
sweet chitra
 
PPTX
Introduction of css
Dinesh Kumar
 
PPT
CSS.ppt
MukulSingh293955
 
PPTX
Cascading style sheet an introduction
Himanshu Pathak
 
PPTX
v5-introduction to html-css-210321161444.pptx
hannahroseline2
 
PPTX
Cascading Styling Sheets(CSS) simple design language intended to transform th...
JebaRaj26
 
PPTX
CSS-ppt.pptx f df dff dfvdfv fdvfdfddf dfv df
drpreetiwctm
 
PPTX
cascading style sheets- About cascading style sheets on the selectors
JayanthiM19
 
PPTX
HTML to CSS Basics Exer 2.pptx
JJFajardo1
 
PPTX
Cascading style sheet, CSS Box model, Table in CSS
SherinRappai
 
PPTX
Introduction to CSS
Ameer Khan
 
PPTX
html-css
Dhirendra Chauhan
 
PPTX
it-150608145445-lva1-app6891Unit_3 .pptx
Shwetamaurya36
 
PPT
Introduction to css by programmerblog.net
Programmer Blog
 
PPTX
BITM3730 9-19.pptx
MattMarino13
 
PPTX
CASCADING STYLE SHEETS (CSS).pptx
Asmr17
 
PPTX
BITM3730 9-20.pptx
MattMarino13
 
PPTX
What is CSS.pptx power point presentation
Coderkids
 
chitra
sweet chitra
 
Introduction of css
Dinesh Kumar
 
Cascading style sheet an introduction
Himanshu Pathak
 
v5-introduction to html-css-210321161444.pptx
hannahroseline2
 
Cascading Styling Sheets(CSS) simple design language intended to transform th...
JebaRaj26
 
CSS-ppt.pptx f df dff dfvdfv fdvfdfddf dfv df
drpreetiwctm
 
cascading style sheets- About cascading style sheets on the selectors
JayanthiM19
 
HTML to CSS Basics Exer 2.pptx
JJFajardo1
 
Cascading style sheet, CSS Box model, Table in CSS
SherinRappai
 
Introduction to CSS
Ameer Khan
 
it-150608145445-lva1-app6891Unit_3 .pptx
Shwetamaurya36
 
Introduction to css by programmerblog.net
Programmer Blog
 
BITM3730 9-19.pptx
MattMarino13
 
CASCADING STYLE SHEETS (CSS).pptx
Asmr17
 
BITM3730 9-20.pptx
MattMarino13
 
What is CSS.pptx power point presentation
Coderkids
 
Ad

More from Vibrant Technologies & Computers (20)

PPT
Buisness analyst business analysis overview ppt 5
Vibrant Technologies & Computers
 
PPT
SQL Introduction to displaying data from multiple tables
Vibrant Technologies & Computers
 
PPT
SQL- Introduction to MySQL
Vibrant Technologies & Computers
 
PPT
SQL- Introduction to SQL database
Vibrant Technologies & Computers
 
PPT
ITIL - introduction to ITIL
Vibrant Technologies & Computers
 
PPT
Salesforce - Introduction to Security & Access
Vibrant Technologies & Computers
 
PPT
Data ware housing- Introduction to olap .
Vibrant Technologies & Computers
 
PPT
Data ware housing - Introduction to data ware housing process.
Vibrant Technologies & Computers
 
PPT
Data ware housing- Introduction to data ware housing
Vibrant Technologies & Computers
 
PPT
Salesforce - classification of cloud computing
Vibrant Technologies & Computers
 
PPT
Salesforce - cloud computing fundamental
Vibrant Technologies & Computers
 
PPT
SQL- Introduction to PL/SQL
Vibrant Technologies & Computers
 
PPT
SQL- Introduction to advanced sql concepts
Vibrant Technologies & Computers
 
PPT
SQL Inteoduction to SQL manipulating of data
Vibrant Technologies & Computers
 
PPT
SQL- Introduction to SQL Set Operations
Vibrant Technologies & Computers
 
PPT
Sas - Introduction to designing the data mart
Vibrant Technologies & Computers
 
PPT
Sas - Introduction to working under change management
Vibrant Technologies & Computers
 
PPT
SAS - overview of SAS
Vibrant Technologies & Computers
 
PPT
Teradata - Architecture of Teradata
Vibrant Technologies & Computers
 
PPT
Teradata - Restoring Data
Vibrant Technologies & Computers
 
Buisness analyst business analysis overview ppt 5
Vibrant Technologies & Computers
 
SQL Introduction to displaying data from multiple tables
Vibrant Technologies & Computers
 
SQL- Introduction to MySQL
Vibrant Technologies & Computers
 
SQL- Introduction to SQL database
Vibrant Technologies & Computers
 
ITIL - introduction to ITIL
Vibrant Technologies & Computers
 
Salesforce - Introduction to Security & Access
Vibrant Technologies & Computers
 
Data ware housing- Introduction to olap .
Vibrant Technologies & Computers
 
Data ware housing - Introduction to data ware housing process.
Vibrant Technologies & Computers
 
Data ware housing- Introduction to data ware housing
Vibrant Technologies & Computers
 
Salesforce - classification of cloud computing
Vibrant Technologies & Computers
 
Salesforce - cloud computing fundamental
Vibrant Technologies & Computers
 
SQL- Introduction to PL/SQL
Vibrant Technologies & Computers
 
SQL- Introduction to advanced sql concepts
Vibrant Technologies & Computers
 
SQL Inteoduction to SQL manipulating of data
Vibrant Technologies & Computers
 
SQL- Introduction to SQL Set Operations
Vibrant Technologies & Computers
 
Sas - Introduction to designing the data mart
Vibrant Technologies & Computers
 
Sas - Introduction to working under change management
Vibrant Technologies & Computers
 
SAS - overview of SAS
Vibrant Technologies & Computers
 
Teradata - Architecture of Teradata
Vibrant Technologies & Computers
 
Teradata - Restoring Data
Vibrant Technologies & Computers
 
Ad

Recently uploaded (20)

PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 

PHP - Introduction to PHP CSS

  • 3. Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage Web Workshop: CSS
  • 4. CSS stands for “Cascading Style Sheets” Cascading: refers to the procedure that determines which style will apply to a certain section, if you have more than one style rule. What is CSS?
  • 5. CSS stands for “Cascading Style Sheets” Style: how you want a certain part of your page to look. You can set things like color, margins, font, etc for things like tables, paragraphs, and headings. What is CSS?
  • 6. CSS stands for “Cascading Style Sheets” Sheets: the “sheets” are like templates, or a set of rules, for determining how the webpage will look. What is CSS?
  • 7. So, CSS (all together) is a styling language – a set of rules to tell browsers how your webpage should look. What is CSS?
  • 8. “Style” is a command that you set to tell the browser how a certain section of your webpage should look. You can use style on many HTML “elements” (like <p> <h1> <table> etc) What is “Style”
  • 9. Two parts: (1) selector and (2) declaration. Selector: the HTML element you want to add style to. <p> <h1> <table> etc Declaration: the statement of style for that element. Made up of property and value. How to write style rules
  • 10. Selector {declaration;} Declaration = {property: value;} Property: what aspect you want to change ex: color, font, margins, etc. Value: the exact setting for that aspect. ex: red, italic, 40px, etc. How to write style rules
  • 11. selector {property: value;} Essentially means: The thing I want to change {the aspect of that thing I want to change: what I want it to be;} How to write style rules
  • 12. Selector {property: value;} h1 {color: red;} Means: Speaking of my heading1, I want the text color to be red. How to write style rules
  • 13. Selector {property: value;} I want the color of the text in my paragraph to be yellow. How to write style rules p {color: yellow;} This is the text in this paragraph.
  • 14. Selector {property: value;} h1 {color: blue; background-color: green;} Means: Speaking of my heading1, I want the text color to be blue and the background color to be green. How to write style rules
  • 15. Selector {property: value;} I want the text color of my link to be red and the background color to be yellow. How to write style rules a{color: red;background-color: yellow;} This is my link
  • 16. There are three types of style-rule-places that we will cover: - Inlined - Internal Style Sheet - External Style Sheet Where do I put my style rules?
  • 17. <html> <head><title>My Wonderful Example</title> </head> <body> <p>What was I thinking?</p> </body> </html> a) Inlined example-1 Original html code
  • 18. a) Inlined example-2 <body> <p style=“text-align: center; font- weight: bold; color: yellow;”>What was I thinking?</p> </body> What was I thinking?
  • 19. <head><title>My Wonderful Example</title> <style type=“text/css”> body { text-align: left; font-family: trebuchet, verdana;} </style> </head> b) Internal-1
  • 20. b) Internal-2 <head><title>My Wonderful Example</title> <style type=“text/css”> body { text-align: left; font-family: Trebuchet, verdana; } </style> </head>
  • 21. Internal: Statement of style <style type=“text/css”> … </style> this is a style sheet (style type) written (text) in css (CSS) language
  • 22. Internal: Brackets & Declaration <style type=“text/css”> body { text-align: left; font-family: trebuchet, verdana; } </style> I want the “align text” property to be given the value of “left”
  • 23. c) External <html> <head><title>My Way</title> <link rel="stylesheet" href="http://www2.hawaii.edu/~myway. css" type="text/css“> </head> <body> </body> </html> Link to a separate css page
  • 24. ThankThank You !!!You !!! For More Information click below link: Follow Us on: http://vibranttechnologies.co.in/php-classes-in-mumbai.html

Editor's Notes

  • #10: Selector: the thing I want to make styled: a paragraph, a table, a header, etc. Declaration: what I want to do to my paragraph, table, header, etc.
  • #13: This is if you are writing an embedded style rule!
  • #14: This is if you are writing an embedded style rule!
  • #15: This is if you are writing an embedded style rule!
  • #16: This is if you are writing an embedded style rule!
  • #17: We just saw an example of “inlined” style. Are there any Qs?