SlideShare a Scribd company logo
Information
   About
  HTML
 STYLES
HTML STYLES
• Formatting is included into a style sheet.
  When formatting the document, browser
  addresses the style sheet for the
  information about correct formatting
  that should be applied to the document.
3 TYPES OF STYLE SHEET
DEPENDING UPON THE WAY
      IT IS INSERTED:
• External type of a style sheet. It is
  recommended to use it when the style will be
  applied to multiple pages. One file is enough
  to change the appearance of all pages. Each
  separate page should link to a style sheet. The
  <link> tag is included into a head section of
  the web page.
• Internal type of a style sheet. Internal style
  sheet suits the case when each separate
  document requires its unique style. Internal
  styles are defined in the head sections with
  the help of the <style> tag.
• Inline type of a style sheet. This type is used
  when it is necessary to apply formatting to a
  part of page content. It requires to use style
  attribute in a corresponding tag.
Examples:
Style tags are as following:
• <style> is used to define the style.
• <link> is used to define the way to resource.
• <div> is used to define a separate section of
  the document.
• <span> is used to define a separate section of
  the document.
Styling HTML with CSS
CSS was introduced together with HTML 4, to
  provide a better way to style HTML elements.
CSS can be added to HTML in the following
  ways:
• in Cascading Style Sheet files (CSS files).
• in the <style> element in the HTML head
  section.
• in the style attribute in single HTML elements.
HTML Style Example -
           Background Color
Example:

<html>

<body style="background-color:yellow;“>
<h2 style="background-color:red;">This is a heading</h2>
<p style="background-color:green;">This is a paragraph.</p>
</body>

</html>
HTML Style Example –
           Font, Color and Size
Example:

<html>

<body>
<h1 style="font-family:verdana;">A heading</h1>
<p style="font-family:arial;color:red;font-size:20px;">A
  paragraph.</p>
</body>

</html>
HTML Style Example –
          Text Alignment
Example:

<html>
<body>
<h1 style="text-align:center;">Center-aligned heading</h1>
<p>This is a paragraph.</p>
</body>

</html>

More Related Content

What's hot

Introduction to css & its attributes with syntax
Introduction to css & its attributes with syntaxIntroduction to css & its attributes with syntax
Introduction to css & its attributes with syntax
priyadharshini murugan
 
ADOBE DREAMWEAVER
ADOBE DREAMWEAVERADOBE DREAMWEAVER
ADOBE DREAMWEAVER
Ni
 
Xml
XmlXml
Css
CssCss
Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)
Timbal Mayank
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
abhilashagupta
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
Salman Memon
 
HTML CSS | Computer Science
HTML CSS | Computer ScienceHTML CSS | Computer Science
HTML CSS | Computer Science
Transweb Global Inc
 
Css pseudo-classes
Css pseudo-classesCss pseudo-classes
Css pseudo-classes
Webtech Learning
 
Css ppt
Css pptCss ppt
Css ppt
Nidhi mishra
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
WordPress Memphis
 
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
 
Html frames
Html framesHtml frames
Html frames
eShikshak
 
Introduction to HTML5 Canvas
Introduction to HTML5 CanvasIntroduction to HTML5 Canvas
Introduction to HTML5 Canvas
Mindy McAdams
 
Html phrase tags
Html phrase tagsHtml phrase tags
Html phrase tags
eShikshak
 
CSS Introduction
CSS IntroductionCSS Introduction
CSS Introduction
Swati Sharma
 
Html5 semantics
Html5 semanticsHtml5 semantics
Html5 semantics
Webtech Learning
 

What's hot (20)

Introduction to css & its attributes with syntax
Introduction to css & its attributes with syntaxIntroduction to css & its attributes with syntax
Introduction to css & its attributes with syntax
 
ADOBE DREAMWEAVER
ADOBE DREAMWEAVERADOBE DREAMWEAVER
ADOBE DREAMWEAVER
 
Xml
XmlXml
Xml
 
Css
CssCss
Css
 
Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
 
HTML CSS | Computer Science
HTML CSS | Computer ScienceHTML CSS | Computer Science
HTML CSS | Computer Science
 
Css pseudo-classes
Css pseudo-classesCss pseudo-classes
Css pseudo-classes
 
