SlideShare une entreprise Scribd logo
1  sur  22
WEB DEVELOPMENT BASICS
BY
KALLURI VINAY REDDY
12MSE1013
VIT CHENNAI
HTML AND CSS
• LECTURE 4
TOPICS
Lecture 4
Font size
Font colour
Font family
Background colour
Aligning the text strong words
Emphasize words
FONT SIZE
• We can give tags more instructions by including attributes in the opening tag.
• An attribute is simply a characteristic or some description for the content in the
element.
• You saw this with src in <img> and href in <a>
• Let’s change the size of the text. How?
• We use style attribute . We make it equal to font-size, followd by a colon,the
size you want, and end it with px(shorts for “pixels”).
• For example:<p style=“font-size:12 px”>
FONT SIZE SAMPLE
CODE
<!DOCTYPE html>
<html>
<head>
<title>First font size change</title>
</head>
<body>
<p style="font-size: 10px"> Some text for you to make tiny! </p>
<p style="font-size: 20px"> Some text for you to make normal
size!</p>
<p style="font-size: 40px"> Some text for you to make super
big!</p>
</body> </html>
FONT COLOUR
What is awesome about the style attribute is that we use it a lot! And we can use
it with many different tags, not just <p>.
Let’s now change the colours of our text in a heading .
To change the colour of text, simply add the style attribute in the opening tag,
then make the style equal to “color:blue”(or whatever colour you like)
For example: <h2 style =“color:red”>
What if you want to change the colour and the size of the text? Simple! Just add
a semi-colon between each bit.
For example: <h2 style=“color:green;font-size:12px”>
SAMPLE CODE
<!DOCTYPE html>
<html>
<head>
<title>Changing the colors!</title>
</head>
<body>
<h1 style="color:green;font-size:16px">Big Heading</h1>
<p style="color:violet">A giant bear and a little duck were
friends.</p>
<p style="color:red;font-size:10px" >But the bear got hungry and ate
the duck.</p>
</body> </html>
FONT FAMILY
• We've covered font colours and font sizes. But we want more
power! We want to decide what font type to use. We can do this
using font family like
• <h1 style=“font-family: Arial”>Title</h1>
• http://www.w3.org/TR/CSS21/fonts.html#generic-font-families
• In this link more details about font has been given just check it out.
SAMPLE CODE
• <!DOCTYPE html>
• <html>
• <head>
• <title>Loving the font changes</title>
• </head>
• <body>
• <h1>Big title</h1>
• <ol>
• <li style="font-family:Garamond;font-size:16px">This item is big Garamond.</li>
• <li style="font-family:Verdana;font-size:12px">This item is medium
Verdana.</li>
• <li style="font-family:Impact;font-size:10px">This item is small Impact.</li>
• </ol> </body>
• </html>
RECAP
<!DOCTYPE html>
<html>
<head>
<title>Putting it all together</title>
</head>
<body>
<p style="font-size:20px;color:blue;font-family:Garamond">A truly
spectacular paragraph!</p>
</body>
</html>
BACKGROUND COLOUR
• The previous section covered a number of nice tricks to control how the text
looks. Now we want to learn about how to change the color of the webpage's
background.
• We can use the style attribute again, and set it equal to “background-color:red”
(or whatever colour you want).
• For example:
• <p style=“background-color:red;”>Hello World</p>
SAMPLE
CODE
<!DOCTYPE html>
<html>
<head>
<title> background color!</title>
</head>
<body style="background-color:brown">
<h3>Favorite Football Teams</h3>
<ol style="background-color: yellow">
<li>The Hawthorn Football Club</li>
<li>San Francisco 49ers</li>
<li>Barcelona FC</li>
</ol> </body>
</html>
ALIGNING THE TEXT
• Often it is nice to be able to move the text around. To do
so, we again use the style attribute. And then we use "text-
align: left" (or right, or centre) to determine the location of
the text.
SAMPLE CODE:
<!DOCTYPE html>
<html>
<head>
<title>Sexy background color!</title>
</head>
<body>
<h3 style="text-align:center">Favourite Football Teams</h3>
<ol>
<li style="text-align: left">The Hawthorn Football Club</li>
<li style="text-align:center">San Francisco 49ers</li>
<li style="text-align: right">Barcelona FC</li>
</ol>
</body>
</html>
STRONG WORDS
• We can change the appearance of words. What if we want to make them bold?
We don’t have to use the style attribute.
Steps
1. Identify the word or words you want to bold.
2. Surround those words with opening tag <strong> and closing tag </strong>
3. Celebrate how awesome you are at HTML!
SAMPLE CODE
<!DOCTYPE html>
<html>
<head>
<title>Viva La Revolution!</title>
</head>
<body>
<p>Do you hear the people <strong>sing</strong>?</p>
<p>No I don't. I'm <strong>too</strong> busy eating cake.</p>
</body>
</html>
EMPHASIZE WORDS
• Aside from bolding words , we often want to italicize words for emphasis
• Like bolding, we do not need to use the style attribute. Instead:
• 1. identify the word or words you want to italicize.
• 2. surround the word or words with the opening tag <em> and closing tag
</em>
• Be humble and grateful for your newfound powers
SAMPLE CODE
<!DOCTYPE html>
<html>
<head>
<title>Some nice practice</title>
</head>
<body>
<p>Hey, don't say <em>that</em>!</p>
<p>I am <em>so</em> tired.</p>
</body>
</html>
SUMMARY
This has been an incredibly busy lesson, and you've covered a lot.
Congratulations! We have learned how to:
Make ordered and unordered lists
Change the color, size and type of font
Add comments to our HTML file
Change the page's background color
Align text
Bold and italicize text
SAMPLE CODE
• <!DOCTYPE html>
• <html>
• <head>
• <title>MS</title>
• </head>
• <body style="background-color:yellow">
• <ol>
• <li style="color:red;font-size:40px;font-family:Impact;text-align:center">list one</li>
• <li style="color:blue;font-size:30px;font-family:impact;text-align:right">list two</li>
• </ol>
• <ul>
• <li>what next</li>
• <li>t
• he thing<em>on </em> the <strong>world </strong>alone </li>
• </ul>
• <!--make ure the syntax is correct-->
• </body> </html>
REFERENCES
• www.codecademy.com
Head first web design .
Learning web design-Jennifer Niederst Robbins
www.w3schools.com
Thank you
Any doubts
Email: kalluri.vinayreddy@gmail.com

