SlideShare a Scribd company logo
HTML :: Text & Paragraph
   Formatting Tags

    www.eshikshak.co.in
The <hn> Elements – Heading Tag
• Any documents starts with a heading.
• You use different sizes for your headings.
• HTML also have six levels of headings, which
   use the elements <h1>, <h2>, <h3>, <h4>,
   <h5>, and <h6>.
 • While displaying any heading, browser adds
   one line before and after that heading.


                                  www.eshikshak.co.in
Centering Content - <center> Element
 • Use <center> tag to put any content in the
   center of the page or any table cell.
• Example
  <p>This is not in the center.</p>
  <center><p>This is in the center.</p></center>


  Result
  This is not in the center.

                               This is in the center.



                                                        www.eshikshak.co.in
Example – Heading Tags
<html>
  <head><title>Heading Tags</title></head>
<body>
   <h1>This is heading 1</h1>
   <h2>This is heading 2</h2>
  <h3>This is heading 3</h3>
  <h4>This is heading 4</h4>
  <h5>This is heading 5</h5>
  <h6>This is heading 6</h6>
</body>
</html>
                                        www.eshikshak.co.in
Example – Heading Tags

This is heading 1
This is heading 2
This is heading 3
This is heading 4
This is heading 5
This is heading 6




                         www.eshikshak.co.in
Create Paragraph - The <p> Element
• The <p> element offers a way to structure
  your text.
• Each paragraph of text should go in between
  an opening <p> and closing </p> tag




                                  www.eshikshak.co.in
Presentational Tags
• If you use a word processor, you are familiar
  with the ability to make text bold, italicized,
  or underlined; these are just three of the ten
  options available to indicate how text can
  appear in HTML and XHTML.
  – Bold Text - The <b> Element
  – Italic Text - The <i> Element
  – Underlined Text - The <u> Element

                                        www.eshikshak.co.in
Example - <p> Parag tag
<html>
  <head><title>Paragraph Tag</head>
  <body>
     <p>Here is a paragraph of text.</p>
     <p>Here is a second paragraph of text.</p>
     <p>Here is a third paragraph of text.</p>
  </body>
</html>
                                           www.eshikshak.co.in
Example - <p> Parag tag
Here is a paragraph of text.

Here is a second paragraph of text.

Here is a third paragraph of text.




                                      www.eshikshak.co.in
<p> - align attribute
• You can use align attribute to align your
  paragraphs.

     Attribute   Value     Description
                 left
                           Deprecated. Use styles instead.
                 right
     align                 Specifies the alignment of the text
                 center
                           within a paragraph
                 justify




                                                      www.eshikshak.co.in
Standard Attribute
Attribute   Value              Description
class       classname          Specifies a classname for an element
            rtl                Specifies the text direction for the content in an
dir
            ltr                element
id          id                 Specifies a unique id for an element
                               Specifies a language code for the content in an
lang        language_code
                               element
style       style_definition   Specifies an inline style for an element

title       text               Specifies extra information about an element
                               Specifies a language code for the content in an
xml:lang    language_code
                               element, in XHTML documents
                                                          www.eshikshak.co.in
Line Breaks - The <br /> Element:
• The HTML <br /> tag is used to give a line break.
• In HTML the <br> tag has no end tag.
• In XHTML the <br /> tag must be properly closed.

 <p>This is before the line break<br /> and this after the line break.</p>




 This is before the line break
 and this after the line break.



                                                            www.eshikshak.co.in
<br /> - attributes
Attribute   Value                              Description
            none
            right                              Deprecated - Specifies where the next
clear
            left                               line should appear.
            all


Attribute   Description
class       Document wide identifier

id          Document wide identifier


title       Specifies a title to associate with the element.



style       Helps to include inline casecadubf style sheet.

                                                               www.eshikshak.co.in
<hr> attributes
Attribute   Value         Description
            left
align       right         Deprecated - Specifies the alignment of the horizontal rule.
            center


                          Deprecated - Removes the usual shading effect that most browsers
noshade     noshade
                          display.



size        pixels or %   Deprecated - Specifies the height of the horizontal rule.



width       pixels or %   Deprecated - Specifies the width of the horizontal rule.




                                                                      www.eshikshak.co.in
<hr> standard attributes
Attribute   Description
class       Document wide identifier

dir         Specifies the direction of the text

id          Document wide identifier


title       Specifies a title to associate with the element.



style       Helps to include inline casecadubf style sheet.


lang        Sets the language code.



                                                               www.eshikshak.co.in
