SlideShare a Scribd company logo
Which house do you prefer to live?
Fashioning CSS
if HTML handles the contents of the webpage,
then CSS is in charge of the presentation. HTML
is about meaning, while the CSS is about
formatting.
CSS – Cascading Styles Sheet
The basic pattern for CSS commands is:
Property: value
Property is the feature of the paragraph you want to style, and
value is the style itself, such as the height of one line in a
paragraph.
<span style=“font-style: italic;”> this text is italicized
</span>
P V
Types of CSS
there are three types of style sheets and they are
arranged, cascaded, according to superiority, they will
follow the command of the most superior styles sheet.
1.Inline Style Sheet
2.Internal Style Sheet
3.External Style Sheet
Inline
is the first most specific, and highest priority
among the three different sheets is the in-line
style sheet, which contains CSS commands
embedded or placed inside the HTML tags.
Although this the most superior of the three
this also the least flexible.
Internal
the second priority sheet is the internal
style sheet, which resembles a summary
of CSS commands located at the upper
portion of the HTML document
External
the third and most highly recommended
type pf CSS sheet is the external sheet,
which list all of the CSS commands in a
separate documents. This is a plain text file
that can be written in any text editor has
the file extension name.css.
HTML Document
(save as “font.html”)
External CSS File
(save as “external.css”)
Deprecated tags and
attributes
Deprecated tags and attributes are those that
have been replaced by other, newer, HTML
constructs. Deprecated tags are still included in
the HTML draft or recommendation but are
clearly marked as deprecated. Once deprecated,
tags may well become obsolete.
<CENTER>...</CENTER>
The <CENTER>...</CENTER> tag, oddly enough,
centered text or graphics. <CENTER> is deprecated in
favor of <DIV> tag with the align attribute set to "center."
<FONT>...</FONT>
<FONT>...</FONT>allowed the specification of font
sizes, colors, and faces. Style sheets, rather than HTML
code, have taken over character formatting duties.
<STRIKE>...</STRIKE> and <S>...</S>
Both <STRIKE>...</STRIKE> and <S>...</S> created
strikethrough characters. Replace these tags with style
sheets.
<U>...</U>
<U>...</U> created underlined characters. As with the
above, use style sheets to create underlines.
Style Sheet Syntax
The CSS syntax is made up of three parts: Selector, Property, and
Value
Selector { property: value }
p { font – family : arial }
The selector is the HTML tag you want to define while
property corresponds to an attribute, with each property
capable of taking on a value. The property and value are
separated by a colon (:) and surrounded by curly brackets ({}).
The structure “property: value” form a declaration.
P V
If you want to specify more than one property, you must separate
each property with a semicolon.
p { font – family: arial; font – style: italic }
P V P V
To make the style definitions more readable, you can put
each property on separate lines. It is also advisable to add a
semicolon to the last entry for a tidier markup.
p {
font – family: arial;
font – style: italic;
}
P V
Font – family
this is the font that your text will be in. cautions of using fancy
fonts, as not all web browser can read all font types. Common type
such Arial and Times New Roman. And remember to put font types
with more than one name inside quotation marks, such as
“Monotype Corsiva.”
h3 {
font – family: “Lucida Console”, Tahoma, Arial;
}
Font-size – there are ways to specify the font’s size:
1. Old 7 Size Font System – has the following values:
a. xx-small
b. x-small
c. small
d. medium
e. large
f. x-large
g. xx-large
where medium is the default font size of the browser
2. Larger or smaller – relatives to the Old 7 Size Font
System.
3. % - percent relative to the default font size of the
browser e.g., 150%
4. pt - point size, the font-sizing system of Windows, e.g.,
22pt
5. em – where the size of the font is multiplied by the value
of the number, e.g., 3em is three
Font – style – Possible values for this property are:
italic, normal, and oblique, where oblique looks
almost same as italic.
Font weight – this refers to how thick each letter
will become. Its values are: normal, lighter, bold,
bolder. You may also use multiples of 100, where
100 is the lightest and the 900 is the boldest (400
being the default)
Color
the color property refers to the color of the text. Its value
can be any color, as long as it can be reproduced by the
computer. The CSS rainbow is made up of 16,777,216 colors.
By name
there are 16 colors that can be encoded by name in
aqua, black, blue, fuchsia, gray, green, lime, maroon, navy,
olive, purple, red, silver, teal, white, and yellow.
p {
color: black;
font-size: 80%;
}
By the rgb value. You type it in this format: rgb (n,n,n)
where n is number from 0 to 255.
COLOR RGB Value
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)
And so on according to the different shades
By the rgb-hex code. Hex means hexadecimal. It composed of 16
digits: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E and F (with 0 is being the lowest
and F being the highest) you can write the hex code in two ways:
COLOR #RRGGBB #RGB
Red #ff0000 #f00
Green #00ff00 #0f0
Blue #0000ff #00f
Black #000000 #000
White #ffffff #fff
And so on according to the different shades
Three types of text properties
Text – align
the values available are: left, right, center and justify.
Text – decoration
the values available are: overline (line above the text), strike-
through (line-through text), underline (use sparingly and if possible
only on links), and none (usually to remove underline from the
Text – transform
the values available are: capitalize(to capitalize the first letter of
every word) uppercase (to capitalize all letters in a word), lowercase
(to set capitals to lowercase for all the letters of the word, and none.
Letter-spacing – This refers to the space between letter, whose
values are: normal or em_
(indicating the length of space between letters e.g., 5em).
Word-spacing - this refers to the space between words, whose
values are normal or em.
Line-height – this refers to the space between lines whose
values are: normal, _%, or _em. This adjust the height of the
line or lines of text (for example, in a paragraph).
Special Characters
Most languages contain a number of special characters with
marks that you may need to use. These are particularly important if
plan to display text in languages other than English
Escape Sequences
There are also other characters with special meaning in HTML that
cannot be used in a text just as they are, such as the left angle bracket
(<) and the right angle bracket (>), which are indicated the beginning
and the end of tags.
All escape sequences start with an ampersand (&) and end with the
semicolon (;). They usually have two to six letters, typically resemble
characters they produce. “&copy;” is the copyright escape sequences,
which displays in the browsers as ©.
Escape Sequence Special
Character
Description Type
&lt; < Less than
Symbols
&gt; > Greater than
&copy; © Copyright
&amp; & Ampersand
&quot; “ Double quotes (left and right hand)
&ntilde; ñ Lowercase n with tilde
Letters
&egrave; è Lowercase e with grave accent
&ccedil; ç Lowercase c with cedilla
&acirc; â Lowercase a with circumflex accent
&uuml; ü Lowercase u with umlaut
Comment Tags
You can also put down other useful information, such as when you need
update a page you created long ago, or like the name of the software and
version you used to create a file, or even the date you last edited it. In HTML
you start with the comment with
<!-- and end the comment with -->.
You must include the exclamation mark and the hyphens must be
present on both side. In CSS document comment take the form:
Comments – written remarks in your HTML or CSS
document which will not be displayed in the browser.
Declaration – in webpage development, refers to the
structure property: value
Deprecated – a deprecated element or attribute is
one that has been outdated; it may become obsolete
in the future, but browsers should continue support it
for backward compability.
Escape Sequences – other characters with special
meanings in HTML that cannot be used as they are
a text.
External Style Sheet – a separate document where all
style sheet information are stored.
Hexadecimal – a numbering system that is base-16
rather than our commonly used decimal numbering
system of base-10
Internal Style Sheet – stores styles information in the
<head> tag; 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
Typeface – another name for font.
A. Match the syntax/ properties with their correct function. Write the letter of the
correct answer.
____1. color a. align the text in an element
____2. text-align b. trademark symbol
____3. &trade; c. fixes or scrolls a background
images with the rest of the page
____4. #ffffff d. CSS comment tag
____5. text-transform e. controls the letters in an elements
____6. #000000 f. white
____7. &copy; g. sets of color of a text
____8. <!—some text--> h. copyright symbol
____9. background-attachment i. black
___10. /*some text*/ j. HTML comment tag
Match the CSS properties with their associated values. Write the letter of the
correct answer on the blank.
____1. font-style a. normal, lighter, bold, bolder
____2. word-spacing b. Verdana, Trebuchet MS, Times
New Roman
____3. text-decoration c. 300%, 35pt, 5em
____4. font-weight d. capitalize, uppercase,
lowercase, none
____5. line-height e. left, right, center, justify
____6. text-transform f. overline, strike-through, underline
____7. color g. italic, normal, oblique
____8. font-family h. normal, 2em
____9. font-size i. normal, 60%, 8em
____10. text-align j. red rgb(200, 80, 165), #79f6ab
1. the first most specific, and highest
priority among the three different sheets is
the in-line style sheet.
2. the second priority sheet is the internal style sheet,
which resembles a summary of CSS commands located
at the upper portion of the HTML document
3. the third and most highly recommended
type pf CSS sheet is the external sheet, which
list all of the CSS commands in a separate
documents.
4. This tags and attributes are those that have been
replaced by other, newer, HTML constructs.
5. this refers to how thick or thin of
each letter of the text.
6. How many colors can be reproduced by the
computer in the CSS rainbow?
7. This character start with an ampersand (&)
and end with the semicolon (;).
8. A written remarks in your HTML or CSS
document which will not be displayed in the
browser.
9. in webpage development, it refers to
the structure property: value.
10. a numbering system that is base-16
rather than our commonly used decimal
numbering system of base-10
11. another name for font.

More Related Content

What's hot

Ict 9 module 1 pecs
Ict 9 module 1 pecsIct 9 module 1 pecs
Ict 9 module 1 pecs
Yonel Cadapan
 
Css margins
Css marginsCss margins
Css margins
Webtech Learning
 
K to 12 computer hardware servicing NCII
K to 12 computer hardware servicing NCIIK to 12 computer hardware servicing NCII
K to 12 computer hardware servicing NCII
Glad Norman Limocon
 
Budget of lesson in TLE ICT CHS 10
Budget of lesson in TLE ICT CHS 10Budget of lesson in TLE ICT CHS 10
Budget of lesson in TLE ICT CHS 10
Leonel Rivas
 
TLE ICT 10 CSS MELC (UNOFFICIAL)
TLE ICT 10 CSS MELC (UNOFFICIAL)TLE ICT 10 CSS MELC (UNOFFICIAL)
TLE ICT 10 CSS MELC (UNOFFICIAL)
Leonel Rivas
 
Final Demo Semi Detailed Lesson Plan in TLE 2 (LAN Cabling)
Final Demo Semi Detailed Lesson Plan in TLE 2 (LAN Cabling)Final Demo Semi Detailed Lesson Plan in TLE 2 (LAN Cabling)
Final Demo Semi Detailed Lesson Plan in TLE 2 (LAN Cabling)
Manila Central University
 
HTML Start Up - Introduction to HTML
HTML Start Up - Introduction to HTMLHTML Start Up - Introduction to HTML
HTML Start Up - Introduction to HTML
Grayzon Gonzales, LPT
 
What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)
Ahsan Rahim
 
Use of tools in pc hardware servicing
Use of tools in pc hardware servicingUse of tools in pc hardware servicing
Use of tools in pc hardware servicing
EILLEN IVY PORTUGUEZ
 
Computer hardware servicing practice occupational health and safety procedure
Computer hardware servicing   practice occupational health and safety procedure Computer hardware servicing   practice occupational health and safety procedure
Computer hardware servicing practice occupational health and safety procedure
Grayzon Gonzales, LPT
 
HTML: Tables and Forms
HTML: Tables and FormsHTML: Tables and Forms
HTML: Tables and Forms
BG Java EE Course
 
Strategic Intervention Material for TLE 8 - Electronics
Strategic Intervention Material for TLE 8 - ElectronicsStrategic Intervention Material for TLE 8 - Electronics
Strategic Intervention Material for TLE 8 - Electronics
Jay Rupert Yasis
 
Lesson 1 UNDERSTANDING MS WORD 2016.pptx
Lesson 1 UNDERSTANDING MS WORD 2016.pptxLesson 1 UNDERSTANDING MS WORD 2016.pptx
Lesson 1 UNDERSTANDING MS WORD 2016.pptx
ChristianVelchez2
 
K to 12 pc hardware servicing teacher's guide
K to 12 pc hardware servicing teacher's guideK to 12 pc hardware servicing teacher's guide
K to 12 pc hardware servicing teacher's guide
Tactical Foundation - Research and Extension Program
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
IT Geeks
 
Html ppt
Html pptHtml ppt
Html ppt
Iblesoft
 
TLE 7-8 ICT-CSS Q1_M3 for printing.pdf
TLE 7-8 ICT-CSS Q1_M3 for printing.pdfTLE 7-8 ICT-CSS Q1_M3 for printing.pdf
TLE 7-8 ICT-CSS Q1_M3 for printing.pdf
XyrevManeclang
 
Alphabet of lines
Alphabet of linesAlphabet of lines
Alphabet of lines
laura_gerold
 
CSS Font & Text style
CSS Font & Text style CSS Font & Text style
CSS Font & Text style
Yaowaluck Promdee
 
OHS in CSS Grade 10
OHS in CSS Grade 10OHS in CSS Grade 10
OHS in CSS Grade 10
nanette sansano
 

What's hot (20)

Ict 9 module 1 pecs
Ict 9 module 1 pecsIct 9 module 1 pecs
Ict 9 module 1 pecs
 
Css margins
Css marginsCss margins
Css margins
 
K to 12 computer hardware servicing NCII
K to 12 computer hardware servicing NCIIK to 12 computer hardware servicing NCII
K to 12 computer hardware servicing NCII
 
Budget of lesson in TLE ICT CHS 10
Budget of lesson in TLE ICT CHS 10Budget of lesson in TLE ICT CHS 10
Budget of lesson in TLE ICT CHS 10
 
TLE ICT 10 CSS MELC (UNOFFICIAL)
TLE ICT 10 CSS MELC (UNOFFICIAL)TLE ICT 10 CSS MELC (UNOFFICIAL)
TLE ICT 10 CSS MELC (UNOFFICIAL)
 
Final Demo Semi Detailed Lesson Plan in TLE 2 (LAN Cabling)
Final Demo Semi Detailed Lesson Plan in TLE 2 (LAN Cabling)Final Demo Semi Detailed Lesson Plan in TLE 2 (LAN Cabling)
Final Demo Semi Detailed Lesson Plan in TLE 2 (LAN Cabling)
 
HTML Start Up - Introduction to HTML
HTML Start Up - Introduction to HTMLHTML Start Up - Introduction to HTML
HTML Start Up - Introduction to HTML
 
What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)
 