Contenu connexe

Tendances

WordCamp Atlanta 2014 - CSS For Beginners - By Michael Earley of ATL Squared ...
WordCamp Atlanta 2014 - CSS For Beginners - By Michael Earley of ATL Squared ...WordCamp Atlanta 2014 - CSS For Beginners - By Michael Earley of ATL Squared ...
WordCamp Atlanta 2014 - CSS For Beginners - By Michael Earley of ATL Squared ...New Tricks
 
BrightonSEO 2016 - Domain Strategies for International Success
BrightonSEO 2016 - Domain Strategies for International SuccessBrightonSEO 2016 - Domain Strategies for International Success
BrightonSEO 2016 - Domain Strategies for International SuccessOban International
 
Search Engine optimization for Volunteer PRSA Chapter
Search Engine optimization for Volunteer PRSA ChapterSearch Engine optimization for Volunteer PRSA Chapter
Search Engine optimization for Volunteer PRSA ChapterBryan Campbell
 
HTML- Hyper Text Markup Language
HTML- Hyper Text Markup LanguageHTML- Hyper Text Markup Language
HTML- Hyper Text Markup LanguageCodewizacademy
 
Adding text in html
Adding text in htmlAdding text in html
Adding text in htmlnobel mujuji
 
CSS For Online Journalism
CSS For Online JournalismCSS For Online Journalism
CSS For Online Journalismamherstwire
 
HTML_Slideshow1
HTML_Slideshow1HTML_Slideshow1
HTML_Slideshow1ldehn
 
CSS- Cascading Style Sheet
CSS- Cascading Style SheetCSS- Cascading Style Sheet
CSS- Cascading Style SheetCodewizacademy
 