<spacer> - spacing (indenting Text)
• This tag is used for inserting blank spaces in an
  HTML document.
 ATTRIBUTE   VALUE           DESCRIPTION
 TYPE        horizontally    To specify whether space has to left
             vertically      horizontally or vertically
 SIZE        Integer value   Indicates the amount of space to be
                             left. Accepts only integer


 •This tag is only supported by Netscape
  Browser

                                                  www.eshikshak.co.in
Horizontal Rules - The <hr /> Element
 • The HTML <hr> tag is used for creating a
   horizontal line.
• This is also called Horizontal Rule in HTML.
• HTML syntax is <hr>
• XHTML syntax is <hr />




                                  www.eshikshak.co.in
<font > tag
• The HTML <font> tag is used to specify the
  font of the text.
• The font element is deprecated in HTML as
  well as in XHTML. So start using CSS.




                                 www.eshikshak.co.in
<font > tag

 <p>
 <font face=“Comic Sans MS" color=“white" size="4">
 The HTML font tag is now deprecated. You should use start using CSS to
 set font size and family.
 </font>
 </p>



 The HTML font tag is now deprecated. You should use start using CSS to set font
 size and family.




                                                                  www.eshikshak.co.in
<font > tag attributes
 Attribute Value                      Description
color     rgb(x,x,x)           Deprecated - Specifies
          #hexcode             the color of the text.
          colorname
face      List of font names   Deprecated - Specifies
                               the font families.
size      number               Deprecated - Specifies
                               the font size from 1 to 7.




                                         www.eshikshak.co.in
Bold Text - The <b> Element
• Anything that appears in a <b>...</b> element
  is displayed in bold
  <p>The following word uses a <b>bold</b> typeface.</p>



  The following word uses a bold typeface.




                                             www.eshikshak.co.in
Italic Text - The <i> Element
• Anything that appears in a <i>...</i> element
  is displayed in italicized
  <p>The following word uses a <i>italicized</i> typeface.</p>



  The following word uses a italicized typeface.




                                                       www.eshikshak.co.in
Underlined Text - The <u> Element
• Anything that appears in a <u>...</u> element
  is displayed with underline
  <p>The following word uses a <u>underlined</u>
  typeface.</p>


  The following word uses a underlined typeface.




                                             www.eshikshak.co.in
Strike Text - The <strike> Element
• Anything that appears in a <strike>...</strike>
  element is displayed with strikethrough,
  which is a thin line through the text
  <p>The following word uses a <strike>strikethrough</
  strike> typeface.</p>

  The following word uses a strikethrough typeface.




                                              www.eshikshak.co.in
Monospaced font - The <tt> Element
• The content of a <tt> element is written in
  monospaced font.
• Most fonts are known as variable-width fonts
  because different letters are of different
  widths (for example, the letter m is wider than
  the letter i).
• In a monospaced font, however, each letter is
  the same width.
                                     www.eshikshak.co.in
Monospaced font - The <tt> Element

<p>The following word uses a
<tt>monospaced</tt> typeface.</p>


The following word uses a monospaced typeface.




                                    www.eshikshak.co.in
Superscript Text - The <sup> Element
• The content of a <sup> element is written in
  superscript; the font size used is the same
  size as the characters surrounding it but is
  displayed half a character.s height above the
  other characters.
  <p>The following word uses a <sup>superscript</sup>
  typeface.</p>

  The following word uses a superscript typeface.


                                                    www.eshikshak.co.in
Subscript Text - The <sub> Element
• The content of a <sub> element is written in
  subscript; the font size used is the same as
  the characters surrounding it, but is displayed
  half a character.s height beneath the other
  characters.
  <p>The following word uses a <sub>subscript</sub>
  typeface.</p>

  The following word uses a subscript typeface.


                                                  www.eshikshak.co.in
Larger Text - The <big> Element
• The content of the <big> element is displayed
  one font size larger than the rest of the text
  surrounding it.
    <p>The following word uses a <big>big</big>
    typeface.</p>

    The following word uses a big typeface.




                                              www.eshikshak.co.in
Smaller Text - The <small> Element
 •The content of the <small> element is
  displayed one font size smaller than the rest
  of the text surrounding it.
     <p>The following word uses a <small>small</
     small> typeface.</p>

     The following word uses a small typeface.




                                             www.eshikshak.co.in
Nonbreaking Spaces
• Suppose you were to use the phrase "12
  Angry Men." Here you would not want a
  browser to split the "12" and "Angry" across
  two lines:
  A good example of this technique appears in the movie "12 Angry
  Men."

  <p>A good example of this technique appears in the
  movie "12&nbsp;Angry&nbsp;Men."</p>




                                                       www.eshikshak.co.in
