SlideShare a Scribd company logo
Chapter 11:
USING CASCADING
STYLE SHEETS
REVIEW
   WHAT IS THE FULL CODE TO START A WEB
    PAGE./HTML DOCUMENTS?
   WHAT IS THE FULL CODE TO CHANGE THE
    BACKGROUND TO GREEN?
   WHAT IS THE HTML CODE TO USE IMAGE AS
    BACKGROUND?
   WHAT IS THE CODE TO START A PARAGRAPH
    AND INSERT A NEW LINE.
   HOW TO CHANGES THE FONT ATTRIBUTES.
   WHAT IS THE FULL CODE TO INSERT A TABLE?
   WHAT IS THE FULL CODE TO INSERT A VIDEO?
WHAT IS CSS?
   CSS stands for Cascading Style Sheets.
   It is a style language that specifies the
    layout of HTML documents.
   Many of the properties used in CSS are
    similar to those of HTML, thus basic
    experience with HTML is a pre-requisite.
   Using CSS allows you to separate the
    page’s contents from the page’s layout.
   CSS takes care of the layout while HTML
    handles the content’s structure.
CSS allows you to
 Save a lot of time- you can apply a set of
  styles to several parts of the web pages.
 Control the layout of many Web pages
  from one single style sheet only- you don’t
  need to go to entire pages just to change
  every code.
 Apply more advanced and sophisticated
  layout techniques.- CSS offers more
  formatting elements compared to standard
  HTML.
How do we write in CSS?
   The following is the basic syntax of CSS:

          Selector {property: value}

                       attribute
              HTML                 Value of
               tag                    the
                                   attribute




      Body {background-color: #FFCC00;}
APPLYING CSS TO AN HTML
DOCUMENT
 The 3 styles you can use to apply CSS are:
 1. in-line style
 2. internal style
 3. external style


   IN-LINE STYLE- is also called the attribute
    style because style attributes are placed
    within the HTML tag to be affected.
   You may use the in-line style if you need
    to apply a set of styles to only a single
    element in the web page. Otherwise, it
    forfeits the main purpose of CSS, which
    is to separate web content from layout
    or presentation.

   INTERNAL STYLE- is also called the tag
    style because CSS codes are placed
    within the <head></head> tag using the
    <style> tag.
   You may use the internal style if you
    need to apply a set of styles to the
    elements that are all found in a single
    web page. This is helpful if you want that
    the style will be exclusive for a single
    web page only.

   EXTERNAL STYLE- is a text file with
    .css extension. The HTML documents is
    linked to the style using an HTML code
    which is inserted in the header section
    of the HTML document.
 <html>
 <body style=“background-color: Dim gray;
  color: powder blue; font-size: 15pt; margin-
  left: 30px;”>

 <html>
 <head><title>Internal CSS style</title>
 <style type= “text/css”>
 Body{background: white url(“wallpaper.jpg”)
  no repeat fixed center;}
 <html>
 <head><title> External Style
  Sheet</title>
 <link rel= “stylesheet” type= “text/css
  href= “style.css”/>
 </head>
COMPUQUIZ
   The acronym CSS stands for?
   What is the main purpose of the CSS?
   CSS allows you to?
   What is the basic syntax of the CSS?
   What are the three styles of CSS?
   Which style is known as the attribute style?
   Which style is specified within the head
    tag?
   It is a text file with .css extension.

More Related Content

PPT
PPTX
Web programming css
PPTX
Css introduction
PPT
Cascading style sheet (css)]
PPTX
Html and css
PPTX
HTML and CSS
PPTX
CSS Basics - Stylesheets and Color
PPTX
Styling of css
Web programming css
Css introduction
Cascading style sheet (css)]
Html and css
HTML and CSS
CSS Basics - Stylesheets and Color
Styling of css

What's hot (18)