BrightonSEO - International Targeting with Hreflang Tags
BrightonSEO - International Targeting with Hreflang TagsBrightonSEO - International Targeting with Hreflang Tags
BrightonSEO - International Targeting with Hreflang TagsOban International
 
Designing Emails That Actually Work
Designing Emails That Actually WorkDesigning Emails That Actually Work
Designing Emails That Actually WorkLindsay Siovaila
 
Emily Mace BrightonSEO: International websites and SEO
Emily Mace BrightonSEO: International websites and SEOEmily Mace BrightonSEO: International websites and SEO
Emily Mace BrightonSEO: International websites and SEOMark Garwell
 

Tendances (19)

WordCamp Atlanta 2014 - CSS For Beginners - By Michael Earley of ATL Squared ...
WordCamp Atlanta 2014 - CSS For Beginners - By Michael Earley of ATL Squared ...WordCamp Atlanta 2014 - CSS For Beginners - By Michael Earley of ATL Squared ...
WordCamp Atlanta 2014 - CSS For Beginners - By Michael Earley of ATL Squared ...
 
Aryan kumar
Aryan kumarAryan kumar
Aryan kumar
 
Basic HTML/CSS
Basic HTML/CSSBasic HTML/CSS
Basic HTML/CSS
 
CSS
CSSCSS
CSS
 
Rakshat bhati
Rakshat bhatiRakshat bhati
Rakshat bhati
 
BrightonSEO 2016 - Domain Strategies for International Success
BrightonSEO 2016 - Domain Strategies for International SuccessBrightonSEO 2016 - Domain Strategies for International Success
BrightonSEO 2016 - Domain Strategies for International Success
 
Artdm171 Week5 Css
Artdm171 Week5 CssArtdm171 Week5 Css
Artdm171 Week5 Css
 
Search Engine optimization for Volunteer PRSA Chapter
Search Engine optimization for Volunteer PRSA ChapterSearch Engine optimization for Volunteer PRSA Chapter
Search Engine optimization for Volunteer PRSA Chapter
 
HTML- Hyper Text Markup Language
HTML- Hyper Text Markup LanguageHTML- Hyper Text Markup Language
HTML- Hyper Text Markup Language
 
Css
CssCss
Css
 
Adding text in html
Adding text in htmlAdding text in html
Adding text in html
 
CSS For Online Journalism
CSS For Online JournalismCSS For Online Journalism
CSS For Online Journalism
 
HTML_Slideshow1
HTML_Slideshow1HTML_Slideshow1
HTML_Slideshow1
 
CSS- Cascading Style Sheet
CSS- Cascading Style SheetCSS- Cascading Style Sheet
CSS- Cascading Style Sheet
 
BrightonSEO - International Targeting with Hreflang Tags
BrightonSEO - International Targeting with Hreflang TagsBrightonSEO - International Targeting with Hreflang Tags
BrightonSEO - International Targeting with Hreflang Tags
 
Designing Emails That Actually Work
Designing Emails That Actually WorkDesigning Emails That Actually Work
Designing Emails That Actually Work
 
Seo rules
Seo rulesSeo rules
Seo rules
 
Emily Mace BrightonSEO: International websites and SEO
Emily Mace BrightonSEO: International websites and SEOEmily Mace BrightonSEO: International websites and SEO
Emily Mace BrightonSEO: International websites and SEO
 
Html ppt
Html pptHtml ppt
Html ppt
 

Similaire à WEB DEVELOPMENT BASICS: HTML AND CSS FONT, COLOR, AND TEXT STYLING

HTML Text formatting tags
HTML Text formatting tagsHTML Text formatting tags
HTML Text formatting tagsHimanshu Pathak
 
Episode 14 - Basics of HTML for Salesforce
Episode 14 - Basics of HTML for SalesforceEpisode 14 - Basics of HTML for Salesforce
Episode 14 - Basics of HTML for SalesforceJitendra Zaa
 
Web topic 5 text formatting
Web topic 5  text formattingWeb topic 5  text formatting
Web topic 5 text formattingCK Yang
 
