SlideShare a Scribd company logo
1 of 21
FORMATTING TEXT USING HTML
TAGS
SESSION 3
Aptech Computer Education
Presented by Muhammad Ehtisham Siddiqui (BSCS)
1
Objectives
 Explain the heading tag
 Explain the different tags related to formatting
 Explain the monospaced font, preformatted
text and block quotation
 Describe the different types of lists
 Explain the procedure to change the
background color and image
Presented by Muhammad Ehtisham Siddiqui (BSCS)
2
Introduction
Presented by Muhammad Ehtisham Siddiqui (BSCS)
3
 Text content of Web page forms an important part of a Web
site.
 Text must be attractive, easy to read, and should be short and
crisp.
 Text formatting options such as bold, italics, superscript,
subscript, and so on must be applied to attract the user
attention.
 Background color and image of the Web page can be
specified using HTML.
Heading <h1 ></h1>
Presented by Muhammad Ehtisham Siddiqui (BSCS)
4
 Heading elements define headings for contents such as
text and images
 Specifies the hierarchical structure of a Web page by
grouping the contents.
 HTML defines six levels of headings ranging from H1 to
H6
Heading <h1 ></h1>
Presented by Muhammad Ehtisham Siddiqui (BSCS)
5
 <!DOCTYPE html>
 <html>
 <head>
 <title>Headings</title>
 </head>
 <body>
 <h1>H1 Heading</h1>
 <h2>H2 Heading</h2>
 <h3>H3 Heading</h3>
 <h4>H4 Heading</h4>
 <h5>H5 Heading</h5>
 <h6>H6 Heading</h6>
 </body>
 </html>
Formatting of Text
Presented by Muhammad Ehtisham Siddiqui (BSCS)
6
 Content format determines the appearance of the
content in the browser
 Text may appear in bold or underlined
 Formatted content makes an HTML page more
readable and presentable
 Formatting is applied using formatting elements
which are container elements
Formatting Elements
Presented by Muhammad Ehtisham Siddiqui (BSCS)
7
Commonly used formatting elements are as follows:
 B element displays text in bold and is enclosed between <b> and </b>
 I element displays text in italics and is enclosed between <i> and </i> tags
 SMALL element makes the text appear smaller in browser and is enclosed
between <small> and </small> tags
 U element underlines a text and is enclosed between <u> and </u> tags
 DEL element encloses deleted text and is placed between <del> and </del>
tags
 INS element encloses inserted text and is placed between <ins> and </ins>
tags
 STRONG element emphasizes the text and is placed between <strong> and
</strong> tags
 SUB element displays a text as subscript and is enclosed between <sub> and
</sub> tags
 SUP element displays a text as superscript and is enclosed between <sup>
and </sup> tags
Formatting Elements
Presented by Muhammad Ehtisham Siddiqui (BSCS)
8
<!DOCTYPE html>
<head><title>we are learning H group</title></head>
<body>
<h2>Using HTML Formatting Elements</h2><br>
<b>This text is displayed in bold.</b><br>
<i>This text is displayed in italic.</i><br>
<u>This text is underlined.</u><br>
<small>This text is displayed smaller.</small> <br /><br />
<h2>Updating, Emphasizing, and Shifting Text</h2>
This is an example of <del>deleted</del> Text<br />
<ins> This is example of inserted Text</ins> <br />
The is an example of <strong>Strong</strong> text.<br />
The is an example of <sub>subscript</sub>text.<br />
The is an example of <sup>superscript</sup> text.<br />
</body>
</html>
Monospaced and Preformatted Text
Presented by Muhammad Ehtisham Siddiqui (BSCS)
9
 Monospaced font allows the same amount of horizontal space
between fonts irrespective of font size, shape, and type.
 Monospaced fonts are used for programming code snippets,
instruction texts, and ASCII characters.
 <pre> tag is used for preformatted text content.
 <pre> tag applies a fixed-font width to the text content.
 <pre> tag allows you to copy-paste the content along with the
formatting from the source.
Monospaced and Preformatted Text
Presented by Muhammad Ehtisham Siddiqui (BSCS)
10
 Following table lists some of the predefined tags and their
description:TAG DESCRIPTION
<em>
Used for emphasized text
<dfn>
Used for definition term
<code>
Used for computer code
<samp>
Used for sample output from a
computer program
<cite> Used for citation
Lists
Presented by Muhammad Ehtisham Siddiqui (BSCS)
11
 Is a collection of items
 Can be organized in sequential or nonsequential
