HTML Text Formatting
How to format text in HTML?
- With the help of tags and attributes
Some Text Formatting Tags
- <b></b>: Bold Text
- <i></i>: Italics Text
- <strong></strong>: Strong Text
- <em></em>: Emphasize Text
Style Attribute
- Used for styling elements
- <tag_name style=”property:value”></tag>
- E.g. <p style=”color:red”>Text in Red Colour</div>
Style Properties
- color: Sets font colour of of text in the element
- font-family: sets font type of text in the element
- font-size: sets font size of text in the element
- text-align: Sets alignment of text in the element
- text-decoration
- text-weight
- background-color
Div Element
- <div></div>

More Related Content

DOCX
20uniquefeatures
PPT
Aryan kumar
PPTX
LIS3353 SP12 Week 12
ODP
Content Management for Web Designers
PPT
customization_02
PPT
customization_01
PPTX
Lecture5 web design and development
PDF
Your first HTML File
20uniquefeatures
Aryan kumar
LIS3353 SP12 Week 12
Content Management for Web Designers
customization_02
customization_01
Lecture5 web design and development
Your first HTML File

Recently uploaded (20)

PPTX
Virtual and Augmented Reality in Current Scenario
PDF
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PDF
Complications of Minimal Access-Surgery.pdf
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
PPTX
Education and Perspectives of Education.pptx
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
English Textual Question & Ans (12th Class).pdf
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
PDF
MICROENCAPSULATION_NDDS_BPHARMACY__SEM VII_PCI .pdf
PDF
International_Financial_Reporting_Standa.pdf
PDF
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
HVAC Specification 2024 according to central public works department
PDF
Journal of Dental Science - UDMY (2021).pdf
Virtual and Augmented Reality in Current Scenario
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
Complications of Minimal Access-Surgery.pdf
A powerpoint presentation on the Revised K-10 Science Shaping Paper
What if we spent less time fighting change, and more time building what’s rig...
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
Education and Perspectives of Education.pptx
Introduction to pro and eukaryotes and differences.pptx
English Textual Question & Ans (12th Class).pdf
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
FORM 1 BIOLOGY MIND MAPS and their schemes
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
MICROENCAPSULATION_NDDS_BPHARMACY__SEM VII_PCI .pdf
International_Financial_Reporting_Standa.pdf
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
Environmental Education MCQ BD2EE - Share Source.pdf
HVAC Specification 2024 according to central public works department
Journal of Dental Science - UDMY (2021).pdf
Ad
Ad

HTML Text Formatting

  • 2. How to format text in HTML? - With the help of tags and attributes
  • 3. Some Text Formatting Tags - <b></b>: Bold Text - <i></i>: Italics Text - <strong></strong>: Strong Text - <em></em>: Emphasize Text
  • 4. Style Attribute - Used for styling elements - <tag_name style=”property:value”></tag> - E.g. <p style=”color:red”>Text in Red Colour</div>
  • 5. Style Properties - color: Sets font colour of of text in the element - font-family: sets font type of text in the element - font-size: sets font size of text in the element - text-align: Sets alignment of text in the element - text-decoration - text-weight - background-color