FYBSC IT Web Programming Unit I HTML 5 & andcss
FYBSC IT Web Programming Unit I HTML 5 & andcssFYBSC IT Web Programming Unit I HTML 5 & andcss
FYBSC IT Web Programming Unit I HTML 5 & andcssArti Parab Academics
 
ppt dev devolpment.pptx
ppt dev devolpment.pptxppt dev devolpment.pptx
ppt dev devolpment.pptxmdaffanee2005
 
Web Designing
Web Designing Web Designing
Web Designing yarafghani
 
Css types internal, external and inline (1)
Css types internal, external and inline (1)Css types internal, external and inline (1)
Css types internal, external and inline (1)Webtech Learning
 
introduction to html.ppt
introduction to html.pptintroduction to html.ppt
introduction to html.pptShubhamIngale28
 
Keeping Your Website Accessible
Keeping Your Website AccessibleKeeping Your Website Accessible
Keeping Your Website AccessibleKelli Wise
 
BITM3730 9-12.pptx
BITM3730 9-12.pptxBITM3730 9-12.pptx
BITM3730 9-12.pptxMattMarino13
 
Web Information Systems Lecture 2: HTML
Web Information Systems Lecture 2: HTMLWeb Information Systems Lecture 2: HTML
Web Information Systems Lecture 2: HTMLKatrien Verbert
 
6_CasCadingStylesSheetsCSS.ppt
6_CasCadingStylesSheetsCSS.ppt6_CasCadingStylesSheetsCSS.ppt
6_CasCadingStylesSheetsCSS.pptVARNITBHASKAR1
 

Similaire à WEB DEVELOPMENT BASICS: HTML AND CSS FONT, COLOR, AND TEXT STYLING (20)

HTML Text formatting tags
HTML Text formatting tagsHTML Text formatting tags
HTML Text formatting tags
 
Web development basics
Web development basicsWeb development basics
Web development basics
 
Episode 14 - Basics of HTML for Salesforce
Episode 14 - Basics of HTML for SalesforceEpisode 14 - Basics of HTML for Salesforce
Episode 14 - Basics of HTML for Salesforce
 
Khoa dang (kay)
Khoa dang (kay)Khoa dang (kay)
Khoa dang (kay)
 
Html intro
Html introHtml intro
Html intro
 
Web topic 5 text formatting
Web topic 5  text formattingWeb topic 5  text formatting
Web topic 5 text formatting
 
html
htmlhtml
html
 
FYBSC IT Web Programming Unit I HTML 5 & andcss
FYBSC IT Web Programming Unit I HTML 5 & andcssFYBSC IT Web Programming Unit I HTML 5 & andcss
FYBSC IT Web Programming Unit I HTML 5 & andcss
 
ppt dev devolpment.pptx
ppt dev devolpment.pptxppt dev devolpment.pptx
ppt dev devolpment.pptx
 
Web Designing
Web Designing Web Designing
Web Designing
 
Css types internal, external and inline (1)
Css types internal, external and inline (1)Css types internal, external and inline (1)
Css types internal, external and inline (1)
 
Unit 3 (it workshop).pptx
Unit 3 (it workshop).pptxUnit 3 (it workshop).pptx
Unit 3 (it workshop).pptx
 
introduction to html.ppt
introduction to html.pptintroduction to html.ppt
introduction to html.ppt
 
Keeping Your Website Accessible
Keeping Your Website AccessibleKeeping Your Website Accessible
Keeping Your Website Accessible
 
HTML Bootcamp
HTML BootcampHTML Bootcamp
HTML Bootcamp
 
BITM3730 9-12.pptx
BITM3730 9-12.pptxBITM3730 9-12.pptx
BITM3730 9-12.pptx
 
Web Information Systems Lecture 2: HTML
Web Information Systems Lecture 2: HTMLWeb Information Systems Lecture 2: HTML
Web Information Systems Lecture 2: HTML
 
Css Basics
Css BasicsCss Basics
Css Basics
 
Html basics
Html basicsHtml basics
Html basics
 