Preserve Formatting - <pre> Element
• you want your text to follow the exact format
  of how it is written in the HTML document. In
  those cases, you can use the preformatted tag
  (<pre>).
 •Any text between the opening <pre> tag
  and the closing </pre> tag will preserve the
  formatting of the source document.


                                   www.eshikshak.co.in
Preserve Formatting - <pre> Element

 <pre>
 function testFunction( strText ){
     alert (strText)
 }
 </pre>

 function testFunction( strText ){
     alert (strText)
 }




                                     www.eshikshak.co.in

More Related Content

What's hot

Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
Amit Tyagi
 
Css ppt
Css pptCss ppt
Css ppt
Nidhi mishra
 
css.ppt
css.pptcss.ppt
css.ppt
bhasula
 
Advanced Cascading Style Sheets
Advanced Cascading Style SheetsAdvanced Cascading Style Sheets
Advanced Cascading Style Sheets
fantasticdigitaltools
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
Gil Fink
 
Html images syntax
Html images syntaxHtml images syntax
Html images syntax
JayjZens
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
Chris Poteet
 
Web html table tags
Web html  table tagsWeb html  table tags
Web html table tags
Kainat Ilyas
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
abhilashagupta
 
Html forms
Html formsHtml forms
Html forms
Himanshu Pathak
 
Html introduction
Html introductionHtml introduction
Html introduction
Dalia Elbadry
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
Salman Memon
 
html-table
html-tablehtml-table
html-table
Dhirendra Chauhan
 
Html Basic Tags
Html Basic TagsHtml Basic Tags
Html Basic Tags
Richa Singh
 
Basic Html Knowledge for students
Basic Html Knowledge for studentsBasic Html Knowledge for students
Basic Html Knowledge for students
vethics
 
Css3
Css3Css3
Css selectors
Css selectorsCss selectors
Css selectors
Dinesh Kumar
 

What's hot (20)

Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Css ppt
Css pptCss ppt
Css ppt
 
css.ppt
css.pptcss.ppt
css.ppt
 
Advanced Cascading Style Sheets
Advanced Cascading Style SheetsAdvanced Cascading Style Sheets
Advanced Cascading Style Sheets
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
Html images syntax
Html images syntaxHtml images syntax
Html images syntax
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
 
Id and class selector
Id and class selectorId and class selector
Id and class selector
 
Web html table tags
Web html  table tagsWeb html  table tags
Web html table tags
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
 
Html and css
Html and cssHtml and css
Html and css
 
Html forms
Html formsHtml forms
Html forms
 
Html introduction
Html introductionHtml introduction
Html introduction
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
 
html-table
html-tablehtml-table
html-table
 
Html Basic Tags
Html Basic TagsHtml Basic Tags
Html Basic Tags
 
Basic Html Knowledge for students
Basic Html Knowledge for studentsBasic Html Knowledge for students
Basic Html Knowledge for students
 
Dom
DomDom
Dom
 
Css3
Css3Css3
Css3
 
Css selectors
Css selectorsCss selectors
Css selectors
 

Viewers also liked

Html text formatting
Html text formattingHtml text formatting
Html text formattingderekoei
 
Understanding THML
Understanding THMLUnderstanding THML
Understanding THML
Hinopak Motors Limited
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
MayaLisa
 
Leveling & aligning(text) /certified fixed orthodontic courses by Indian dent...
Leveling & aligning(text) /certified fixed orthodontic courses by Indian dent...Leveling & aligning(text) /certified fixed orthodontic courses by Indian dent...
Leveling & aligning(text) /certified fixed orthodontic courses by Indian dent...
Indian dental academy
 
Html Unit B
Html   Unit BHtml   Unit B
Intro to html, css & sass
Intro to html, css & sassIntro to html, css & sass
Intro to html, css & sass
Sean Wolfe
 
Html basics
Html basicsHtml basics
Html basics
mcatahir947
 
Quality and consistency in text alignment
Quality and consistency in text alignmentQuality and consistency in text alignment
Quality and consistency in text alignment
jrcovington
 
Lecture15 comparisonoftheloopcontrolstructures.ppt
Lecture15 comparisonoftheloopcontrolstructures.pptLecture15 comparisonoftheloopcontrolstructures.ppt
Lecture15 comparisonoftheloopcontrolstructures.ppt
eShikshak
 
Html phrase tags
Html phrase tagsHtml phrase tags
Html phrase tags
eShikshak
 
