SlideShare a Scribd company logo
1 of 29
Download to read offline
CSS
Cascading style sheet
• CSS is the language for describing the
presentation of Web pages including fonts,
colors, margins, lines, height, width,
background images, advanced positions and
many other things.
• CSS is independent of HTML and can be used
with any XML-based markup language.
What is the difference between CSS and HTML?
HTML is used to structure content.
CSS is used for formatting structured content.
What are the benefits of CSS?
• control layout of many documents from one
single style sheet
• more precise control of layout
• apply different layout to different media-types
• numerous advanced and sophisticated
techniques.
Levels of style sheets
The 3 levels of style sheets are –
1. External style sheet
2. Internal style sheet
3. Inline style
Inline Style
• It is applied to a single element of the HTML tag.
• The style attribute to the relevant tag.
• They’re useful for quick and permanent changes
but are less flexible than external and internal
stylesheets, as each inline style you create must
be edited separately if you’re making a design
change.
<html>
<body bgcolor="yellow">
<h2 style="background-color:red;">
This is a heading
</h2>
<p style="background-color:green;">
This is a paragraph.
</p>
</body>
</html>
Internal Style Sheet
• An internal stylesheet holds CSS rules for the
page in the head section of the HTML file.
• The rules only apply to that page, but you can
configure CSS classes and IDs to style multiple
elements in the page code.
• A single change to the CSS rule will apply to all
tagged page elements.
<head>
<style type="text/css">
h1
{
color:#ffff00;
margin-left: 20px;
}
p
{ font-family: Arial, Helvetica, Sans Serif;
}
</style>
</head>
External Style Sheet
• An external stylesheet is a standalone .css file
linked from a web page.
• The external stylesheets, can be used to apply
rules to multiple web pages.
• The single change in the stylesheet can be
applied to all linked pages, saving lots of time
and effort.
<head>
<link rel="stylesheet" type="text/css"
href="mystyle.css">
</head>
mystyle.css
body
{
background-color: lightblue;
}
h1
{
color: navy;
margin-left: 20px;
}
What is difference between internal and inline
CSS?
• Inline styles relate to a specific HTML tag,
using a style attribute with a CSS rule to style a
particular page element.
• An internal stylesheet holds CSS rules for the
page in the head section of the HTML file.
CSS Box Model
• The CSS box model is the foundation of layout
on the Web — each element is represented as
a rectangular box, with the box's content,
padding, border, and margin built up around
one another like layers
• The width and height properties set the width
and height of the content box, which is the area
in which the content of the box is displayed.
• Padding refers to the inner margin of a CSS box —
between the outer edge of the content box and
the inner edge of the border.
• The properties are padding-top, padding-
right, padding-bottom and padding-
left properties.
Bootstrap
• Bootstrap is the popular CSS Framework for
developing responsive and mobile-first
websites.
• Bootstrap 5 is the newest version
• Bootstrap 5 supports all major browsers
except Internet Explorer 11 and lower version.
• Bootstrap is a potent front-end framework used
to create modern websites and web apps.
• It is open-source
• It includes HTML and CSS based design templates
for creating common user interface components
like forms, buttons, navigations, dropdowns,
alerts, modals, tabs, accordions, carousels,
tooltips, and so on.
• Bootstrap gives you ability to create flexible
and responsive web layouts with much less
efforts.
• Bootstrap was originally created by a designer
and a developer at Twitter in mid-2010.
Before being an open-sourced framework,
Bootstrap was known as Twitter Blueprint.
What is The Viewport?
• The viewport is the user's visible area of a web
page.
• The viewport varies with the device, and will be
smaller on a mobile phone than on a computer
screen.
• Before tablets and mobile phones, web pages
were designed only for computer screens, and it
was common for web pages to have a static
design and a fixed size.
• HTML5 introduced a method to let web
designers take control over the viewport,
through the <meta> tag.
• <meta name="viewport" content="width=devi
ce-width, initial-scale=1.0">
• This gives the browser instructions on how to
control the page's dimensions and scaling.
• The width=device-width part sets the width of
the page to follow the screen-width of the device
(which will vary depending on the device).
• The initial-scale=1.0 part sets the initial zoom
level when the page is first loaded by the
browser.