Use of tools in pc hardware servicing
Use of tools in pc hardware servicingUse of tools in pc hardware servicing
Use of tools in pc hardware servicing
 
Computer hardware servicing practice occupational health and safety procedure
Computer hardware servicing   practice occupational health and safety procedure Computer hardware servicing   practice occupational health and safety procedure
Computer hardware servicing practice occupational health and safety procedure
 
HTML: Tables and Forms
HTML: Tables and FormsHTML: Tables and Forms
HTML: Tables and Forms
 
Strategic Intervention Material for TLE 8 - Electronics
Strategic Intervention Material for TLE 8 - ElectronicsStrategic Intervention Material for TLE 8 - Electronics
Strategic Intervention Material for TLE 8 - Electronics
 
Lesson 1 UNDERSTANDING MS WORD 2016.pptx
Lesson 1 UNDERSTANDING MS WORD 2016.pptxLesson 1 UNDERSTANDING MS WORD 2016.pptx
Lesson 1 UNDERSTANDING MS WORD 2016.pptx
 
K to 12 pc hardware servicing teacher's guide
K to 12 pc hardware servicing teacher's guideK to 12 pc hardware servicing teacher's guide
K to 12 pc hardware servicing teacher's guide
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
Html ppt
Html pptHtml ppt
Html ppt
 