Mesics lecture 5 input – output in ‘c’
Mesics lecture 5   input – output in ‘c’Mesics lecture 5   input – output in ‘c’
Mesics lecture 5 input – output in ‘c’
eShikshak
 
Lecture21 categoriesof userdefinedfunctions.ppt
Lecture21 categoriesof userdefinedfunctions.pptLecture21 categoriesof userdefinedfunctions.ppt
Lecture21 categoriesof userdefinedfunctions.ppt
eShikshak
 
Page Layout Techniques: Alignment
Page Layout Techniques: AlignmentPage Layout Techniques: Alignment
Page Layout Techniques: Alignment
clewis86
 
Lecture 7 relational_and_logical_operators
Lecture 7 relational_and_logical_operatorsLecture 7 relational_and_logical_operators
Lecture 7 relational_and_logical_operators
eShikshak
 
Mesics lecture 3 c – constants and variables
Mesics lecture 3   c – constants and variablesMesics lecture 3   c – constants and variables
Mesics lecture 3 c – constants and variables
eShikshak
 
Lecture7relationalandlogicaloperators 110823181038-phpapp02
Lecture7relationalandlogicaloperators 110823181038-phpapp02Lecture7relationalandlogicaloperators 110823181038-phpapp02
Lecture7relationalandlogicaloperators 110823181038-phpapp02eShikshak
 
Mesics lecture files in 'c'
Mesics lecture   files in 'c'Mesics lecture   files in 'c'
Mesics lecture files in 'c'
eShikshak
 
Algorithm
AlgorithmAlgorithm
Algorithm
eShikshak
 

Viewers also liked (20)

Html text formatting
Html text formattingHtml text formatting
Html text formatting
 
Dreamweaver Ch05
Dreamweaver Ch05Dreamweaver Ch05
Dreamweaver Ch05
 
Understanding THML
Understanding THMLUnderstanding THML
Understanding THML
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Leveling & aligning(text) /certified fixed orthodontic courses by Indian dent...
Leveling & aligning(text) /certified fixed orthodontic courses by Indian dent...Leveling & aligning(text) /certified fixed orthodontic courses by Indian dent...
Leveling & aligning(text) /certified fixed orthodontic courses by Indian dent...
 
Learning HTML
Learning HTMLLearning HTML
Learning HTML
 
Html Unit B
Html   Unit BHtml   Unit B
Html Unit B
 
Intro to html, css & sass
Intro to html, css & sassIntro to html, css & sass
Intro to html, css & sass
 
Html basics
Html basicsHtml basics
Html basics
 
Quality and consistency in text alignment
Quality and consistency in text alignmentQuality and consistency in text alignment
Quality and consistency in text alignment
 
Lecture15 comparisonoftheloopcontrolstructures.ppt
Lecture15 comparisonoftheloopcontrolstructures.pptLecture15 comparisonoftheloopcontrolstructures.ppt
Lecture15 comparisonoftheloopcontrolstructures.ppt
 
Html phrase tags
Html phrase tagsHtml phrase tags
Html phrase tags
 
Mesics lecture 5 input – output in ‘c’
Mesics lecture 5   input – output in ‘c’Mesics lecture 5   input – output in ‘c’
Mesics lecture 5 input – output in ‘c’
 
Lecture21 categoriesof userdefinedfunctions.ppt
Lecture21 categoriesof userdefinedfunctions.pptLecture21 categoriesof userdefinedfunctions.ppt
Lecture21 categoriesof userdefinedfunctions.ppt
 
Page Layout Techniques: Alignment
Page Layout Techniques: AlignmentPage Layout Techniques: Alignment
Page Layout Techniques: Alignment
 
Lecture 7 relational_and_logical_operators
Lecture 7 relational_and_logical_operatorsLecture 7 relational_and_logical_operators
Lecture 7 relational_and_logical_operators
 
Mesics lecture 3 c – constants and variables
Mesics lecture 3   c – constants and variablesMesics lecture 3   c – constants and variables
Mesics lecture 3 c – constants and variables
 
Lecture7relationalandlogicaloperators 110823181038-phpapp02
Lecture7relationalandlogicaloperators 110823181038-phpapp02Lecture7relationalandlogicaloperators 110823181038-phpapp02
Lecture7relationalandlogicaloperators 110823181038-phpapp02
 
Mesics lecture files in 'c'
Mesics lecture   files in 'c'Mesics lecture   files in 'c'
Mesics lecture files in 'c'
 
Algorithm
AlgorithmAlgorithm
Algorithm
 

Similar to Html text and formatting

Html
HtmlHtml
Cascading Style Sheets By Mukesh
Cascading Style Sheets By MukeshCascading Style Sheets By Mukesh
Cascading Style Sheets By Mukesh
Mukesh Kumar
 