manner
 Can contain paragraphs, images, links, and other
lists
 Displays a list of related items
Ordered Lists
Presented by Muhammad Ehtisham Siddiqui (BSCS)
12
 List is displayed using a numbered or alphabetic bullets
 Two element used for creating an ordered list
 OL (it create ordered list)
 LI (specifies an item and it is a sub-element of the OL element)
 The code snippet demonstrate the use of OL and LI tag<body>
<h2>Days in a Week:</h2>
<ol>
<li>Sunday</li>
<li>Monday</li>
<li>Tuesday</li>
<li>Wednesday</li>
<li>Thursday</li>
<li>Friday</li>
<li>Saturday</li>
</ol>
</body>
Ordered Lists
Presented by Muhammad Ehtisham Siddiqui (BSCS)
13
 Some lists of different numbering styles and their description
 List-style-type property is used to specify a numbering style of
the ordered list.
 It is the property of the style attribute which is specified with the
<ol> tags.Property’s Value Example
decimal 1, 2, 3…
lower-alpha a, b, c…
upper-alpha A, B, C…
lower-roman i, ii, iii…
upper-roman I, II, III…
Unordered Lists
Presented by Muhammad Ehtisham Siddiqui (BSCS)
14
 Items are arranged in random order
 Two element used for creating an unordered list
 UL (it create unordered list)
 LI (specifies an item and it is a sub-element of the UL element)
 The code snippet demonstrate the use of OL and LI tag<body>
<h2>Days in a Week:</h2>
<ul>
<li>Sunday</li>
<li>Monday</li>
<li>Tuesday</li>
<li>Wednesday</li>
<li>Thursday</li>
<li>Friday</li>
<li>Saturday</li>
</ul>
</body>
Unordered Lists
Presented by Muhammad Ehtisham Siddiqui (BSCS)
15
 The list-style-type property specifies the type of bullet to be applied to an unordered
list.
 There are three types of bullets defined for the unordered lists:
 Disc
 Square
 circle
 The default value is disc, which is applied to the unordered list, even if the
list-style-type property is not specified.
 The list-style-type property of the style attribute is set to square.
The Code Snippet demonstrates how to apply the square bullet to an unordered list.
<body>
<h2>Wild Animals</h2>
<ul style=”list-style-type:square”>
<li>Lion</li>
<li>Tiger</li>
<li>Leopard</li>
<li>Wolf</li>
</ul>
</body>
</html>
Definition Lists
Presented by Muhammad Ehtisham Siddiqui (BSCS)
16
 Refers to a collection of terms with their corresponding
descriptions
 Contains the terms along with their descriptions
 Appears with the term indented on the left followed by
description on the right or on next line
 Elements required to create a definition list are as
follows:
 DL – Is a container element that consists of DT and DD sub
elements. Specifies that the definition list will be created using
these elements.
 DT – Specifies the term to be defined or described.
 DD – Specifies the definition or description of the term.
Definition Lists
Presented by Muhammad Ehtisham Siddiqui (BSCS)
17
 Steps to create a definition lists are as follows:
Specify the DL element to indicate that you want to create a
definition list.
Use the DT element to specify the term such as Common Noun.
Use the DD element to specify the description of the term.
<body>
<h2>Types of Nouns</h2>
<dl>
<dt><b>Common Noun:</b></dt>
<dd>It is a name of an object in general, such as
pencil, pen, paper, and so on.</dd>
<dt><b>Proper Noun:</b></dt>
<dd>It is the unique name of a person or a place.
</dd>
</dl>
</body>
Background and Foreground Colors
Presented by Muhammad Ehtisham Siddiqui (BSCS)
18
 Background properties specify the background color and
image for the Web pages
 Background property is a shorthand property that
specifies all the background properties in just one
declaration.
 bgcolor attribute specifies the background color of a
document.
 Syntax for bgcolor is
 <body style=”background-color: navy; color: yellow”>
Background Image File
Presented by Muhammad Ehtisham Siddiqui (BSCS)
19
 Inserts an image as the background on a Web page
 Background images are not recommended as the
color may hide the text
 Choose images with lighter shades
 Choose an image that blends well and looks like a
single image even after tiling
Background Image File
Presented by Muhammad Ehtisham Siddiqui (BSCS)
20
 Inserts an image as the background on a Web page
 Background images are not recommended as the