TLE 7-8 ICT-CSS Q1_M3 for printing.pdf
TLE 7-8 ICT-CSS Q1_M3 for printing.pdfTLE 7-8 ICT-CSS Q1_M3 for printing.pdf
TLE 7-8 ICT-CSS Q1_M3 for printing.pdf
 
Alphabet of lines
Alphabet of linesAlphabet of lines
Alphabet of lines
 
CSS Font & Text style
CSS Font & Text style CSS Font & Text style
CSS Font & Text style
 
OHS in CSS Grade 10
OHS in CSS Grade 10OHS in CSS Grade 10
OHS in CSS Grade 10
 

Similar to L4 Fashioning Text Styles and Colors

CSS ppt
CSS pptCSS ppt
Second year 2nd quarter CSBN - CSS, fonts and color
Second year 2nd quarter CSBN - CSS, fonts and colorSecond year 2nd quarter CSBN - CSS, fonts and color
Second year 2nd quarter CSBN - CSS, fonts and color
Andy de Vera
 
week 3 slides.pptx
week 3 slides.pptxweek 3 slides.pptx
week 3 slides.pptx
AyeshaMirza24
 
Css Complete Notes
Css Complete NotesCss Complete Notes
Css Complete Notes
EPAM Systems
 
Web Design Course: CSS lecture 3
Web Design Course: CSS lecture 3Web Design Course: CSS lecture 3
Web Design Course: CSS lecture 3
Gheyath M. Othman
 