03 HTML #burningkeyboards
03 HTML #burningkeyboards03 HTML #burningkeyboards
03 HTML #burningkeyboards
Denis Ristic
 
Css Founder.com | Cssfounder in
Css Founder.com | Cssfounder inCss Founder.com | Cssfounder in
Css Founder.com | Cssfounder in
Css Founder
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3
bluejayjunior
 
Css
CssCss
Css
CssCss
intro-to-html
intro-to-htmlintro-to-html
intro-to-html
Vivek Shah
 
Html (1)
Html (1)Html (1)
Html (1)
smitha273566
 
Ifi7174 lesson2
Ifi7174 lesson2Ifi7174 lesson2
Ifi7174 lesson2
Sónia
 
2_css.pptx
2_css.pptx2_css.pptx
2_css.pptx
VarunMM2
 
2_css.pptx
2_css.pptx2_css.pptx
2_css.pptx
VarunMM2
 
CSS notes
CSS notesCSS notes
CSS notes
Rajendra Prasad
 
Css
CssCss
Html xhtml tag-sheet
Html xhtml tag-sheetHtml xhtml tag-sheet
Html xhtml tag-sheetwihrbt
 
Html
HtmlHtml
SDP_HTML.pptx
SDP_HTML.pptxSDP_HTML.pptx
SDP_HTML.pptx
Vani011
 
Unit 2 (html)
Unit 2  (html)Unit 2  (html)
Unit 2 (html)
manochitra10
 

Similar to Html text and formatting (20)

Html
HtmlHtml
Html
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Cascading Style Sheets By Mukesh
Cascading Style Sheets By MukeshCascading Style Sheets By Mukesh
Cascading Style Sheets By Mukesh
 
03 HTML #burningkeyboards
03 HTML #burningkeyboards03 HTML #burningkeyboards
03 HTML #burningkeyboards
 
Css Founder.com | Cssfounder in
Css Founder.com | Cssfounder inCss Founder.com | Cssfounder in
Css Founder.com | Cssfounder in
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3
 
Css
CssCss
Css
 
Css
CssCss
Css
 
intro-to-html
intro-to-htmlintro-to-html
intro-to-html
 
Introduction 2 css
Introduction 2 cssIntroduction 2 css
Introduction 2 css
 
Html (1)
Html (1)Html (1)
Html (1)
 
Ifi7174 lesson2
Ifi7174 lesson2Ifi7174 lesson2
Ifi7174 lesson2
 
2_css.pptx
2_css.pptx2_css.pptx
2_css.pptx
 
2_css.pptx
2_css.pptx2_css.pptx
2_css.pptx
 
CSS notes
CSS notesCSS notes
CSS notes
 
Css
CssCss
Css
 
Html xhtml tag-sheet
Html xhtml tag-sheetHtml xhtml tag-sheet
Html xhtml tag-sheet
 
Html
HtmlHtml
Html
 
SDP_HTML.pptx
SDP_HTML.pptxSDP_HTML.pptx
SDP_HTML.pptx
 
Unit 2 (html)
Unit 2  (html)Unit 2  (html)
Unit 2 (html)
 

More from eShikshak

Modelling and evaluation
Modelling and evaluationModelling and evaluation
Modelling and evaluation
eShikshak
 
Operators in python
Operators in pythonOperators in python
Operators in python
eShikshak
 
Datatypes in python
Datatypes in pythonDatatypes in python
Datatypes in python
eShikshak
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
eShikshak
 
Introduction to e commerce
Introduction to e commerceIntroduction to e commerce
Introduction to e commerce
eShikshak
 
Chapeter 2 introduction to cloud computing
Chapeter 2   introduction to cloud computingChapeter 2   introduction to cloud computing
Chapeter 2 introduction to cloud computing
eShikshak
 
Unit 1.4 working of cloud computing
Unit 1.4 working of cloud computingUnit 1.4 working of cloud computing
Unit 1.4 working of cloud computing
eShikshak
 
Unit 1.3 types of cloud
Unit 1.3 types of cloudUnit 1.3 types of cloud
Unit 1.3 types of cloud
eShikshak
 
Unit 1.2 move to cloud computing
Unit 1.2   move to cloud computingUnit 1.2   move to cloud computing
Unit 1.2 move to cloud computing
eShikshak
 
Unit 1.1 introduction to cloud computing
Unit 1.1   introduction to cloud computingUnit 1.1   introduction to cloud computing
Unit 1.1 introduction to cloud computing
eShikshak
 