6_CasCadingStylesSheetsCSS.ppt
6_CasCadingStylesSheetsCSS.ppt6_CasCadingStylesSheetsCSS.ppt
6_CasCadingStylesSheetsCSS.ppt
 

Plus de Kalluri Vinay Reddy

Plus de Kalluri Vinay Reddy (12)

Chapter 2 lesson-2 styling the action bar
Chapter 2 lesson-2 styling the action barChapter 2 lesson-2 styling the action bar
Chapter 2 lesson-2 styling the action bar
 
Chapter 2 lesson-1 adding the action bar
Chapter 2 lesson-1 adding the action barChapter 2 lesson-1 adding the action bar
Chapter 2 lesson-1 adding the action bar
 
Create an other activity lesson 3
Create an other activity lesson 3Create an other activity lesson 3
Create an other activity lesson 3
 
Building a simple user interface lesson2
Building a simple user interface lesson2Building a simple user interface lesson2
Building a simple user interface lesson2
 
Android app development lesson 1
Android app development lesson 1Android app development lesson 1
Android app development lesson 1
 
Social media marketing
Social media marketingSocial media marketing
Social media marketing
 
Data Centers and Internet
Data Centers and InternetData Centers and Internet
Data Centers and Internet
 
Frame relay
Frame relayFrame relay
Frame relay
 
web development basics tables part2
web development basics tables part2web development basics tables part2
web development basics tables part2
 
Web development basics2
Web development basics2Web development basics2
Web development basics2
 
Android basic
Android basicAndroid basic
Android basic
 
Inside Google
Inside Google Inside Google
Inside Google
 

Dernier

Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
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
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
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
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
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
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 

Dernier (20)

Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
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"
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
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
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
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
 
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
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
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
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 

