SlideShare uma empresa Scribd logo
1 de 37
Baixar para ler 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++

Mais conteúdo relacionado

Mais procurados

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.
 
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
 
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
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basicsEliran Eliassy
 
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
 

Mais procurados (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
 

Destaque

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
 
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
 

Destaque (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)
 

Semelhante a TM 1st quarter - 4th meeting

Semelhante a 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
 

Mais de Esmeraldo Jr Guimbarda

Mais de 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
 

Último

social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 

Último (20)

Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 

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++