Css.prabu
Css.prabuCss.prabu
Css.prabu
Prabu Cse
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
Paul Dionysius
 
Css
CssCss
Css
CssCss
CSS for Beginners
CSS for BeginnersCSS for Beginners
CSS for Beginners
Amit Kumar Singh
 
CSS
CSSCSS
Css
CssCss
Css
CssCss
Web Engineering - Introduction to CSS
Web Engineering - Introduction to CSSWeb Engineering - Introduction to CSS
Web Engineering - Introduction to CSS
Nosheen Qamar
 
Html presentation
Html presentationHtml presentation
Html presentation
Prashanthi Mamidisetty
 
CSS
CSSCSS
CSS
ARJUN
 
Html siva
Html sivaHtml siva
Html siva
ch samaram
 
Css
CssCss
CSS
CSSCSS
Workshop 2 Slides.pptx
Workshop 2 Slides.pptxWorkshop 2 Slides.pptx
Workshop 2 Slides.pptx
DaniyalSardar
 

Similar to L4 Fashioning Text Styles and Colors (20)

CSS ppt
CSS pptCSS ppt
CSS ppt
 
Second year 2nd quarter CSBN - CSS, fonts and color
Second year 2nd quarter CSBN - CSS, fonts and colorSecond year 2nd quarter CSBN - CSS, fonts and color
Second year 2nd quarter CSBN - CSS, fonts and color
 