Css ppt
Css pptCss ppt
Css ppt
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 
HTML5 & CSS3
HTML5 & CSS3 HTML5 & CSS3
HTML5 & CSS3
 
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)
 
Html frames
Html framesHtml frames
Html frames
 
Introduction to HTML5 Canvas
Introduction to HTML5 CanvasIntroduction to HTML5 Canvas
Introduction to HTML5 Canvas
 
Html phrase tags
Html phrase tagsHtml phrase tags
Html phrase tags
 
Basic-CSS-tutorial
Basic-CSS-tutorialBasic-CSS-tutorial
Basic-CSS-tutorial
 
CSS Introduction
CSS IntroductionCSS Introduction
CSS Introduction
 
Html5 semantics
Html5 semanticsHtml5 semantics
Html5 semantics
 

Viewers also liked

Official Rules V Vespa The Resistance 2012
Official Rules V Vespa The Resistance 2012Official Rules V Vespa The Resistance 2012
Official Rules V Vespa The Resistance 2012kittinha
 
Presentazione Smau 2006
Presentazione Smau 2006Presentazione Smau 2006
Presentazione Smau 2006rosariolatorre
 
管理英文 - Chinese Workers Demand Higher Pay
管理英文 - Chinese Workers Demand Higher Pay管理英文 - Chinese Workers Demand Higher Pay
管理英文 - Chinese Workers Demand Higher PayKuan Ming Feng
 
Content Jam Measure What Matters 06/14/12
Content Jam Measure What Matters 06/14/12Content Jam Measure What Matters 06/14/12
Content Jam Measure What Matters 06/14/12
Mightybytes
 
59
5959
2010 DFC Taiwan-Chi 029 為什麼你不說台語
2010 DFC Taiwan-Chi 029 為什麼你不說台語2010 DFC Taiwan-Chi 029 為什麼你不說台語
2010 DFC Taiwan-Chi 029 為什麼你不說台語dfctaiwan2010
 
илья муромец
илья муромецилья муромец
илья муромец
МКОУ СОШ № 1 г. Сим
 
Equipos domóticos
Equipos domóticosEquipos domóticos
Equipos domóticos
Eddy Q
 
PRÀCTIQUES RESTAURATIVES ES PONT 2
PRÀCTIQUES RESTAURATIVES  ES PONT 2PRÀCTIQUES RESTAURATIVES  ES PONT 2
PRÀCTIQUES RESTAURATIVES ES PONT 2gathyus
 
5 Facebook things you need to know - full set
5 Facebook things you need to know - full set5 Facebook things you need to know - full set
5 Facebook things you need to know - full setAnyssa Jane
 
Science of Belarus (научные издания белорусских ученых на английском языке)
Science of Belarus (научные издания белорусских ученых на английском языке)Science of Belarus (научные издания белорусских ученых на английском языке)
Science of Belarus (научные издания белорусских ученых на английском языке)
Центральная научная библиотека имени Якуба Коласа Национальной академии наук Беларуси
 
Число 4. Письмо цифры 4
Число 4. Письмо цифры 4Число 4. Письмо цифры 4
Число 4. Письмо цифры 4
МКОУ СОШ № 1 г. Сим
 
Длиннее, короче
Длиннее, корочеДлиннее, короче
Длиннее, короче
МКОУ СОШ № 1 г. Сим
 
Documentacion mercantil
Documentacion mercantilDocumentacion mercantil
Documentacion mercantil
Victor Ahmed Jimenez Hernández
 

Viewers also liked (20)

Lecture05
Lecture05Lecture05
Lecture05
 
Kiểm tra 1 tiết lớp 11 lần 3
Kiểm tra 1 tiết lớp 11 lần 3Kiểm tra 1 tiết lớp 11 lần 3
Kiểm tra 1 tiết lớp 11 lần 3
 
Official Rules V Vespa The Resistance 2012
Official Rules V Vespa The Resistance 2012Official Rules V Vespa The Resistance 2012
Official Rules V Vespa The Resistance 2012
 
Advertisement
AdvertisementAdvertisement
Advertisement
 
Presentazione Smau 2006
Presentazione Smau 2006Presentazione Smau 2006
Presentazione Smau 2006
 
Resume 2.0
Resume 2.0Resume 2.0
Resume 2.0
 