color may hide the text
 Choose images with lighter shades
 Choose an image that blends well and looks like a
single image even after tiling
 Syntax: <body style=“background-image:Url(image1.png)”>
Questions?
Presented by Muhammad Ehtisham Siddiqui (BSCS)
21

More Related Content

What's hot (14)

Html
HtmlHtml
Html
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Basic Details of HTML and CSS.pdf
Basic Details of HTML and CSS.pdfBasic Details of HTML and CSS.pdf
Basic Details of HTML and CSS.pdf
 
HTML
HTMLHTML
HTML
 
HTML | Computer Science
HTML | Computer ScienceHTML | Computer Science
HTML | Computer Science
 
Html basics
Html basicsHtml basics
Html basics
 
Html basics
Html basicsHtml basics
Html basics
 
Html
HtmlHtml
Html
 
Mdst 3559-02-01-html
Mdst 3559-02-01-htmlMdst 3559-02-01-html
Mdst 3559-02-01-html
 
Dynamic html (#1)
Dynamic  html (#1)Dynamic  html (#1)
Dynamic html (#1)
 
Markup language classification, designing static and dynamic
Markup language classification, designing static and dynamicMarkup language classification, designing static and dynamic
Markup language classification, designing static and dynamic
 
Lecture2 web design and development
Lecture2 web design and developmentLecture2 web design and development
Lecture2 web design and development
 
Introduction to (x)html
Introduction to (x)htmlIntroduction to (x)html
Introduction to (x)html
 
Html and dhtml
Html and dhtmlHtml and dhtml
Html and dhtml
 

Similar to Formatting of a Text in Html (Session 3)

Similar to Formatting of a Text in Html (Session 3) (20)

Html 5 Session 2
Html 5 Session 2Html 5 Session 2
Html 5 Session 2
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
HTML
HTMLHTML
HTML
 
INTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdfINTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdf
 
Unit 1-HTML Final.ppt
Unit 1-HTML Final.pptUnit 1-HTML Final.ppt
Unit 1-HTML Final.ppt
 
Hf html-cheat-sheet
Hf html-cheat-sheetHf html-cheat-sheet
Hf html-cheat-sheet
 
INTRODUTION TO HTML.pptx
INTRODUTION TO HTML.pptxINTRODUTION TO HTML.pptx
INTRODUTION TO HTML.pptx
 
html tutorial
html tutorialhtml tutorial
html tutorial
 
Building Next Generation Websites Session6
Building Next Generation Websites Session6Building Next Generation Websites Session6
Building Next Generation Websites Session6
 
Building Next Generation Websites Session 6 by Muhammad Ehtisham Siddiqui
Building Next Generation Websites Session 6 by Muhammad Ehtisham SiddiquiBuilding Next Generation Websites Session 6 by Muhammad Ehtisham Siddiqui
Building Next Generation Websites Session 6 by Muhammad Ehtisham Siddiqui
 
Deepshikha html
Deepshikha htmlDeepshikha html
Deepshikha html
 
HTML5 with PHP.ini
HTML5 with PHP.iniHTML5 with PHP.ini
HTML5 with PHP.ini
 
Html ppt
Html pptHtml ppt
Html ppt
 
IP_-_Lecture_4,_5_Chapter-2.ppt
IP_-_Lecture_4,_5_Chapter-2.pptIP_-_Lecture_4,_5_Chapter-2.ppt
IP_-_Lecture_4,_5_Chapter-2.ppt
 
Std 10 Chapter 2 Head and Body Sections in HTML (Part 2- Body section)
Std 10 Chapter 2 Head and Body Sections in HTML (Part 2- Body section)Std 10 Chapter 2 Head and Body Sections in HTML (Part 2- Body section)
Std 10 Chapter 2 Head and Body Sections in HTML (Part 2- Body section)
 
WEB DESIGNING.pdf
WEB DESIGNING.pdfWEB DESIGNING.pdf
WEB DESIGNING.pdf
 
Workshop 2 Slides.pptx
Workshop 2 Slides.pptxWorkshop 2 Slides.pptx
Workshop 2 Slides.pptx
 
Web designing
Web designingWeb designing
Web designing
 
HTML Walkthrough Internship Course
HTML Walkthrough Internship CourseHTML Walkthrough Internship Course
HTML Walkthrough Internship Course
 
Webpage style with CSS
Webpage style with CSSWebpage style with CSS
Webpage style with CSS
 

More from Muhammad Ehtisham Siddiqui

J Query (Complete Course) by Muhammad Ehtisham Siddiqui
J Query (Complete Course) by Muhammad Ehtisham SiddiquiJ Query (Complete Course) by Muhammad Ehtisham Siddiqui
J Query (Complete Course) by Muhammad Ehtisham SiddiquiMuhammad Ehtisham Siddiqui
 
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham SiddiquiBuiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham SiddiquiMuhammad Ehtisham Siddiqui
 
Building Next Generation Websites Session 7 by Muhammad Ehtisham Siddiqui
Building Next Generation  Websites Session 7 by Muhammad Ehtisham SiddiquiBuilding Next Generation  Websites Session 7 by Muhammad Ehtisham Siddiqui
Building Next Generation Websites Session 7 by Muhammad Ehtisham SiddiquiMuhammad Ehtisham Siddiqui
 
Building Next Generation Websites by Muhammad Ehtisham Siddiqui
Building Next Generation Websites by Muhammad Ehtisham SiddiquiBuilding Next Generation Websites by Muhammad Ehtisham Siddiqui
Building Next Generation Websites by Muhammad Ehtisham SiddiquiMuhammad Ehtisham Siddiqui
 

More from Muhammad Ehtisham Siddiqui (20)

C programming Tutorial Session 4
C programming Tutorial Session 4C programming Tutorial Session 4
C programming Tutorial Session 4
 
C programming Tutorial Session 4
C programming Tutorial Session 4C programming Tutorial Session 4
C programming Tutorial Session 4
 
C programming Tutorial Session 3
C programming Tutorial Session 3C programming Tutorial Session 3
C programming Tutorial Session 3
 
C programming Tutorial Session 2
C programming Tutorial Session 2C programming Tutorial Session 2
C programming Tutorial Session 2
 
C programming Tutorial Session 1
C programming Tutorial Session 1C programming Tutorial Session 1
C programming Tutorial Session 1
 
HTML5 Web storage
HTML5 Web storageHTML5 Web storage
HTML5 Web storage
 
J Query (Complete Course) by Muhammad Ehtisham Siddiqui
J Query (Complete Course) by Muhammad Ehtisham SiddiquiJ Query (Complete Course) by Muhammad Ehtisham Siddiqui
J Query (Complete Course) by Muhammad Ehtisham Siddiqui
 
JavaScript Session 2
JavaScript Session 2JavaScript Session 2
JavaScript Session 2
 
JavaScript Session 3
JavaScript Session 3JavaScript Session 3
JavaScript Session 3
 
Javascript session 1
Javascript session 1Javascript session 1
Javascript session 1
 
Html audio video
Html audio videoHtml audio video
Html audio video
 
Html 5 geolocation api
Html 5 geolocation api Html 5 geolocation api
Html 5 geolocation api
 
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham SiddiquiBuiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
 
Building Next Generation Websites Session 7 by Muhammad Ehtisham Siddiqui
Building Next Generation  Websites Session 7 by Muhammad Ehtisham SiddiquiBuilding Next Generation  Websites Session 7 by Muhammad Ehtisham Siddiqui
Building Next Generation Websites Session 7 by Muhammad Ehtisham Siddiqui
 
Building Next Generation Websites by Muhammad Ehtisham Siddiqui
Building Next Generation Websites by Muhammad Ehtisham SiddiquiBuilding Next Generation Websites by Muhammad Ehtisham Siddiqui
Building Next Generation Websites by Muhammad Ehtisham Siddiqui
 
Building Next Generation Websites Session5
Building Next Generation Websites Session5Building Next Generation Websites Session5
Building Next Generation Websites Session5
 
Building Next Generation Websites Session4
Building Next Generation Websites Session4Building Next Generation Websites Session4
Building Next Generation Websites Session4
 
Session4
Session4Session4
Session4
 
Office session14
Office session14Office session14
Office session14
 
Office session13
Office session13Office session13
Office session13
 

Recently uploaded

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 

Recently uploaded (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 

Formatting of a Text in Html (Session 3)

  • 1. FORMATTING TEXT USING HTML TAGS SESSION 3 Aptech Computer Education Presented by Muhammad Ehtisham Siddiqui (BSCS) 1
  • 2. Objectives  Explain the heading tag  Explain the different tags related to formatting  Explain the monospaced font, preformatted text and block quotation  Describe the different types of lists  Explain the procedure to change the background color and image Presented by Muhammad Ehtisham Siddiqui (BSCS) 2
  • 3. Introduction Presented by Muhammad Ehtisham Siddiqui (BSCS) 3  Text content of Web page forms an important part of a Web site.  Text must be attractive, easy to read, and should be short and crisp.  Text formatting options such as bold, italics, superscript, subscript, and so on must be applied to attract the user attention.  Background color and image of the Web page can be specified using HTML.
  • 4. Heading <h1 ></h1> Presented by Muhammad Ehtisham Siddiqui (BSCS) 4  Heading elements define headings for contents such as text and images  Specifies the hierarchical structure of a Web page by grouping the contents.  HTML defines six levels of headings ranging from H1 to H6
  • 5. Heading <h1 ></h1> Presented by Muhammad Ehtisham Siddiqui (BSCS) 5  <!DOCTYPE html>  <html>  <head>  <title>Headings</title>  </head>  <body>  <h1>H1 Heading</h1>  <h2>H2 Heading</h2>  <h3>H3 Heading</h3>  <h4>H4 Heading</h4>  <h5>H5 Heading</h5>  <h6>H6 Heading</h6>  </body>  </html>
  • 6. Formatting of Text Presented by Muhammad Ehtisham Siddiqui (BSCS) 6  Content format determines the appearance of the content in the browser  Text may appear in bold or underlined  Formatted content makes an HTML page more readable and presentable  Formatting is applied using formatting elements which are container elements
  • 7. Formatting Elements Presented by Muhammad Ehtisham Siddiqui (BSCS) 7 Commonly used formatting elements are as follows:  B element displays text in bold and is enclosed between <b> and </b>  I element displays text in italics and is enclosed between <i> and </i> tags  SMALL element makes the text appear smaller in browser and is enclosed between <small> and </small> tags  U element underlines a text and is enclosed between <u> and </u> tags  DEL element encloses deleted text and is placed between <del> and </del> tags  INS element encloses inserted text and is placed between <ins> and </ins> tags  STRONG element emphasizes the text and is placed between <strong> and </strong> tags  SUB element displays a text as subscript and is enclosed between <sub> and </sub> tags  SUP element displays a text as superscript and is enclosed between <sup> and </sup> tags
  • 8. Formatting Elements Presented by Muhammad Ehtisham Siddiqui (BSCS) 8 <!DOCTYPE html> <head><title>we are learning H group</title></head> <body> <h2>Using HTML Formatting Elements</h2><br> <b>This text is displayed in bold.</b><br> <i>This text is displayed in italic.</i><br> <u>This text is underlined.</u><br> <small>This text is displayed smaller.</small> <br /><br /> <h2>Updating, Emphasizing, and Shifting Text</h2> This is an example of <del>deleted</del> Text<br /> <ins> This is example of inserted Text</ins> <br /> The is an example of <strong>Strong</strong> text.<br /> The is an example of <sub>subscript</sub>text.<br /> The is an example of <sup>superscript</sup> text.<br /> </body> </html>
  • 9. Monospaced and Preformatted Text Presented by Muhammad Ehtisham Siddiqui (BSCS) 9  Monospaced font allows the same amount of horizontal space between fonts irrespective of font size, shape, and type.  Monospaced fonts are used for programming code snippets, instruction texts, and ASCII characters.  <pre> tag is used for preformatted text content.  <pre> tag applies a fixed-font width to the text content.  <pre> tag allows you to copy-paste the content along with the formatting from the source.
  • 10. Monospaced and Preformatted Text Presented by Muhammad Ehtisham Siddiqui (BSCS) 10  Following table lists some of the predefined tags and their description:TAG DESCRIPTION <em> Used for emphasized text <dfn> Used for definition term <code> Used for computer code <samp> Used for sample output from a computer program <cite> Used for citation
  • 11. Lists Presented by Muhammad Ehtisham Siddiqui (BSCS) 11  Is a collection of items  Can be organized in sequential or nonsequential manner  Can contain paragraphs, images, links, and other lists  Displays a list of related items
  • 12. Ordered Lists Presented by Muhammad Ehtisham Siddiqui (BSCS) 12  List is displayed using a numbered or alphabetic bullets  Two element used for creating an ordered list  OL (it create ordered list)  LI (specifies an item and it is a sub-element of the OL element)  The code snippet demonstrate the use of OL and LI tag<body> <h2>Days in a Week:</h2> <ol> <li>Sunday</li> <li>Monday</li> <li>Tuesday</li> <li>Wednesday</li> <li>Thursday</li> <li>Friday</li> <li>Saturday</li> </ol> </body>
  • 13. Ordered Lists Presented by Muhammad Ehtisham Siddiqui (BSCS) 13  Some lists of different numbering styles and their description  List-style-type property is used to specify a numbering style of the ordered list.  It is the property of the style attribute which is specified with the <ol> tags.Property’s Value Example decimal 1, 2, 3… lower-alpha a, b, c… upper-alpha A, B, C… lower-roman i, ii, iii… upper-roman I, II, III…
  • 14. Unordered Lists Presented by Muhammad Ehtisham Siddiqui (BSCS) 14  Items are arranged in random order  Two element used for creating an unordered list  UL (it create unordered list)  LI (specifies an item and it is a sub-element of the UL element)  The code snippet demonstrate the use of OL and LI tag<body> <h2>Days in a Week:</h2> <ul> <li>Sunday</li> <li>Monday</li> <li>Tuesday</li> <li>Wednesday</li> <li>Thursday</li> <li>Friday</li> <li>Saturday</li> </ul> </body>
  • 15. Unordered Lists Presented by Muhammad Ehtisham Siddiqui (BSCS) 15  The list-style-type property specifies the type of bullet to be applied to an unordered list.  There are three types of bullets defined for the unordered lists:  Disc  Square  circle  The default value is disc, which is applied to the unordered list, even if the list-style-type property is not specified.  The list-style-type property of the style attribute is set to square. The Code Snippet demonstrates how to apply the square bullet to an unordered list. <body> <h2>Wild Animals</h2> <ul style=”list-style-type:square”> <li>Lion</li> <li>Tiger</li> <li>Leopard</li> <li>Wolf</li> </ul> </body> </html>
  • 16. Definition Lists Presented by Muhammad Ehtisham Siddiqui (BSCS) 16  Refers to a collection of terms with their corresponding descriptions  Contains the terms along with their descriptions  Appears with the term indented on the left followed by description on the right or on next line  Elements required to create a definition list are as follows:  DL – Is a container element that consists of DT and DD sub elements. Specifies that the definition list will be created using these elements.  DT – Specifies the term to be defined or described.  DD – Specifies the definition or description of the term.
  • 17. Definition Lists Presented by Muhammad Ehtisham Siddiqui (BSCS) 17  Steps to create a definition lists are as follows: Specify the DL element to indicate that you want to create a definition list. Use the DT element to specify the term such as Common Noun. Use the DD element to specify the description of the term. <body> <h2>Types of Nouns</h2> <dl> <dt><b>Common Noun:</b></dt> <dd>It is a name of an object in general, such as pencil, pen, paper, and so on.</dd> <dt><b>Proper Noun:</b></dt> <dd>It is the unique name of a person or a place. </dd> </dl> </body>
  • 18. Background and Foreground Colors Presented by Muhammad Ehtisham Siddiqui (BSCS) 18  Background properties specify the background color and image for the Web pages  Background property is a shorthand property that specifies all the background properties in just one declaration.  bgcolor attribute specifies the background color of a document.  Syntax for bgcolor is  <body style=”background-color: navy; color: yellow”>
  • 19. Background Image File Presented by Muhammad Ehtisham Siddiqui (BSCS) 19  Inserts an image as the background on a Web page  Background images are not recommended as the color may hide the text  Choose images with lighter shades  Choose an image that blends well and looks like a single image even after tiling
  • 20. Background Image File Presented by Muhammad Ehtisham Siddiqui (BSCS) 20  Inserts an image as the background on a Web page  Background images are not recommended as the color may hide the text  Choose images with lighter shades  Choose an image that blends well and looks like a single image even after tiling  Syntax: <body style=“background-image:Url(image1.png)”>
  • 21. Questions? Presented by Muhammad Ehtisham Siddiqui (BSCS) 21

Editor's Notes

  1. Presentation slide for courses, classes, lectures et al.
  2. Beginning course details and/or books/materials needed for a class/project.
  3. Beginning course details and/or books/materials needed for a class/project.
  4. Beginning course details and/or books/materials needed for a class/project.
  5. Beginning course details and/or books/materials needed for a class/project.
  6. Example graph/chart.