week 3 slides.pptx
week 3 slides.pptxweek 3 slides.pptx
week 3 slides.pptx
 
Css Complete Notes
Css Complete NotesCss Complete Notes
Css Complete Notes
 
Web Design Course: CSS lecture 3
Web Design Course: CSS lecture 3Web Design Course: CSS lecture 3
Web Design Course: CSS lecture 3
 
Css.prabu
Css.prabuCss.prabu
Css.prabu
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
 
Css
CssCss
Css
 
Css
CssCss
Css
 
CSS for Beginners
CSS for BeginnersCSS for Beginners
CSS for Beginners
 
CSS
CSSCSS
CSS
 
Css
CssCss
Css
 
Css
CssCss
Css
 
Web Engineering - Introduction to CSS
Web Engineering - Introduction to CSSWeb Engineering - Introduction to CSS
Web Engineering - Introduction to CSS
 
Html presentation
Html presentationHtml presentation
Html presentation
 
CSS
CSSCSS
CSS
 
Html siva
Html sivaHtml siva
Html siva
 
Css
CssCss
Css
 
CSS
CSSCSS
CSS
 
Workshop 2 Slides.pptx
Workshop 2 Slides.pptxWorkshop 2 Slides.pptx
Workshop 2 Slides.pptx
 

Recently uploaded

Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Diana Rendina
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
Nguyen Thanh Tu Collection
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 

Recently uploaded (20)

Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 