More Related Content

Similar to CSS Bootstrap.pdf

Web design-workflow
Web design-workflowWeb design-workflow
Web design-workflowPeter Kaizer
 
Cascading Style Sheets for web browser.pptx
Cascading Style Sheets for web browser.pptxCascading Style Sheets for web browser.pptx
Cascading Style Sheets for web browser.pptxalvindalejoyosa1
 
basic programming language AND HTML CSS JAVApdf
basic programming language AND HTML CSS JAVApdfbasic programming language AND HTML CSS JAVApdf
basic programming language AND HTML CSS JAVApdfelayelily
 
BITM3730 9-20.pptx
BITM3730 9-20.pptxBITM3730 9-20.pptx
BITM3730 9-20.pptxMattMarino13
 
BITM3730 9-19.pptx
BITM3730 9-19.pptxBITM3730 9-19.pptx
BITM3730 9-19.pptxMattMarino13
 
WEBD 162: Intro to CSS
WEBD 162: Intro to CSSWEBD 162: Intro to CSS
WEBD 162: Intro to CSSpalomateach
 
Unit iii css and javascript 1
Unit iii css and javascript 1Unit iii css and javascript 1
Unit iii css and javascript 1Jesus Obenita Jr.
 
WEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptxWEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptxkarthiksmart21
 
Vskills certified css designer Notes
Vskills certified css designer NotesVskills certified css designer Notes
Vskills certified css designer NotesVskills
 
Cascading style sheets (CSS)
Cascading style sheets (CSS)Cascading style sheets (CSS)
Cascading style sheets (CSS)Harshita Yadav
 
Supplement web design
Supplement web designSupplement web design
Supplement web designshelly3160
 
Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8RohanMistry15
 
New Css style
New Css styleNew Css style
New Css styleBUDNET
 

Similar to CSS Bootstrap.pdf (20)

Web design-workflow
Web design-workflowWeb design-workflow
Web design-workflow
 
Pertemuan 7
Pertemuan 7Pertemuan 7
Pertemuan 7
 
CSS.pptx
CSS.pptxCSS.pptx
CSS.pptx
 
Cascading Style Sheets for web browser.pptx
Cascading Style Sheets for web browser.pptxCascading Style Sheets for web browser.pptx
Cascading Style Sheets for web browser.pptx
 
xhtml_css.ppt
xhtml_css.pptxhtml_css.ppt
xhtml_css.ppt
 
Web Design Norms
Web Design NormsWeb Design Norms
Web Design Norms
 
basic programming language AND HTML CSS JAVApdf
basic programming language AND HTML CSS JAVApdfbasic programming language AND HTML CSS JAVApdf
basic programming language AND HTML CSS JAVApdf
 
BITM3730 9-20.pptx
BITM3730 9-20.pptxBITM3730 9-20.pptx
BITM3730 9-20.pptx
 
BITM3730 9-19.pptx
BITM3730 9-19.pptxBITM3730 9-19.pptx
BITM3730 9-19.pptx
 
WEBD 162: Intro to CSS
WEBD 162: Intro to CSSWEBD 162: Intro to CSS
WEBD 162: Intro to CSS
 
Css
CssCss
Css
 
Unit iii css and javascript 1
Unit iii css and javascript 1Unit iii css and javascript 1
Unit iii css and javascript 1
 
WEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptxWEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptx
 
CSS.ppt
CSS.pptCSS.ppt
CSS.ppt
 
Vskills certified css designer Notes
Vskills certified css designer NotesVskills certified css designer Notes
Vskills certified css designer Notes
 
Cascading style sheets (CSS)
Cascading style sheets (CSS)Cascading style sheets (CSS)
Cascading style sheets (CSS)
 
Supplement web design
Supplement web designSupplement web design
Supplement web design
 
Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8
 
New Css style
New Css styleNew Css style
New Css style
 