WEB DEVELOPMENT BASICS: HTML AND CSS FONT, COLOR, AND TEXT STYLING

  • 1. WEB DEVELOPMENT BASICS BY KALLURI VINAY REDDY 12MSE1013 VIT CHENNAI
  • 2. HTML AND CSS • LECTURE 4
  • 3. TOPICS Lecture 4 Font size Font colour Font family Background colour Aligning the text strong words Emphasize words
  • 4. FONT SIZE • We can give tags more instructions by including attributes in the opening tag. • An attribute is simply a characteristic or some description for the content in the element. • You saw this with src in <img> and href in <a> • Let’s change the size of the text. How? • We use style attribute . We make it equal to font-size, followd by a colon,the size you want, and end it with px(shorts for “pixels”). • For example:<p style=“font-size:12 px”>
  • 5. FONT SIZE SAMPLE CODE <!DOCTYPE html> <html> <head> <title>First font size change</title> </head> <body> <p style="font-size: 10px"> Some text for you to make tiny! </p> <p style="font-size: 20px"> Some text for you to make normal size!</p> <p style="font-size: 40px"> Some text for you to make super big!</p> </body> </html>
  • 6. FONT COLOUR What is awesome about the style attribute is that we use it a lot! And we can use it with many different tags, not just <p>. Let’s now change the colours of our text in a heading . To change the colour of text, simply add the style attribute in the opening tag, then make the style equal to “color:blue”(or whatever colour you like) For example: <h2 style =“color:red”> What if you want to change the colour and the size of the text? Simple! Just add a semi-colon between each bit. For example: <h2 style=“color:green;font-size:12px”>
  • 7. SAMPLE CODE <!DOCTYPE html> <html> <head> <title>Changing the colors!</title> </head> <body> <h1 style="color:green;font-size:16px">Big Heading</h1> <p style="color:violet">A giant bear and a little duck were friends.</p> <p style="color:red;font-size:10px" >But the bear got hungry and ate the duck.</p> </body> </html>
  • 8. FONT FAMILY • We've covered font colours and font sizes. But we want more power! We want to decide what font type to use. We can do this using font family like • <h1 style=“font-family: Arial”>Title</h1> • http://www.w3.org/TR/CSS21/fonts.html#generic-font-families • In this link more details about font has been given just check it out.
  • 9. SAMPLE CODE • <!DOCTYPE html> • <html> • <head> • <title>Loving the font changes</title> • </head> • <body> • <h1>Big title</h1> • <ol> • <li style="font-family:Garamond;font-size:16px">This item is big Garamond.</li> • <li style="font-family:Verdana;font-size:12px">This item is medium Verdana.</li> • <li style="font-family:Impact;font-size:10px">This item is small Impact.</li> • </ol> </body> • </html>
  • 10. RECAP <!DOCTYPE html> <html> <head> <title>Putting it all together</title> </head> <body> <p style="font-size:20px;color:blue;font-family:Garamond">A truly spectacular paragraph!</p> </body> </html>
  • 11. BACKGROUND COLOUR • The previous section covered a number of nice tricks to control how the text looks. Now we want to learn about how to change the color of the webpage's background. • We can use the style attribute again, and set it equal to “background-color:red” (or whatever colour you want). • For example: • <p style=“background-color:red;”>Hello World</p>
  • 12. SAMPLE CODE <!DOCTYPE html> <html> <head> <title> background color!</title> </head> <body style="background-color:brown"> <h3>Favorite Football Teams</h3> <ol style="background-color: yellow"> <li>The Hawthorn Football Club</li> <li>San Francisco 49ers</li> <li>Barcelona FC</li> </ol> </body> </html>
  • 13. ALIGNING THE TEXT • Often it is nice to be able to move the text around. To do so, we again use the style attribute. And then we use "text- align: left" (or right, or centre) to determine the location of the text.
  • 14. SAMPLE CODE: <!DOCTYPE html> <html> <head> <title>Sexy background color!</title> </head> <body> <h3 style="text-align:center">Favourite Football Teams</h3> <ol> <li style="text-align: left">The Hawthorn Football Club</li> <li style="text-align:center">San Francisco 49ers</li> <li style="text-align: right">Barcelona FC</li> </ol> </body> </html>
  • 15. STRONG WORDS • We can change the appearance of words. What if we want to make them bold? We don’t have to use the style attribute. Steps 1. Identify the word or words you want to bold. 2. Surround those words with opening tag <strong> and closing tag </strong> 3. Celebrate how awesome you are at HTML!
  • 16. SAMPLE CODE <!DOCTYPE html> <html> <head> <title>Viva La Revolution!</title> </head> <body> <p>Do you hear the people <strong>sing</strong>?</p> <p>No I don't. I'm <strong>too</strong> busy eating cake.</p> </body> </html>
  • 17. EMPHASIZE WORDS • Aside from bolding words , we often want to italicize words for emphasis • Like bolding, we do not need to use the style attribute. Instead: • 1. identify the word or words you want to italicize. • 2. surround the word or words with the opening tag <em> and closing tag </em> • Be humble and grateful for your newfound powers
  • 18. SAMPLE CODE <!DOCTYPE html> <html> <head> <title>Some nice practice</title> </head> <body> <p>Hey, don't say <em>that</em>!</p> <p>I am <em>so</em> tired.</p> </body> </html>
  • 19. SUMMARY This has been an incredibly busy lesson, and you've covered a lot. Congratulations! We have learned how to: Make ordered and unordered lists Change the color, size and type of font Add comments to our HTML file Change the page's background color Align text Bold and italicize text
  • 20. SAMPLE CODE • <!DOCTYPE html> • <html> • <head> • <title>MS</title> • </head> • <body style="background-color:yellow"> • <ol> • <li style="color:red;font-size:40px;font-family:Impact;text-align:center">list one</li> • <li style="color:blue;font-size:30px;font-family:impact;text-align:right">list two</li> • </ol> • <ul> • <li>what next</li> • <li>t • he thing<em>on </em> the <strong>world </strong>alone </li> • </ul> • <!--make ure the syntax is correct--> • </body> </html>
  • 21. REFERENCES • www.codecademy.com Head first web design . Learning web design-Jennifer Niederst Robbins www.w3schools.com
  • 22. Thank you Any doubts Email: kalluri.vinayreddy@gmail.com