Mesics lecture 8 arrays in 'c'
Mesics lecture 8   arrays in 'c'Mesics lecture 8   arrays in 'c'
Mesics lecture 8 arrays in 'c'
eShikshak
 
Mesics lecture 7 iteration and repetitive executions
Mesics lecture 7   iteration and repetitive executionsMesics lecture 7   iteration and repetitive executions
Mesics lecture 7 iteration and repetitive executions
eShikshak
 
Mesics lecture 6 control statement = if -else if__else
Mesics lecture 6   control statement = if -else if__elseMesics lecture 6   control statement = if -else if__else
Mesics lecture 6 control statement = if -else if__else
eShikshak
 
Mesics lecture 4 c operators and experssions
Mesics lecture  4   c operators and experssionsMesics lecture  4   c operators and experssions
Mesics lecture 4 c operators and experssionseShikshak
 
Mesics lecture 5 input – output in ‘c’
Mesics lecture 5   input – output in ‘c’Mesics lecture 5   input – output in ‘c’
Mesics lecture 5 input – output in ‘c’eShikshak
 
Lecture20 user definedfunctions.ppt
Lecture20 user definedfunctions.pptLecture20 user definedfunctions.ppt
Lecture20 user definedfunctions.ppt
eShikshak
 
Lecture18 structurein c.ppt
Lecture18 structurein c.pptLecture18 structurein c.ppt
Lecture18 structurein c.ppt
eShikshak
 
Lecture17 arrays.ppt
Lecture17 arrays.pptLecture17 arrays.ppt
Lecture17 arrays.ppt
eShikshak
 
Lecture13 control statementswitch.ppt
Lecture13 control statementswitch.pptLecture13 control statementswitch.ppt
Lecture13 control statementswitch.ppt
eShikshak
 
Lecturer23 pointersin c.ppt
Lecturer23 pointersin c.pptLecturer23 pointersin c.ppt
Lecturer23 pointersin c.ppteShikshak
 

More from eShikshak (20)

Modelling and evaluation
Modelling and evaluationModelling and evaluation
Modelling and evaluation
 
Operators in python
Operators in pythonOperators in python
Operators in python
 
Datatypes in python
Datatypes in pythonDatatypes in python
Datatypes in python
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Introduction to e commerce
Introduction to e commerceIntroduction to e commerce
Introduction to e commerce
 
Chapeter 2 introduction to cloud computing
Chapeter 2   introduction to cloud computingChapeter 2   introduction to cloud computing
Chapeter 2 introduction to cloud computing
 
Unit 1.4 working of cloud computing
Unit 1.4 working of cloud computingUnit 1.4 working of cloud computing
Unit 1.4 working of cloud computing
 
Unit 1.3 types of cloud
Unit 1.3 types of cloudUnit 1.3 types of cloud
Unit 1.3 types of cloud
 
Unit 1.2 move to cloud computing
Unit 1.2   move to cloud computingUnit 1.2   move to cloud computing
Unit 1.2 move to cloud computing
 
Unit 1.1 introduction to cloud computing
Unit 1.1   introduction to cloud computingUnit 1.1   introduction to cloud computing
Unit 1.1 introduction to cloud computing
 
Mesics lecture 8 arrays in 'c'
Mesics lecture 8   arrays in 'c'Mesics lecture 8   arrays in 'c'
Mesics lecture 8 arrays in 'c'
 
Mesics lecture 7 iteration and repetitive executions
Mesics lecture 7   iteration and repetitive executionsMesics lecture 7   iteration and repetitive executions
Mesics lecture 7 iteration and repetitive executions
 
Mesics lecture 6 control statement = if -else if__else
Mesics lecture 6   control statement = if -else if__elseMesics lecture 6   control statement = if -else if__else
Mesics lecture 6 control statement = if -else if__else
 
Mesics lecture 4 c operators and experssions
Mesics lecture  4   c operators and experssionsMesics lecture  4   c operators and experssions
Mesics lecture 4 c operators and experssions
 
Mesics lecture 5 input – output in ‘c’
Mesics lecture 5   input – output in ‘c’Mesics lecture 5   input – output in ‘c’
Mesics lecture 5 input – output in ‘c’
 
Lecture20 user definedfunctions.ppt
Lecture20 user definedfunctions.pptLecture20 user definedfunctions.ppt
Lecture20 user definedfunctions.ppt
 
Lecture18 structurein c.ppt
Lecture18 structurein c.pptLecture18 structurein c.ppt
Lecture18 structurein c.ppt
 
Lecture17 arrays.ppt
Lecture17 arrays.pptLecture17 arrays.ppt
Lecture17 arrays.ppt
 