L4 Fashioning Text Styles and Colors

  • 1.
  • 2. Which house do you prefer to live?
  • 3.
  • 4. Fashioning CSS if HTML handles the contents of the webpage, then CSS is in charge of the presentation. HTML is about meaning, while the CSS is about formatting. CSS – Cascading Styles Sheet
  • 5. The basic pattern for CSS commands is: Property: value Property is the feature of the paragraph you want to style, and value is the style itself, such as the height of one line in a paragraph. <span style=“font-style: italic;”> this text is italicized </span> P V
  • 6. Types of CSS there are three types of style sheets and they are arranged, cascaded, according to superiority, they will follow the command of the most superior styles sheet. 1.Inline Style Sheet 2.Internal Style Sheet 3.External Style Sheet
  • 7. Inline is the first most specific, and highest priority among the three different sheets is the in-line style sheet, which contains CSS commands embedded or placed inside the HTML tags. Although this the most superior of the three this also the least flexible.
  • 8.
  • 9. Internal the second priority sheet is the internal style sheet, which resembles a summary of CSS commands located at the upper portion of the HTML document
  • 10.
  • 11. External the third and most highly recommended type pf CSS sheet is the external sheet, which list all of the CSS commands in a separate documents. This is a plain text file that can be written in any text editor has the file extension name.css.
  • 12. HTML Document (save as “font.html”)
  • 13. External CSS File (save as “external.css”)
  • 15. Deprecated tags and attributes are those that have been replaced by other, newer, HTML constructs. Deprecated tags are still included in the HTML draft or recommendation but are clearly marked as deprecated. Once deprecated, tags may well become obsolete.
  • 16. <CENTER>...</CENTER> The <CENTER>...</CENTER> tag, oddly enough, centered text or graphics. <CENTER> is deprecated in favor of <DIV> tag with the align attribute set to "center."
  • 17. <FONT>...</FONT> <FONT>...</FONT>allowed the specification of font sizes, colors, and faces. Style sheets, rather than HTML code, have taken over character formatting duties.
  • 18. <STRIKE>...</STRIKE> and <S>...</S> Both <STRIKE>...</STRIKE> and <S>...</S> created strikethrough characters. Replace these tags with style sheets. <U>...</U> <U>...</U> created underlined characters. As with the above, use style sheets to create underlines.
  • 20. The CSS syntax is made up of three parts: Selector, Property, and Value Selector { property: value }
  • 21. p { font – family : arial } The selector is the HTML tag you want to define while property corresponds to an attribute, with each property capable of taking on a value. The property and value are separated by a colon (:) and surrounded by curly brackets ({}). The structure “property: value” form a declaration. P V
  • 22. If you want to specify more than one property, you must separate each property with a semicolon. p { font – family: arial; font – style: italic } P V P V
  • 23. To make the style definitions more readable, you can put each property on separate lines. It is also advisable to add a semicolon to the last entry for a tidier markup. p { font – family: arial; font – style: italic; } P V
  • 24. Font – family this is the font that your text will be in. cautions of using fancy fonts, as not all web browser can read all font types. Common type such Arial and Times New Roman. And remember to put font types with more than one name inside quotation marks, such as “Monotype Corsiva.” h3 { font – family: “Lucida Console”, Tahoma, Arial; }
  • 25. Font-size – there are ways to specify the font’s size: 1. Old 7 Size Font System – has the following values: a. xx-small b. x-small c. small d. medium e. large f. x-large g. xx-large where medium is the default font size of the browser
  • 26. 2. Larger or smaller – relatives to the Old 7 Size Font System. 3. % - percent relative to the default font size of the browser e.g., 150% 4. pt - point size, the font-sizing system of Windows, e.g., 22pt 5. em – where the size of the font is multiplied by the value of the number, e.g., 3em is three
  • 27. Font – style – Possible values for this property are: italic, normal, and oblique, where oblique looks almost same as italic. Font weight – this refers to how thick each letter will become. Its values are: normal, lighter, bold, bolder. You may also use multiples of 100, where 100 is the lightest and the 900 is the boldest (400 being the default)
  • 28.
  • 29. Color the color property refers to the color of the text. Its value can be any color, as long as it can be reproduced by the computer. The CSS rainbow is made up of 16,777,216 colors.
  • 30. By name there are 16 colors that can be encoded by name in aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow. p { color: black; font-size: 80%; }
  • 31. By the rgb value. You type it in this format: rgb (n,n,n) where n is number from 0 to 255. COLOR RGB Value 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) And so on according to the different shades
  • 32.
  • 33. By the rgb-hex code. Hex means hexadecimal. It composed of 16 digits: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E and F (with 0 is being the lowest and F being the highest) you can write the hex code in two ways: COLOR #RRGGBB #RGB Red #ff0000 #f00 Green #00ff00 #0f0 Blue #0000ff #00f Black #000000 #000 White #ffffff #fff And so on according to the different shades
  • 34.
  • 35.
  • 36. Three types of text properties Text – align the values available are: left, right, center and justify. Text – decoration the values available are: overline (line above the text), strike- through (line-through text), underline (use sparingly and if possible only on links), and none (usually to remove underline from the Text – transform the values available are: capitalize(to capitalize the first letter of every word) uppercase (to capitalize all letters in a word), lowercase (to set capitals to lowercase for all the letters of the word, and none.
  • 37.
  • 38. Letter-spacing – This refers to the space between letter, whose values are: normal or em_ (indicating the length of space between letters e.g., 5em). Word-spacing - this refers to the space between words, whose values are normal or em. Line-height – this refers to the space between lines whose values are: normal, _%, or _em. This adjust the height of the line or lines of text (for example, in a paragraph).
  • 39.
  • 40. Special Characters Most languages contain a number of special characters with marks that you may need to use. These are particularly important if plan to display text in languages other than English Escape Sequences There are also other characters with special meaning in HTML that cannot be used in a text just as they are, such as the left angle bracket (<) and the right angle bracket (>), which are indicated the beginning and the end of tags. All escape sequences start with an ampersand (&) and end with the semicolon (;). They usually have two to six letters, typically resemble characters they produce. “&copy;” is the copyright escape sequences, which displays in the browsers as ©.
  • 41. Escape Sequence Special Character Description Type &lt; < Less than Symbols &gt; > Greater than &copy; © Copyright &amp; & Ampersand &quot; “ Double quotes (left and right hand) &ntilde; ñ Lowercase n with tilde Letters &egrave; è Lowercase e with grave accent &ccedil; ç Lowercase c with cedilla &acirc; â Lowercase a with circumflex accent &uuml; ü Lowercase u with umlaut
  • 42. Comment Tags You can also put down other useful information, such as when you need update a page you created long ago, or like the name of the software and version you used to create a file, or even the date you last edited it. In HTML you start with the comment with <!-- and end the comment with -->. You must include the exclamation mark and the hyphens must be present on both side. In CSS document comment take the form:
  • 43. Comments – written remarks in your HTML or CSS document which will not be displayed in the browser. Declaration – in webpage development, refers to the structure property: value Deprecated – a deprecated element or attribute is one that has been outdated; it may become obsolete in the future, but browsers should continue support it for backward compability.
  • 44. Escape Sequences – other characters with special meanings in HTML that cannot be used as they are a text. External Style Sheet – a separate document where all style sheet information are stored. Hexadecimal – a numbering system that is base-16 rather than our commonly used decimal numbering system of base-10
  • 45. Internal Style Sheet – stores styles information in the <head> tag; 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 Typeface – another name for font.
  • 46. A. Match the syntax/ properties with their correct function. Write the letter of the correct answer. ____1. color a. align the text in an element ____2. text-align b. trademark symbol ____3. &trade; c. fixes or scrolls a background images with the rest of the page ____4. #ffffff d. CSS comment tag ____5. text-transform e. controls the letters in an elements ____6. #000000 f. white ____7. &copy; g. sets of color of a text ____8. <!—some text--> h. copyright symbol ____9. background-attachment i. black ___10. /*some text*/ j. HTML comment tag
  • 47. Match the CSS properties with their associated values. Write the letter of the correct answer on the blank. ____1. font-style a. normal, lighter, bold, bolder ____2. word-spacing b. Verdana, Trebuchet MS, Times New Roman ____3. text-decoration c. 300%, 35pt, 5em ____4. font-weight d. capitalize, uppercase, lowercase, none ____5. line-height e. left, right, center, justify ____6. text-transform f. overline, strike-through, underline ____7. color g. italic, normal, oblique ____8. font-family h. normal, 2em ____9. font-size i. normal, 60%, 8em ____10. text-align j. red rgb(200, 80, 165), #79f6ab
  • 48.
  • 49.
  • 50. 1. the first most specific, and highest priority among the three different sheets is the in-line style sheet.
  • 51. 2. the second priority sheet is the internal style sheet, which resembles a summary of CSS commands located at the upper portion of the HTML document
  • 52. 3. the third and most highly recommended type pf CSS sheet is the external sheet, which list all of the CSS commands in a separate documents.
  • 53. 4. This tags and attributes are those that have been replaced by other, newer, HTML constructs.
  • 54. 5. this refers to how thick or thin of each letter of the text.
  • 55. 6. How many colors can be reproduced by the computer in the CSS rainbow?
  • 56. 7. This character start with an ampersand (&) and end with the semicolon (;).
  • 57. 8. A written remarks in your HTML or CSS document which will not be displayed in the browser.
  • 58. 9. in webpage development, it refers to the structure property: value.
  • 59. 10. a numbering system that is base-16 rather than our commonly used decimal numbering system of base-10
  • 60. 11. another name for font.