PPTX
Web development using HTML and CSS
PPSX
Introduction to css
PPTX
Styling text using css
PPT
PPTX
Introducing the style tag 2830
PPTX
Html & CSS
PDF
Html css
PPTX
Week 12 CSS - Review from last week
PPTX
html & css
PPTX
CSS- Cascading Style Sheet
PPTX
Coding a Website with HTML
PPTX
HTML- Hyper Text Markup Language
PDF
The Dark Arts of CSS
PPTX
Introduction to web design discussing which languages is used for website des...
PPTX
Web designing training in chandigarh
Web development using HTML and CSS
Introduction to css
Styling text using css
Introducing the style tag 2830
Html & CSS
Html css
Week 12 CSS - Review from last week
html & css
CSS- Cascading Style Sheet
Coding a Website with HTML
HTML- Hyper Text Markup Language
The Dark Arts of CSS
Introduction to web design discussing which languages is used for website des...
Web designing training in chandigarh
Ad

Viewers also liked (7)

PPTX
Powerpoint
PPTX
Designing web pages html videos
PPTX
Designing static pages using html formatting text
PPTX
Javascript alert and confrim box
PPTX
Css color and background properties
PPT
Microsoft word
PDF
TLE - Mechanical Drafting (Teaching Guide)
Powerpoint
Designing web pages html videos
Designing static pages using html formatting text
Javascript alert and confrim box
Css color and background properties
Microsoft word
TLE - Mechanical Drafting (Teaching Guide)
Ad

Similar to Unit iii css and javascript 1 (20)

PPT
PPTX
Cascading style sheet, CSS Box model, Table in CSS
PPTX
Introduction of css
PDF
Chapter 3 - CSS.pdf
PDF
cascading style sheets ppt.sildeshower phone view
PPTX
What is CSS.pptx power point presentation
PDF
Advanced Web Programming Chapter 8
PPT
CSS Training in Bangalore
PPTX
Welcome to css!
PPT
Css training tutorial css3 &amp; css4 essentials
PPTX
Lecture-6.pptx
DOC
Css introduction
PDF
PPTX
This is css which compiled by alex that is impo
PPTX
Beginners css tutorial for web designers
PPTX
HTML to CSS Basics Exer 2.pptx
PDF
Introduction to css
PPT
Using Cascading Style Sheets2
PDF
Vskills certified css designer Notes
Cascading style sheet, CSS Box model, Table in CSS
Introduction of css
Chapter 3 - CSS.pdf
cascading style sheets ppt.sildeshower phone view
What is CSS.pptx power point presentation
Advanced Web Programming Chapter 8
CSS Training in Bangalore
Welcome to css!
Css training tutorial css3 &amp; css4 essentials
Lecture-6.pptx
Css introduction
This is css which compiled by alex that is impo
Beginners css tutorial for web designers
HTML to CSS Basics Exer 2.pptx
Introduction to css
Using Cascading Style Sheets2
Vskills certified css designer Notes

More from Jesus Obenita Jr. (20)

PPTX
Organization and management 3 a Evolution of Management Theory
PPTX
Organization and management 2 Management Function
PPTX
Organization and management 1
PPTX
Designing web page marquee and img tag
PPTX
Ms excel 2013 formatting worksheets
PPTX
Ms excel 2013 data management
PPTX
Microsoft Excel introduction
PPTX
Word 2013 working with pictures
PPTX
Word 2013 Formatting Page
PPTX
Word 2013 8
PPTX
Ms word 2013 7
PPTX
Ms word 2013 6
PPTX
Ms word 2013 4
PPTX
Ms word 2013 2
PPTX
Ms word 2013
PPTX
Parts of the ms word 2013 screen and
PPTX
Word processor
PPT
Session 2 test construction.mt's
PPTX
Cooking ingredients
PPTX
Color theory
Organization and management 3 a Evolution of Management Theory
Organization and management 2 Management Function
Organization and management 1
Designing web page marquee and img tag
Ms excel 2013 formatting worksheets
Ms excel 2013 data management
Microsoft Excel introduction
Word 2013 working with pictures
Word 2013 Formatting Page
Word 2013 8
Ms word 2013 7
Ms word 2013 6
Ms word 2013 4
Ms word 2013 2
Ms word 2013
Parts of the ms word 2013 screen and
Word processor
Session 2 test construction.mt's
Cooking ingredients
Color theory

Recently uploaded (20)

PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
Complications of Minimal Access Surgery at WLH
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Cell Structure & Organelles in detailed.
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Lesson notes of climatology university.
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Classroom Observation Tools for Teachers
PDF
Insiders guide to clinical Medicine.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Final Presentation General Medicine 03-08-2024.pptx
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Complications of Minimal Access Surgery at WLH
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
O7-L3 Supply Chain Operations - ICLT Program
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Cell Types and Its function , kingdom of life
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Cell Structure & Organelles in detailed.
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
VCE English Exam - Section C Student Revision Booklet
2.FourierTransform-ShortQuestionswithAnswers.pdf
Lesson notes of climatology university.
Module 4: Burden of Disease Tutorial Slides S2 2025
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
human mycosis Human fungal infections are called human mycosis..pptx
Classroom Observation Tools for Teachers
Insiders guide to clinical Medicine.pdf
Supply Chain Operations Speaking Notes -ICLT Program
GDM (1) (1).pptx small presentation for students
Final Presentation General Medicine 03-08-2024.pptx

Unit iii css and javascript 1

  • 2. REVIEW  WHAT IS THE FULL CODE TO START A WEB PAGE./HTML DOCUMENTS?  WHAT IS THE FULL CODE TO CHANGE THE BACKGROUND TO GREEN?  WHAT IS THE HTML CODE TO USE IMAGE AS BACKGROUND?  WHAT IS THE CODE TO START A PARAGRAPH AND INSERT A NEW LINE.  HOW TO CHANGES THE FONT ATTRIBUTES.  WHAT IS THE FULL CODE TO INSERT A TABLE?  WHAT IS THE FULL CODE TO INSERT A VIDEO?
  • 3. WHAT IS CSS?  CSS stands for Cascading Style Sheets.  It is a style language that specifies the layout of HTML documents.  Many of the properties used in CSS are similar to those of HTML, thus basic experience with HTML is a pre-requisite.  Using CSS allows you to separate the page’s contents from the page’s layout.  CSS takes care of the layout while HTML handles the content’s structure.
  • 4. CSS allows you to  Save a lot of time- you can apply a set of styles to several parts of the web pages.  Control the layout of many Web pages from one single style sheet only- you don’t need to go to entire pages just to change every code.  Apply more advanced and sophisticated layout techniques.- CSS offers more formatting elements compared to standard HTML.
  • 5. How do we write in CSS?  The following is the basic syntax of CSS: Selector {property: value} attribute HTML Value of tag the attribute Body {background-color: #FFCC00;}
  • 6. APPLYING CSS TO AN HTML DOCUMENT  The 3 styles you can use to apply CSS are:  1. in-line style  2. internal style  3. external style  IN-LINE STYLE- is also called the attribute style because style attributes are placed within the HTML tag to be affected.
  • 7. You may use the in-line style if you need to apply a set of styles to only a single element in the web page. Otherwise, it forfeits the main purpose of CSS, which is to separate web content from layout or presentation.  INTERNAL STYLE- is also called the tag style because CSS codes are placed within the <head></head> tag using the <style> tag.
  • 8. You may use the internal style if you need to apply a set of styles to the elements that are all found in a single web page. This is helpful if you want that the style will be exclusive for a single web page only.  EXTERNAL STYLE- is a text file with .css extension. The HTML documents is linked to the style using an HTML code which is inserted in the header section of the HTML document.
  • 9.  <html>  <body style=“background-color: Dim gray; color: powder blue; font-size: 15pt; margin- left: 30px;”>  <html>  <head><title>Internal CSS style</title>  <style type= “text/css”>  Body{background: white url(“wallpaper.jpg”) no repeat fixed center;}
  • 10.  <html>  <head><title> External Style Sheet</title>  <link rel= “stylesheet” type= “text/css href= “style.css”/>  </head>
  • 11. COMPUQUIZ  The acronym CSS stands for?  What is the main purpose of the CSS?  CSS allows you to?  What is the basic syntax of the CSS?  What are the three styles of CSS?  Which style is known as the attribute style?  Which style is specified within the head tag?  It is a text file with .css extension.