Lecture13 control statementswitch.ppt
Lecture13 control statementswitch.pptLecture13 control statementswitch.ppt
Lecture13 control statementswitch.ppt
 
Lecturer23 pointersin c.ppt
Lecturer23 pointersin c.pptLecturer23 pointersin c.ppt
Lecturer23 pointersin c.ppt
 

Recently uploaded

LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
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
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 

Recently uploaded (20)

LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
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
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 

Html text and formatting

  • 1. HTML :: Text & Paragraph Formatting Tags www.eshikshak.co.in
  • 2. The <hn> Elements – Heading Tag • Any documents starts with a heading. • You use different sizes for your headings. • HTML also have six levels of headings, which use the elements <h1>, <h2>, <h3>, <h4>, <h5>, and <h6>. • While displaying any heading, browser adds one line before and after that heading. www.eshikshak.co.in
  • 3. Centering Content - <center> Element • Use <center> tag to put any content in the center of the page or any table cell. • Example <p>This is not in the center.</p> <center><p>This is in the center.</p></center> Result This is not in the center. This is in the center. www.eshikshak.co.in
  • 4. Example – Heading Tags <html> <head><title>Heading Tags</title></head> <body> <h1>This is heading 1</h1> <h2>This is heading 2</h2> <h3>This is heading 3</h3> <h4>This is heading 4</h4> <h5>This is heading 5</h5> <h6>This is heading 6</h6> </body> </html> www.eshikshak.co.in
  • 5. Example – Heading Tags This is heading 1 This is heading 2 This is heading 3 This is heading 4 This is heading 5 This is heading 6 www.eshikshak.co.in
  • 6. Create Paragraph - The <p> Element • The <p> element offers a way to structure your text. • Each paragraph of text should go in between an opening <p> and closing </p> tag www.eshikshak.co.in
  • 7. Presentational Tags • If you use a word processor, you are familiar with the ability to make text bold, italicized, or underlined; these are just three of the ten options available to indicate how text can appear in HTML and XHTML. – Bold Text - The <b> Element – Italic Text - The <i> Element – Underlined Text - The <u> Element www.eshikshak.co.in
  • 8. Example - <p> Parag tag <html> <head><title>Paragraph Tag</head> <body> <p>Here is a paragraph of text.</p> <p>Here is a second paragraph of text.</p> <p>Here is a third paragraph of text.</p> </body> </html> www.eshikshak.co.in
  • 9. Example - <p> Parag tag Here is a paragraph of text. Here is a second paragraph of text. Here is a third paragraph of text. www.eshikshak.co.in
  • 10. <p> - align attribute • You can use align attribute to align your paragraphs. Attribute Value Description left Deprecated. Use styles instead. right align Specifies the alignment of the text center within a paragraph justify www.eshikshak.co.in
  • 11. Standard Attribute Attribute Value Description class classname Specifies a classname for an element rtl Specifies the text direction for the content in an dir ltr element id id Specifies a unique id for an element Specifies a language code for the content in an lang language_code element style style_definition Specifies an inline style for an element title text Specifies extra information about an element Specifies a language code for the content in an xml:lang language_code element, in XHTML documents www.eshikshak.co.in
  • 12. Line Breaks - The <br /> Element: • The HTML <br /> tag is used to give a line break. • In HTML the <br> tag has no end tag. • In XHTML the <br /> tag must be properly closed. <p>This is before the line break<br /> and this after the line break.</p> This is before the line break and this after the line break. www.eshikshak.co.in
  • 13. <br /> - attributes Attribute Value Description none right Deprecated - Specifies where the next clear left line should appear. all Attribute Description class Document wide identifier id Document wide identifier title Specifies a title to associate with the element. style Helps to include inline casecadubf style sheet. www.eshikshak.co.in
  • 14. <hr> attributes Attribute Value Description left align right Deprecated - Specifies the alignment of the horizontal rule. center Deprecated - Removes the usual shading effect that most browsers noshade noshade display. size pixels or % Deprecated - Specifies the height of the horizontal rule. width pixels or % Deprecated - Specifies the width of the horizontal rule. www.eshikshak.co.in
  • 15. <hr> standard attributes Attribute Description class Document wide identifier dir Specifies the direction of the text id Document wide identifier title Specifies a title to associate with the element. style Helps to include inline casecadubf style sheet. lang Sets the language code. www.eshikshak.co.in
  • 16. <spacer> - spacing (indenting Text) • This tag is used for inserting blank spaces in an HTML document. ATTRIBUTE VALUE DESCRIPTION TYPE horizontally To specify whether space has to left vertically horizontally or vertically SIZE Integer value Indicates the amount of space to be left. Accepts only integer •This tag is only supported by Netscape Browser www.eshikshak.co.in
  • 17. Horizontal Rules - The <hr /> Element • The HTML <hr> tag is used for creating a horizontal line. • This is also called Horizontal Rule in HTML. • HTML syntax is <hr> • XHTML syntax is <hr /> www.eshikshak.co.in
  • 18. <font > tag • The HTML <font> tag is used to specify the font of the text. • The font element is deprecated in HTML as well as in XHTML. So start using CSS. www.eshikshak.co.in
  • 19. <font > tag <p> <font face=“Comic Sans MS" color=“white" size="4"> The HTML font tag is now deprecated. You should use start using CSS to set font size and family. </font> </p> The HTML font tag is now deprecated. You should use start using CSS to set font size and family. www.eshikshak.co.in
  • 20. <font > tag attributes Attribute Value Description color rgb(x,x,x) Deprecated - Specifies #hexcode the color of the text. colorname face List of font names Deprecated - Specifies the font families. size number Deprecated - Specifies the font size from 1 to 7. www.eshikshak.co.in
  • 21. Bold Text - The <b> Element • Anything that appears in a <b>...</b> element is displayed in bold <p>The following word uses a <b>bold</b> typeface.</p> The following word uses a bold typeface. www.eshikshak.co.in
  • 22. Italic Text - The <i> Element • Anything that appears in a <i>...</i> element is displayed in italicized <p>The following word uses a <i>italicized</i> typeface.</p> The following word uses a italicized typeface. www.eshikshak.co.in
  • 23. Underlined Text - The <u> Element • Anything that appears in a <u>...</u> element is displayed with underline <p>The following word uses a <u>underlined</u> typeface.</p> The following word uses a underlined typeface. www.eshikshak.co.in
  • 24. Strike Text - The <strike> Element • Anything that appears in a <strike>...</strike> element is displayed with strikethrough, which is a thin line through the text <p>The following word uses a <strike>strikethrough</ strike> typeface.</p> The following word uses a strikethrough typeface. www.eshikshak.co.in
  • 25. Monospaced font - The <tt> Element • The content of a <tt> element is written in monospaced font. • Most fonts are known as variable-width fonts because different letters are of different widths (for example, the letter m is wider than the letter i). • In a monospaced font, however, each letter is the same width. www.eshikshak.co.in
  • 26. Monospaced font - The <tt> Element <p>The following word uses a <tt>monospaced</tt> typeface.</p> The following word uses a monospaced typeface. www.eshikshak.co.in
  • 27. Superscript Text - The <sup> Element • The content of a <sup> element is written in superscript; the font size used is the same size as the characters surrounding it but is displayed half a character.s height above the other characters. <p>The following word uses a <sup>superscript</sup> typeface.</p> The following word uses a superscript typeface. www.eshikshak.co.in
  • 28. Subscript Text - The <sub> Element • The content of a <sub> element is written in subscript; the font size used is the same as the characters surrounding it, but is displayed half a character.s height beneath the other characters. <p>The following word uses a <sub>subscript</sub> typeface.</p> The following word uses a subscript typeface. www.eshikshak.co.in
  • 29. Larger Text - The <big> Element • The content of the <big> element is displayed one font size larger than the rest of the text surrounding it. <p>The following word uses a <big>big</big> typeface.</p> The following word uses a big typeface. www.eshikshak.co.in
  • 30. Smaller Text - The <small> Element •The content of the <small> element is displayed one font size smaller than the rest of the text surrounding it. <p>The following word uses a <small>small</ small> typeface.</p> The following word uses a small typeface. www.eshikshak.co.in
  • 31. Nonbreaking Spaces • Suppose you were to use the phrase "12 Angry Men." Here you would not want a browser to split the "12" and "Angry" across two lines: A good example of this technique appears in the movie "12 Angry Men." <p>A good example of this technique appears in the movie "12&nbsp;Angry&nbsp;Men."</p> www.eshikshak.co.in
  • 32. Preserve Formatting - <pre> Element • you want your text to follow the exact format of how it is written in the HTML document. In those cases, you can use the preformatted tag (<pre>). •Any text between the opening <pre> tag and the closing </pre> tag will preserve the formatting of the source document. www.eshikshak.co.in
  • 33. Preserve Formatting - <pre> Element <pre> function testFunction( strText ){ alert (strText) } </pre> function testFunction( strText ){ alert (strText) } www.eshikshak.co.in