SlideShare a Scribd company logo
1 of 37
Download to read offline
Applying Text and Font Design
using Classes, ID'S,
Divisions, and Spans
Engr. Esmeraldo T. Guimbarda Jr.
THE ID SELECTOR
The id selector is used to specify a style for a single,
unique element. It uses the id attribute of the HTML
element, and is defined with a "#".
CSS CODE HTML CODE
THE CLASS SELECTOR
The class selector is used to specify a style for a group
of elements. Unlike the id selector, the class selector
is most often used on several elements. This allows
you to set a particular style for many HTML elements
with the same class. The class selector uses the HTML
class attribute, and is defined with a "."
CSS CODE
HTML CODE
You can also specify that only specific HTML elements
should be affected by a class. In the example below,
all p elements with class="center" will be center-
aligned:
DIVISION
Division (or Div) is a block level HTML element used to
define sections of an HTML file. A division can contain
all the parts that make up your website including
additional divisions, spans, images, text and so on.
You define a division within an HTML file by placing the
following between the <body></body> tags.
example:
A division creates a line break by default. You can use
both classes and IDs with a division tag to style
sections of your website.
SPAN
Span is similar to division except it’s an inline
element. No line break is created when a span is
declared
CSS TEXT PROPERTIES
Color
You can set the color of text with the following:
color:value;
Possible values are:
• color name – example: (red, black…)
• hexadecimal number – example: (#ff0000),
(#000000…)
• RGB color code – example: (rgb(255, 0, 0))
(rgb(0, 0, 0))
Text Transform
You can control the size of letters in an HTML element
with the following:
text-transform:value;
Possible values are:
• none
• capitalize
• lowercase
• uppercase
Text Align
You can align text with the following:
text-align:value;
Possible values are:
• left
• right
• center
• justify
Text Decoration
You can decorate text with the following:
text-decoration:value;
Possible values are:
• none
• underline
• overline
• line through
• blink
CSS FONT PROPERTIES
Font Style
You can set the style of text in a element with the
font-style property. Syntax:
font-style:value;
Possible values are:
• normal
• italic
• oblique
Font Family
You can set what font will be displayed in an element
with the font-family property. The font-family property
can hold several font names as a “fallback” system. If
the browser does not support the first font, it tries the
next font. There are two choices for the values:
• family name - The name of a font-family, like
"times", "courier", "arial", etc.
• generic family - The name of a generic-family, like
"serif", "sans-serif", "cursive", "fantasy", "monospace"
example:
Note: Separate each value with a comma. If a font
name contains white-space, it must be quoted.
Single quotes must be used when using the "style"
attribute in HTML.
Font Size
You can set the size of the text used in an element by
using the font-size property. Syntax:
font-size:value;
Possible values are:
• xx-large
• x-large
• larger
• large
• medium
• small
• smaller
• x-small
• xx-small
• length
• % (percent)
Activity:
1. Open Notepad++. Click on Start > All Programs >
Notepad++ folder > Notepad++.
2. Create a new HTML file by clicking File > New, or
pressing Ctrl+N on your keyboard.
3. Save the file as “color_trio.
html”.
To save the file, go to File >
Save As. Type “color_trio.
html” in the File name box.
Select Hypertext Markup
Language file in the Save as
type selection menu. Save the
file in your desktop.
4. Type the basic skeleton code of an HTML document
in color_trio.html. Define the title and the main
heading as “Nutritious Color Trio” using the < title >
tag and < h1 > tag respectively.
4. Add three headings in the body section using the
<h3> tag and define each of them as:
“< Color Group > Fruits and Vegetables”.
Under each heading, add one paragraph tag to be
used for the list of fruits and vegetables.
5. Place the contents of the body by adding the list of
fruits and vegetables according to their color in the
paragraph tags. Give at least ten(10) for each color
6. Add the style tag at the head section.
7. Style the lists of fruits and vegetables and their
corresponding headings using ID’s and divisions.
Under the style tag, create three ID selectors and
name them “ID1”, “ID2”, and “ID3”.
8. In the ID selector, type the codes to modify the text and
font properties of the lists of fruits and vegetables and their
corresponding headings. Sample code:
#id{
color:red;
text-transform: capitalize;
text-align: center;
text-decoration: underline;
font-style: italic;
font-family: "Arial Black", "Arial Bold", Gadget, sans-serif;
font-size: larger;
}
9. Before each heading (except for the main heading),
add a < div > tag.
After each < /p > tag of the list of fruits and
vegetables, add a < /div > tag. In the < div > tag,
specify which ID you are going to use by typing:
< div id = “< ID selector >” >
10. Align the main heading to the center by using an
inline style. Sample code:
< h1 style=”text-align: center” > Nutritious Color Trio
< /h1 >
11. Style the main heading using classes and spans.
Under the style tag, create class selectors and name
them “main_heading”.
type the codes to modify the words “Color Trio” in the main heading.
Sample code:
.main_heading
{
color:blue;
text-align: center;
font-style: oblique;
font-family: "Rockwell Extra Bold", "Rockwell Bold", monospace;
font-size: larger;
}
12. Enclose the words “Color Trio” in
< span >< /span > tags. Specify that you are going to
use the “main_heading” class by typing:
< span class=”main_heading” >
13. Save the file by clicking File > Save or pressing Ctrl
+ S on your keyboard. Open the file in a web browser.
14. Open the HTML file to your browser by clicking Run > Lunch in
Chrome or Lunch in Firefox on your Notepad++

More Related Content

What's hot

Div tag presentation
Div tag presentationDiv tag presentation
Div tag presentationalyssa_lum11
 
Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/jsKnoldus Inc.
 
Css lecture notes
Css lecture notesCss lecture notes
Css lecture notesSanthiya Grace
 
Introduction to web design discussing which languages is used for website des...
Introduction to web design discussing which languages is used for website des...Introduction to web design discussing which languages is used for website des...
Introduction to web design discussing which languages is used for website des...Aditya Dwivedi
 
HTML Lecture Part 1 of 2
HTML Lecture Part 1 of 2HTML Lecture Part 1 of 2
HTML Lecture Part 1 of 2Sharon Wasden
 
Images on the Web
Images on the WebImages on the Web
Images on the WebShawn Calvert
 
HTML Foundations, pt 2
HTML Foundations, pt 2HTML Foundations, pt 2
HTML Foundations, pt 2Shawn Calvert
 
Css Complete Notes
Css Complete NotesCss Complete Notes
Css Complete NotesEPAM Systems
 
Css Basics
Css BasicsCss Basics
Css BasicsJay Patel
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basicsEliran Eliassy
 
Html and css
Html and cssHtml and css
Html and cssSukrit Gupta
 
Frontend Crash Course: HTML and CSS
Frontend Crash Course: HTML and CSSFrontend Crash Course: HTML and CSS
Frontend Crash Course: HTML and CSSThinkful
 
Css Founder.com | Cssfounder Company
Css Founder.com | Cssfounder CompanyCss Founder.com | Cssfounder Company
Css Founder.com | Cssfounder CompanyCss Founder
 

What's hot (20)

Div tag presentation
Div tag presentationDiv tag presentation
Div tag presentation
 
Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/js
 
CSS
CSSCSS
CSS
 
CSS ppt
CSS pptCSS ppt
CSS ppt
 
Css lecture notes
Css lecture notesCss lecture notes
Css lecture notes
 
Introduction to web design discussing which languages is used for website des...
Introduction to web design discussing which languages is used for website des...Introduction to web design discussing which languages is used for website des...
Introduction to web design discussing which languages is used for website des...
 
HTML Lecture Part 1 of 2
HTML Lecture Part 1 of 2HTML Lecture Part 1 of 2
HTML Lecture Part 1 of 2
 
Css
CssCss
Css
 
Images on the Web
Images on the WebImages on the Web
Images on the Web
 
HTML Foundations, pt 2
HTML Foundations, pt 2HTML Foundations, pt 2
HTML Foundations, pt 2
 
Css Complete Notes
Css Complete NotesCss Complete Notes
Css Complete Notes
 
Css Basics
Css BasicsCss Basics
Css Basics
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
 
Html and css
Html and cssHtml and css
Html and css
 
Css
CssCss
Css
 
Frontend Crash Course: HTML and CSS
Frontend Crash Course: HTML and CSSFrontend Crash Course: HTML and CSS
Frontend Crash Course: HTML and CSS
 
Rational HATS and CSS
Rational HATS and CSSRational HATS and CSS
Rational HATS and CSS
 
What is CSS?
What is CSS?What is CSS?
What is CSS?
 
Css Founder.com | Cssfounder Company
Css Founder.com | Cssfounder CompanyCss Founder.com | Cssfounder Company
Css Founder.com | Cssfounder Company
 
Web Layout
Web LayoutWeb Layout
Web Layout
 

Viewers also liked

2ndQuarter2ndMeeting(formatting number)
2ndQuarter2ndMeeting(formatting number)2ndQuarter2ndMeeting(formatting number)
2ndQuarter2ndMeeting(formatting number)Esmeraldo Jr Guimbarda
 
1st quarter 5th meeting- spreadsheet (formula- mdas)
1st quarter   5th meeting- spreadsheet (formula- mdas)1st quarter   5th meeting- spreadsheet (formula- mdas)
1st quarter 5th meeting- spreadsheet (formula- mdas)Esmeraldo Jr Guimbarda
 
1st quarter 3rd meeting- spreadsheet
1st quarter   3rd meeting- spreadsheet1st quarter   3rd meeting- spreadsheet
1st quarter 3rd meeting- spreadsheetEsmeraldo Jr Guimbarda
 
1st quarter 4th meeting- spreadsheet
1st quarter   4th meeting- spreadsheet1st quarter   4th meeting- spreadsheet
1st quarter 4th meeting- spreadsheetEsmeraldo Jr Guimbarda
 
4th quarter 18 php & my sql change password page
4th quarter   18 php & my sql change password page4th quarter   18 php & my sql change password page
4th quarter 18 php & my sql change password pageEsmeraldo Jr Guimbarda
 
4th quarter 17 php & my sql registration page
4th quarter   17 php & my sql registration page4th quarter   17 php & my sql registration page
4th quarter 17 php & my sql registration pageEsmeraldo Jr Guimbarda
 
1st quarter 2nd meeting- spreadsheet
1st quarter   2nd meeting- spreadsheet1st quarter   2nd meeting- spreadsheet
1st quarter 2nd meeting- spreadsheetEsmeraldo Jr Guimbarda
 
2nd quarter 1st meeting(autofill)
2nd quarter   1st meeting(autofill)2nd quarter   1st meeting(autofill)
2nd quarter 1st meeting(autofill)Esmeraldo Jr Guimbarda
 
1st quarter 1st meeting- spreadsheet
1st quarter   1st meeting- spreadsheet1st quarter   1st meeting- spreadsheet
1st quarter 1st meeting- spreadsheetEsmeraldo Jr Guimbarda
 

Viewers also liked (19)

2ndQuarter2ndMeeting(formatting number)
2ndQuarter2ndMeeting(formatting number)2ndQuarter2ndMeeting(formatting number)
2ndQuarter2ndMeeting(formatting number)
 
1st quarter 5th meeting- spreadsheet (formula- mdas)
1st quarter   5th meeting- spreadsheet (formula- mdas)1st quarter   5th meeting- spreadsheet (formula- mdas)
1st quarter 5th meeting- spreadsheet (formula- mdas)
 
1st quarter 5th meeting
1st quarter   5th meeting1st quarter   5th meeting
1st quarter 5th meeting
 
1st quarter 3rd meeting- spreadsheet
1st quarter   3rd meeting- spreadsheet1st quarter   3rd meeting- spreadsheet
1st quarter 3rd meeting- spreadsheet
 
1st quarter 4th meeting- spreadsheet
1st quarter   4th meeting- spreadsheet1st quarter   4th meeting- spreadsheet
1st quarter 4th meeting- spreadsheet
 
4th quarter 18 php & my sql change password page
4th quarter   18 php & my sql change password page4th quarter   18 php & my sql change password page
4th quarter 18 php & my sql change password page
 
4th quarter 17 php & my sql registration page
4th quarter   17 php & my sql registration page4th quarter   17 php & my sql registration page
4th quarter 17 php & my sql registration page
 
David copperfield
David copperfieldDavid copperfield
David copperfield
 
1st quarter 1st meeting(poet)
1st quarter   1st meeting(poet)1st quarter   1st meeting(poet)
1st quarter 1st meeting(poet)
 
1st quarter 2nd meeting- spreadsheet
1st quarter   2nd meeting- spreadsheet1st quarter   2nd meeting- spreadsheet
1st quarter 2nd meeting- spreadsheet
 
1st qtr 2nd metting- travel
1st qtr   2nd metting- travel1st qtr   2nd metting- travel
1st qtr 2nd metting- travel
 
1st qtr 4th meeting-travel
1st qtr   4th meeting-travel1st qtr   4th meeting-travel
1st qtr 4th meeting-travel
 
1stQtr-1stMeeting-travel
1stQtr-1stMeeting-travel1stQtr-1stMeeting-travel
1stQtr-1stMeeting-travel
 
2nd quarter 1st meeting(autofill)
2nd quarter   1st meeting(autofill)2nd quarter   1st meeting(autofill)
2nd quarter 1st meeting(autofill)
 
Debugging the mastery test
Debugging the mastery testDebugging the mastery test
Debugging the mastery test
 
1st quarter 1st meeting- spreadsheet
1st quarter   1st meeting- spreadsheet1st quarter   1st meeting- spreadsheet
1st quarter 1st meeting- spreadsheet
 
Tm 1st quarter - 3rd meeting
Tm   1st quarter - 3rd meetingTm   1st quarter - 3rd meeting
Tm 1st quarter - 3rd meeting
 
1st qtr 5th meeting-travel
1st qtr   5th meeting-travel1st qtr   5th meeting-travel
1st qtr 5th meeting-travel
 
1st quarter 2nd meeting(poet)
1st quarter   2nd meeting(poet)1st quarter   2nd meeting(poet)
1st quarter 2nd meeting(poet)
 

Similar to TM 1st quarter - 4th meeting

Workshop 2 Slides.pptx
Workshop 2 Slides.pptxWorkshop 2 Slides.pptx
Workshop 2 Slides.pptxDaniyalSardar
 
Web day01 MOL.pdf
Web day01 MOL.pdfWeb day01 MOL.pdf
Web day01 MOL.pdfNamanSingla41
 
Html starting
Html startingHtml starting
Html startingRahul Dihora
 
Css introduction
Css introductionCss introduction
Css introductionSridhar P
 
introdution-to-html.ppt
introdution-to-html.pptintrodution-to-html.ppt
introdution-to-html.pptcharvivij
 
Css tutorial
Css tutorialCss tutorial
Css tutorialvedaste
 
CSS tutorial chapter 1
CSS tutorial chapter 1CSS tutorial chapter 1
CSS tutorial chapter 1jeweltutin
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdfaneebkmct
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpcasestudyhelp
 
Make Css easy : easy tips for css
Make Css easy : easy tips for cssMake Css easy : easy tips for css
Make Css easy : easy tips for cssshabab shihan
 
introdution-to-htmlppt.ppt
introdution-to-htmlppt.pptintrodution-to-htmlppt.ppt
introdution-to-htmlppt.pptnavyar41
 

Similar to TM 1st quarter - 4th meeting (20)

Workshop 2 Slides.pptx
Workshop 2 Slides.pptxWorkshop 2 Slides.pptx
Workshop 2 Slides.pptx
 
Web day01 MOL.pdf
Web day01 MOL.pdfWeb day01 MOL.pdf
Web day01 MOL.pdf
 
Html n CSS
Html n CSSHtml n CSS
Html n CSS
 
HTML CSS.pdf
HTML CSS.pdfHTML CSS.pdf
HTML CSS.pdf
 
Css
CssCss
Css
 
Html 2
Html   2Html   2
Html 2
 
Html starting
Html startingHtml starting
Html starting
 
Css introduction
Css introductionCss introduction
Css introduction
 
introdution-to-html.ppt
introdution-to-html.pptintrodution-to-html.ppt
introdution-to-html.ppt
 
Css tutorial
Css tutorialCss tutorial
Css tutorial
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
CSS
CSSCSS
CSS
 
CSS tutorial chapter 1
CSS tutorial chapter 1CSS tutorial chapter 1
CSS tutorial chapter 1
 
CSS Basics part One
CSS Basics part OneCSS Basics part One
CSS Basics part One
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help
 
Make Css easy : easy tips for css
Make Css easy : easy tips for cssMake Css easy : easy tips for css
Make Css easy : easy tips for css
 
introdution-to-htmlppt.ppt
introdution-to-htmlppt.pptintrodution-to-htmlppt.ppt
introdution-to-htmlppt.ppt
 

More from Esmeraldo Jr Guimbarda

TM 2nd qtr-3ndmeeting(java script-functions)
TM 2nd qtr-3ndmeeting(java script-functions)TM 2nd qtr-3ndmeeting(java script-functions)
TM 2nd qtr-3ndmeeting(java script-functions)Esmeraldo Jr Guimbarda
 
TM 2nd qtr-2ndmeeting(java script-animations)
TM 2nd qtr-2ndmeeting(java script-animations)TM 2nd qtr-2ndmeeting(java script-animations)
TM 2nd qtr-2ndmeeting(java script-animations)Esmeraldo Jr Guimbarda
 
TM 2nd Quarter - 1st meeting(html backgrounds)
TM 2nd Quarter - 1st meeting(html backgrounds)TM 2nd Quarter - 1st meeting(html backgrounds)
TM 2nd Quarter - 1st meeting(html backgrounds)Esmeraldo Jr Guimbarda
 
4th quarter 18 php & my sql change password page
4th quarter   18 php & my sql change password page4th quarter   18 php & my sql change password page
4th quarter 18 php & my sql change password pageEsmeraldo Jr Guimbarda
 

More from Esmeraldo Jr Guimbarda (8)

TM 2nd qtr-3ndmeeting(java script-functions)
TM 2nd qtr-3ndmeeting(java script-functions)TM 2nd qtr-3ndmeeting(java script-functions)
TM 2nd qtr-3ndmeeting(java script-functions)
 
TM 2nd qtr-2ndmeeting(java script-animations)
TM 2nd qtr-2ndmeeting(java script-animations)TM 2nd qtr-2ndmeeting(java script-animations)
TM 2nd qtr-2ndmeeting(java script-animations)
 
TM 2nd Quarter - 1st meeting(html backgrounds)
TM 2nd Quarter - 1st meeting(html backgrounds)TM 2nd Quarter - 1st meeting(html backgrounds)
TM 2nd Quarter - 1st meeting(html backgrounds)
 
1st qtr 3rd meeting-travel
1st qtr   3rd meeting-travel1st qtr   3rd meeting-travel
1st qtr 3rd meeting-travel
 
1st quarter 3rd meeting(poet)
1st quarter   3rd meeting(poet)1st quarter   3rd meeting(poet)
1st quarter 3rd meeting(poet)
 
Tm 1st quarter - 2nd meeting
Tm   1st quarter - 2nd meetingTm   1st quarter - 2nd meeting
Tm 1st quarter - 2nd meeting
 
Tm 1st quarter - 1st meeting
Tm   1st quarter - 1st meetingTm   1st quarter - 1st meeting
Tm 1st quarter - 1st meeting
 
4th quarter 18 php & my sql change password page
4th quarter   18 php & my sql change password page4th quarter   18 php & my sql change password page
4th quarter 18 php & my sql change password page
 

Recently uploaded

Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 

Recently uploaded (20)

TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 

TM 1st quarter - 4th meeting

  • 1. Applying Text and Font Design using Classes, ID'S, Divisions, and Spans Engr. Esmeraldo T. Guimbarda Jr.
  • 2. THE ID SELECTOR The id selector is used to specify a style for a single, unique element. It uses the id attribute of the HTML element, and is defined with a "#".
  • 4. THE CLASS SELECTOR The class selector is used to specify a style for a group of elements. Unlike the id selector, the class selector is most often used on several elements. This allows you to set a particular style for many HTML elements with the same class. The class selector uses the HTML class attribute, and is defined with a "."
  • 6. You can also specify that only specific HTML elements should be affected by a class. In the example below, all p elements with class="center" will be center- aligned:
  • 7. DIVISION Division (or Div) is a block level HTML element used to define sections of an HTML file. A division can contain all the parts that make up your website including additional divisions, spans, images, text and so on. You define a division within an HTML file by placing the following between the <body></body> tags.
  • 8. example: A division creates a line break by default. You can use both classes and IDs with a division tag to style sections of your website.
  • 9. SPAN Span is similar to division except it’s an inline element. No line break is created when a span is declared
  • 10. CSS TEXT PROPERTIES Color You can set the color of text with the following: color:value; Possible values are: • color name – example: (red, black…) • hexadecimal number – example: (#ff0000), (#000000…) • RGB color code – example: (rgb(255, 0, 0)) (rgb(0, 0, 0))
  • 11. Text Transform You can control the size of letters in an HTML element with the following: text-transform:value; Possible values are: • none • capitalize • lowercase • uppercase
  • 12. Text Align You can align text with the following: text-align:value; Possible values are: • left • right • center • justify
  • 13. Text Decoration You can decorate text with the following: text-decoration:value; Possible values are: • none • underline • overline • line through • blink
  • 14. CSS FONT PROPERTIES Font Style You can set the style of text in a element with the font-style property. Syntax: font-style:value; Possible values are: • normal • italic • oblique
  • 15. Font Family You can set what font will be displayed in an element with the font-family property. The font-family property can hold several font names as a “fallback” system. If the browser does not support the first font, it tries the next font. There are two choices for the values: • family name - The name of a font-family, like "times", "courier", "arial", etc. • generic family - The name of a generic-family, like "serif", "sans-serif", "cursive", "fantasy", "monospace"
  • 16. example: Note: Separate each value with a comma. If a font name contains white-space, it must be quoted. Single quotes must be used when using the "style" attribute in HTML.
  • 17. Font Size You can set the size of the text used in an element by using the font-size property. Syntax: font-size:value; Possible values are: • xx-large • x-large • larger • large • medium • small • smaller • x-small • xx-small • length • % (percent)
  • 18. Activity: 1. Open Notepad++. Click on Start > All Programs > Notepad++ folder > Notepad++.
  • 19. 2. Create a new HTML file by clicking File > New, or pressing Ctrl+N on your keyboard.
  • 20. 3. Save the file as “color_trio. html”. To save the file, go to File > Save As. Type “color_trio. html” in the File name box. Select Hypertext Markup Language file in the Save as type selection menu. Save the file in your desktop.
  • 21. 4. Type the basic skeleton code of an HTML document in color_trio.html. Define the title and the main heading as “Nutritious Color Trio” using the < title > tag and < h1 > tag respectively.
  • 22. 4. Add three headings in the body section using the <h3> tag and define each of them as: “< Color Group > Fruits and Vegetables”. Under each heading, add one paragraph tag to be used for the list of fruits and vegetables.
  • 23.
  • 24. 5. Place the contents of the body by adding the list of fruits and vegetables according to their color in the paragraph tags. Give at least ten(10) for each color
  • 25. 6. Add the style tag at the head section.
  • 26. 7. Style the lists of fruits and vegetables and their corresponding headings using ID’s and divisions. Under the style tag, create three ID selectors and name them “ID1”, “ID2”, and “ID3”.
  • 27. 8. In the ID selector, type the codes to modify the text and font properties of the lists of fruits and vegetables and their corresponding headings. Sample code: #id{ color:red; text-transform: capitalize; text-align: center; text-decoration: underline; font-style: italic; font-family: "Arial Black", "Arial Bold", Gadget, sans-serif; font-size: larger; }
  • 28.
  • 29. 9. Before each heading (except for the main heading), add a < div > tag. After each < /p > tag of the list of fruits and vegetables, add a < /div > tag. In the < div > tag, specify which ID you are going to use by typing: < div id = “< ID selector >” >
  • 30.
  • 31. 10. Align the main heading to the center by using an inline style. Sample code: < h1 style=”text-align: center” > Nutritious Color Trio < /h1 >
  • 32.
  • 33. 11. Style the main heading using classes and spans. Under the style tag, create class selectors and name them “main_heading”. type the codes to modify the words “Color Trio” in the main heading. Sample code: .main_heading { color:blue; text-align: center; font-style: oblique; font-family: "Rockwell Extra Bold", "Rockwell Bold", monospace; font-size: larger; }
  • 34.
  • 35. 12. Enclose the words “Color Trio” in < span >< /span > tags. Specify that you are going to use the “main_heading” class by typing: < span class=”main_heading” >
  • 36. 13. Save the file by clicking File > Save or pressing Ctrl + S on your keyboard. Open the file in a web browser.
  • 37. 14. Open the HTML file to your browser by clicking Run > Lunch in Chrome or Lunch in Firefox on your Notepad++