Rectes by Oriol
Rectes by OriolRectes by Oriol
Rectes by Oriol
 
管理英文 - Chinese Workers Demand Higher Pay
管理英文 - Chinese Workers Demand Higher Pay管理英文 - Chinese Workers Demand Higher Pay
管理英文 - Chinese Workers Demand Higher Pay
 
Content Jam Measure What Matters 06/14/12
Content Jam Measure What Matters 06/14/12Content Jam Measure What Matters 06/14/12
Content Jam Measure What Matters 06/14/12
 
59
5959
59
 
2010 DFC Taiwan-Chi 029 為什麼你不說台語
2010 DFC Taiwan-Chi 029 為什麼你不說台語2010 DFC Taiwan-Chi 029 為什麼你不說台語
2010 DFC Taiwan-Chi 029 為什麼你不說台語
 
Pertemuan 5
Pertemuan 5Pertemuan 5
Pertemuan 5
 
илья муромец
илья муромецилья муромец
илья муромец
 
Equipos domóticos
Equipos domóticosEquipos domóticos
Equipos domóticos
 
PRÀCTIQUES RESTAURATIVES ES PONT 2
PRÀCTIQUES RESTAURATIVES  ES PONT 2PRÀCTIQUES RESTAURATIVES  ES PONT 2
PRÀCTIQUES RESTAURATIVES ES PONT 2
 
5 Facebook things you need to know - full set
5 Facebook things you need to know - full set5 Facebook things you need to know - full set
5 Facebook things you need to know - full set
 
Science of Belarus (научные издания белорусских ученых на английском языке)
Science of Belarus (научные издания белорусских ученых на английском языке)Science of Belarus (научные издания белорусских ученых на английском языке)
Science of Belarus (научные издания белорусских ученых на английском языке)
 
Число 4. Письмо цифры 4
Число 4. Письмо цифры 4Число 4. Письмо цифры 4
Число 4. Письмо цифры 4
 
Длиннее, короче
Длиннее, корочеДлиннее, короче
Длиннее, короче
 
Documentacion mercantil
Documentacion mercantilDocumentacion mercantil
Documentacion mercantil
 

Similar to Html styles

BITM3730Week4.pptx
BITM3730Week4.pptxBITM3730Week4.pptx
BITM3730Week4.pptx
MattMarino13
 
BITM3730 9-19.pptx
BITM3730 9-19.pptxBITM3730 9-19.pptx
BITM3730 9-19.pptx
MattMarino13
 
css.ppt
css.pptcss.ppt
BITM3730 9-20.pptx
BITM3730 9-20.pptxBITM3730 9-20.pptx
BITM3730 9-20.pptx
MattMarino13
 
Cascading style sheets
Cascading style sheetsCascading style sheets
Cascading style sheets
smitha273566
 
Cascading style sheets
Cascading style sheetsCascading style sheets
Cascading style sheets
smithaps4
 
Need for css,introduction to css & basic syntax wt
Need for css,introduction to css &  basic syntax wtNeed for css,introduction to css &  basic syntax wt
Need for css,introduction to css & basic syntax wt
Meet1020
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help
casestudyhelp
 
Css starting
Css startingCss starting
Css starting
Rahul Dihora
 
Css introduction
Css introductionCss introduction
Css introductionSridhar P
 
How To Add CSS The Correct Way.
How To Add CSS The Correct Way.How To Add CSS The Correct Way.
How To Add CSS The Correct Way.
Reema
 
basic programming language AND HTML CSS JAVApdf
basic programming language AND HTML CSS JAVApdfbasic programming language AND HTML CSS JAVApdf
basic programming language AND HTML CSS JAVApdf
elayelily
 
The three types of style sheet lesson two fourth quarter fourth year
The three types of style sheet lesson two fourth quarter fourth yearThe three types of style sheet lesson two fourth quarter fourth year
The three types of style sheet lesson two fourth quarter fourth yearPerry Mallari
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
Mukesh Tekwani
 
Css how to insert css
Css how to insert cssCss how to insert css
Css how to insert css
Sumit Rana
 
CSS tutorial chapter 1
CSS tutorial chapter 1CSS tutorial chapter 1
CSS tutorial chapter 1
jeweltutin
 
CSS Basics part One
CSS Basics part OneCSS Basics part One
CSS Basics part One
M Ashraful Islam Jewel
 