Html presentation
Html presentationHtml presentation
Html presentation
 

Recently uploaded

What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 

Recently uploaded (20)

young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 

CSS Bootstrap.pdf

  • 2. • CSS is the language for describing the presentation of Web pages including fonts, colors, margins, lines, height, width, background images, advanced positions and many other things. • CSS is independent of HTML and can be used with any XML-based markup language.
  • 3. What is the difference between CSS and HTML?
  • 4. HTML is used to structure content. CSS is used for formatting structured content.
  • 5. What are the benefits of CSS?
  • 6. • control layout of many documents from one single style sheet • more precise control of layout • apply different layout to different media-types • numerous advanced and sophisticated techniques.
  • 8. The 3 levels of style sheets are – 1. External style sheet 2. Internal style sheet 3. Inline style
  • 9. Inline Style • It is applied to a single element of the HTML tag. • The style attribute to the relevant tag. • They’re useful for quick and permanent changes but are less flexible than external and internal stylesheets, as each inline style you create must be edited separately if you’re making a design change.
  • 10. <html> <body bgcolor="yellow"> <h2 style="background-color:red;"> This is a heading </h2> <p style="background-color:green;"> This is a paragraph. </p> </body> </html>
  • 11. Internal Style Sheet • An internal stylesheet holds CSS rules for the page in the head section of the HTML file. • The rules only apply to that page, but you can configure CSS classes and IDs to style multiple elements in the page code. • A single change to the CSS rule will apply to all tagged page elements.
  • 12. <head> <style type="text/css"> h1 { color:#ffff00; margin-left: 20px; } p { font-family: Arial, Helvetica, Sans Serif; } </style> </head>
  • 13. External Style Sheet • An external stylesheet is a standalone .css file linked from a web page. • The external stylesheets, can be used to apply rules to multiple web pages. • The single change in the stylesheet can be applied to all linked pages, saving lots of time and effort.
  • 16. What is difference between internal and inline CSS?
  • 17. • Inline styles relate to a specific HTML tag, using a style attribute with a CSS rule to style a particular page element. • An internal stylesheet holds CSS rules for the page in the head section of the HTML file.
  • 19.
  • 20. • The CSS box model is the foundation of layout on the Web — each element is represented as a rectangular box, with the box's content, padding, border, and margin built up around one another like layers
  • 21. • The width and height properties set the width and height of the content box, which is the area in which the content of the box is displayed. • Padding refers to the inner margin of a CSS box — between the outer edge of the content box and the inner edge of the border. • The properties are padding-top, padding- right, padding-bottom and padding- left properties.
  • 23. • Bootstrap is the popular CSS Framework for developing responsive and mobile-first websites. • Bootstrap 5 is the newest version • Bootstrap 5 supports all major browsers except Internet Explorer 11 and lower version.
  • 24. • Bootstrap is a potent front-end framework used to create modern websites and web apps. • It is open-source • It includes HTML and CSS based design templates for creating common user interface components like forms, buttons, navigations, dropdowns, alerts, modals, tabs, accordions, carousels, tooltips, and so on.
  • 25. • Bootstrap gives you ability to create flexible and responsive web layouts with much less efforts. • Bootstrap was originally created by a designer and a developer at Twitter in mid-2010. Before being an open-sourced framework, Bootstrap was known as Twitter Blueprint.
  • 26. What is The Viewport?
  • 27. • The viewport is the user's visible area of a web page. • The viewport varies with the device, and will be smaller on a mobile phone than on a computer screen. • Before tablets and mobile phones, web pages were designed only for computer screens, and it was common for web pages to have a static design and a fixed size.
  • 28. • HTML5 introduced a method to let web designers take control over the viewport, through the <meta> tag. • <meta name="viewport" content="width=devi ce-width, initial-scale=1.0">
  • 29. • This gives the browser instructions on how to control the page's dimensions and scaling. • The width=device-width part sets the width of the page to follow the screen-width of the device (which will vary depending on the device). • The initial-scale=1.0 part sets the initial zoom level when the page is first loaded by the browser.