SlideShare a Scribd company logo
1 of 7
Lesson 3: Experimenting with Fonts and Colors The filename “ewan” in Notepad was saved in CSS file. If you are going to save the css file for the first time, type “filename.css” (for example “ewan.css”).
Deprecated Tags and Attributes Deprecated – a deprecated element or attribute is one that has been outdated; it may become obsolete in the in the future but browsers should continue to support it for backward compatibility <center>                - Centers text <u>                         - Underlines text <s> or <strike>      - Defines strikethrough text <font>                     - Identifies font characteristics Style Sheet Associations External Style Sheet – a separate document or file where all the style sheet information are stored Internal Style Sheet – stores style information in your HTML document’s <head> tag and no external file is required for the style sheet to work. In-Line Style Sheet – stores information inside an HTML tag and, just like the internal style sheet, does not require an external file.
Style Sheet Syntax selector {  property: value   } Where selector – the HTML tag you want to define property and value – attribution or declaration, both are separated by colon (:) Typeface – another name for font Property and Value Usage 1. font-family = the font that your text will be in.  Allowed value for font-family: Arial, Lucida Console, Monotype Corsiva, Tahoma, Times New Roman Example 1: h1 {              font-family: arial; } Example 2: h1 {              font-family: “Monotype Corsiva”, Tahoma, arial; }
2. font-size Allowed value for font-size:  The Old 7 Size Font System: xx-small; x-small; small; medium; large; x-large; xx-large; (the default size is medium) larger; or smaller; % - percent relative to the default font size of the browser (e.g. 150%) pt – point size, the font-sizing system of Windows (e.g. 22pt) em – where the size of the font is multiplied by value of the number (e.g. 1em = 100% font size and 1.5em = 150% font size) 3. font-style Allowed value for font-style: italic; normal; and oblique 4. font-weight Allowed value for font-weight:  normal; lighter; bold; bolder 100 to 900 (100 = lightest & 900 = boldest, 400 is the default)
5. color Allowed value for color:  Aqua; black; blue; fuchsia; gray; green; lime; maroon; navy; olive; purple; red; silver; teal; white; yellow; transparent rgb(n,n,n)                           Where n = 0 to 255       red = rgb(255,0,0); green = rgb(0,255,0); blue = rgb (0,0,255);        black = rgb(0,0,0); white = rgb (255,255,255)  c. rgb-hex = #nnn or #nnnnnn 	Where n = #0 to f (in hexadecimal count) red = #f00 or #ff0000; green = #0f0 or #00ff00; blue = #00f or #0000ff; black = #000 or #000000; white #fff or ffffff Hexadecimal – numbering system that is base-16 rather than our commonly used decimal numbering system of base-10 6. text-align Allowed value for text-align: left; right; center; justify 7. text-decoration Allowed value for text-decoration: capitalize; uppercase; lowercase; none
8. letter-spacing – refer to space between letters Allowed value for letter-spacing: normal; and _em 9. word-spacing – refer to space between words Allowed value for word-spacing: normal; and _em 10. line-height – refer to space between lines Allowed value for word-spacing: normal; _%; and _em
Escape Sequences – other characters with special meanings in HTML that cannot be used as they are in text < (Less Than) 		= &lt; > (Greater Than)		= &gt; © (Copyright)		= &copy; & (Ampersand)		= &amp; “ (Quote)			= &quot; ñ (Lowercase n with tilde) 	= &ntilde; è (Lowercase with 		= &egrave      grave accent) ç (Lowercase c with cedilla) 	= &ccedil; â (Lowercase a with 	= &acirc;      circumflex accent) ü (Lowercase u with umlaut) 	= &uuml; Comment Tags Comments – written remarks in your HTML or CSS document which will not be displayed in the browser For HTML format:  <!– type your comments here --> For CSS format: /*  type your comments here */

More Related Content

Similar to Second year 2nd quarter CSBN - CSS, fonts and color

Web Design Course: CSS lecture 3
Web Design Course: CSS lecture 3Web Design Course: CSS lecture 3
Web Design Course: CSS lecture 3Gheyath M. Othman
 
C++ CoreHard Autumn 2018. Text Formatting For a Future Range-Based Standard L...
C++ CoreHard Autumn 2018. Text Formatting For a Future Range-Based Standard L...C++ CoreHard Autumn 2018. Text Formatting For a Future Range-Based Standard L...
C++ CoreHard Autumn 2018. Text Formatting For a Future Range-Based Standard L...corehard_by
 
Formating Text Using CSS
Formating Text Using CSSFormating Text Using CSS
Formating Text Using CSSMark Carter
 
Web Engineering - Introduction to CSS
Web Engineering - Introduction to CSSWeb Engineering - Introduction to CSS
Web Engineering - Introduction to CSSNosheen Qamar
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSSLarry King
 
2_css.pptx
2_css.pptx2_css.pptx
2_css.pptxVarunMM2
 
2_css.pptx
2_css.pptx2_css.pptx
2_css.pptxVarunMM2
 
CSS INHERITANCE
CSS INHERITANCECSS INHERITANCE
CSS INHERITANCEAnuradha
 
Css 1
Css 1Css 1
Css 1H K
 
CSS properties.docx
CSS properties.docxCSS properties.docx
CSS properties.docxbantisworld
 
Format String Attack
Format String AttackFormat String Attack
Format String AttackMayur Mallya
 

Similar to Second year 2nd quarter CSBN - CSS, fonts and color (20)

Sass Essentials
Sass EssentialsSass Essentials
Sass Essentials
 
Web Design Course: CSS lecture 3
Web Design Course: CSS lecture 3Web Design Course: CSS lecture 3
Web Design Course: CSS lecture 3
 