Ifi7174 lesson2
Ifi7174 lesson2Ifi7174 lesson2
Ifi7174 lesson2
Sónia
 

Similar to Html styles (20)

BITM3730Week4.pptx
BITM3730Week4.pptxBITM3730Week4.pptx
BITM3730Week4.pptx
 
BITM3730 9-19.pptx
BITM3730 9-19.pptxBITM3730 9-19.pptx
BITM3730 9-19.pptx
 
Introduction to css
Introduction to cssIntroduction to css
Introduction to css
 
css.ppt
css.pptcss.ppt
css.ppt
 
BITM3730 9-20.pptx
BITM3730 9-20.pptxBITM3730 9-20.pptx
BITM3730 9-20.pptx
 
Cascading style sheets
Cascading style sheetsCascading style sheets
Cascading style sheets
 
Basic HTML/CSS
Basic HTML/CSSBasic HTML/CSS
Basic HTML/CSS
 
Cascading style sheets
Cascading style sheetsCascading style sheets
Cascading style sheets
 
Need for css,introduction to css & basic syntax wt
Need for css,introduction to css &  basic syntax wtNeed for css,introduction to css &  basic syntax wt
Need for css,introduction to css & basic syntax wt
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help
 
Css starting
Css startingCss starting
Css starting
 
Css introduction
Css introductionCss introduction
Css introduction
 
How To Add CSS The Correct Way.
How To Add CSS The Correct Way.How To Add CSS The Correct Way.
How To Add CSS The Correct Way.
 
basic programming language AND HTML CSS JAVApdf
basic programming language AND HTML CSS JAVApdfbasic programming language AND HTML CSS JAVApdf
basic programming language AND HTML CSS JAVApdf
 
The three types of style sheet lesson two fourth quarter fourth year
The three types of style sheet lesson two fourth quarter fourth yearThe three types of style sheet lesson two fourth quarter fourth year
The three types of style sheet lesson two fourth quarter fourth year
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
 
Css how to insert css
Css how to insert cssCss how to insert css
Css how to insert 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
 
Ifi7174 lesson2
Ifi7174 lesson2Ifi7174 lesson2
Ifi7174 lesson2
 

Recently uploaded

Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Vladimir Iglovikov, Ph.D.
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 

Recently uploaded (20)

Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 

Html styles

  • 1. Information About HTML STYLES
  • 2. HTML STYLES • Formatting is included into a style sheet. When formatting the document, browser addresses the style sheet for the information about correct formatting that should be applied to the document.
  • 3. 3 TYPES OF STYLE SHEET DEPENDING UPON THE WAY IT IS INSERTED: • External type of a style sheet. It is recommended to use it when the style will be applied to multiple pages. One file is enough to change the appearance of all pages. Each separate page should link to a style sheet. The <link> tag is included into a head section of the web page.
  • 4. • Internal type of a style sheet. Internal style sheet suits the case when each separate document requires its unique style. Internal styles are defined in the head sections with the help of the <style> tag. • Inline type of a style sheet. This type is used when it is necessary to apply formatting to a part of page content. It requires to use style attribute in a corresponding tag.
  • 5. Examples: Style tags are as following: • <style> is used to define the style. • <link> is used to define the way to resource. • <div> is used to define a separate section of the document. • <span> is used to define a separate section of the document.
  • 6. Styling HTML with CSS CSS was introduced together with HTML 4, to provide a better way to style HTML elements. CSS can be added to HTML in the following ways: • in Cascading Style Sheet files (CSS files). • in the <style> element in the HTML head section. • in the style attribute in single HTML elements.
  • 7. HTML Style Example - Background Color Example: <html> <body style="background-color:yellow;“> <h2 style="background-color:red;">This is a heading</h2> <p style="background-color:green;">This is a paragraph.</p> </body> </html>
  • 8. HTML Style Example – Font, Color and Size Example: <html> <body> <h1 style="font-family:verdana;">A heading</h1> <p style="font-family:arial;color:red;font-size:20px;">A paragraph.</p> </body> </html>
  • 9. HTML Style Example – Text Alignment Example: <html> <body> <h1 style="text-align:center;">Center-aligned heading</h1> <p>This is a paragraph.</p> </body> </html>