CSS ppt
CSS pptCSS ppt
CSS ppt
 
CSS for Beginners
CSS for BeginnersCSS for Beginners
CSS for Beginners
 
C++ CoreHard Autumn 2018. Text Formatting For a Future Range-Based Standard L...
C++ CoreHard Autumn 2018. Text Formatting For a Future Range-Based Standard L...C++ CoreHard Autumn 2018. Text Formatting For a Future Range-Based Standard L...
C++ CoreHard Autumn 2018. Text Formatting For a Future Range-Based Standard L...
 
Formating Text Using CSS
Formating Text Using CSSFormating Text Using CSS
Formating Text Using CSS
 
Getting started with css
Getting started with cssGetting started with css
Getting started with css
 
Web Engineering - Introduction to CSS
Web Engineering - Introduction to CSSWeb Engineering - Introduction to CSS
Web Engineering - Introduction to CSS
 
Css summary
Css summaryCss summary
Css summary
 
Css
CssCss
Css
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
2_css.pptx
2_css.pptx2_css.pptx
2_css.pptx
 
2_css.pptx
2_css.pptx2_css.pptx
2_css.pptx
 
Pemrograman Web 2 - CSS
Pemrograman Web 2 - CSSPemrograman Web 2 - CSS
Pemrograman Web 2 - CSS
 
Css1 properties
Css1 propertiesCss1 properties
Css1 properties
 
Estilos Css
Estilos CssEstilos Css
Estilos Css
 
CSS INHERITANCE
CSS INHERITANCECSS INHERITANCE
CSS INHERITANCE
 
Css 1
Css 1Css 1
Css 1
 
CSS properties.docx
CSS properties.docxCSS properties.docx
CSS properties.docx
 
Format String Attack
Format String AttackFormat String Attack
Format String Attack
 

Recently uploaded

Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answersdalebeck957
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 

Recently uploaded (20)

Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 

Second year 2nd quarter CSBN - CSS, fonts and color

  • 1. Lesson 3: Experimenting with Fonts and Colors The filename “ewan” in Notepad was saved in CSS file. If you are going to save the css file for the first time, type “filename.css” (for example “ewan.css”).
  • 2. Deprecated Tags and Attributes Deprecated – a deprecated element or attribute is one that has been outdated; it may become obsolete in the in the future but browsers should continue to support it for backward compatibility <center> - Centers text <u> - Underlines text <s> or <strike> - Defines strikethrough text <font> - Identifies font characteristics Style Sheet Associations External Style Sheet – a separate document or file where all the style sheet information are stored Internal Style Sheet – stores style information in your HTML document’s <head> tag and no external file is required for the style sheet to work. In-Line Style Sheet – stores information inside an HTML tag and, just like the internal style sheet, does not require an external file.
  • 3. Style Sheet Syntax selector { property: value } Where selector – the HTML tag you want to define property and value – attribution or declaration, both are separated by colon (:) Typeface – another name for font Property and Value Usage 1. font-family = the font that your text will be in. Allowed value for font-family: Arial, Lucida Console, Monotype Corsiva, Tahoma, Times New Roman Example 1: h1 { font-family: arial; } Example 2: h1 { font-family: “Monotype Corsiva”, Tahoma, arial; }
  • 4. 2. font-size Allowed value for font-size: The Old 7 Size Font System: xx-small; x-small; small; medium; large; x-large; xx-large; (the default size is medium) larger; or smaller; % - percent relative to the default font size of the browser (e.g. 150%) pt – point size, the font-sizing system of Windows (e.g. 22pt) em – where the size of the font is multiplied by value of the number (e.g. 1em = 100% font size and 1.5em = 150% font size) 3. font-style Allowed value for font-style: italic; normal; and oblique 4. font-weight Allowed value for font-weight: normal; lighter; bold; bolder 100 to 900 (100 = lightest & 900 = boldest, 400 is the default)
  • 5. 5. color Allowed value for color: Aqua; black; blue; fuchsia; gray; green; lime; maroon; navy; olive; purple; red; silver; teal; white; yellow; transparent rgb(n,n,n) Where n = 0 to 255 red = rgb(255,0,0); green = rgb(0,255,0); blue = rgb (0,0,255); black = rgb(0,0,0); white = rgb (255,255,255) c. rgb-hex = #nnn or #nnnnnn Where n = #0 to f (in hexadecimal count) red = #f00 or #ff0000; green = #0f0 or #00ff00; blue = #00f or #0000ff; black = #000 or #000000; white #fff or ffffff Hexadecimal – numbering system that is base-16 rather than our commonly used decimal numbering system of base-10 6. text-align Allowed value for text-align: left; right; center; justify 7. text-decoration Allowed value for text-decoration: capitalize; uppercase; lowercase; none
  • 6. 8. letter-spacing – refer to space between letters Allowed value for letter-spacing: normal; and _em 9. word-spacing – refer to space between words Allowed value for word-spacing: normal; and _em 10. line-height – refer to space between lines Allowed value for word-spacing: normal; _%; and _em
  • 7. Escape Sequences – other characters with special meanings in HTML that cannot be used as they are in text < (Less Than) = &lt; > (Greater Than) = &gt; © (Copyright) = &copy; & (Ampersand) = &amp; “ (Quote) = &quot; ñ (Lowercase n with tilde) = &ntilde; è (Lowercase with = &egrave grave accent) ç (Lowercase c with cedilla) = &ccedil; â (Lowercase a with = &acirc; circumflex accent) ü (Lowercase u with umlaut) = &uuml; Comment Tags Comments – written remarks in your HTML or CSS document which will not be displayed in the browser For HTML format: <!– type your comments here --> For CSS format: /* type your comments here */