Download presentation
Presentation is loading. Please wait.
Published byLinda Watson Modified over 9 years ago
1
Web Development Lecture # 09 Text Formatting in HTML
2
Text Formatting Paragraph Tag “Indicates that the enclosed text is a logical unit.” … Places one or two blank lines at start and end depending on the browser. Attributes –ALIGN “This attribute specifies the alignment of the text within a paragraph.” Values Left Right Center The default value is “left”.
3
Text Formatting Line Breaks “This element enforces a line break.” This is single tag (or empty element) having no closing tag. A single element goes to the next line. To insert blank lines, use multiple elements.
4
Text Formatting Headings “The heading elements are used to create headlines in the documents” These are used to convey the logical meaning about document’s structure. These display the enclosed text in large & bold font style. We don't know the exact size of their font as it differs with browsers. Six different levels of headings are supported. … to … is most important. is least important.
5
Text Formatting Drawing Lines/Horizontal Rules “ This element is used to insert a horizontal rule to visually separate document sessions. ” In speech based browsers, a horizontal rule theoretically could be interpreted as a pause. Attributes –ALIGN Values Left Right Center
6
Text Formatting Drawing Lines/Horizontal Rules Cont. –SIZE “This argument specifies the height of the line in pixels.” –WIDTH “This argument specifies the width of the line in pixels or %age of the screen width.” –NOSHADE “Causes the line to be rendered without surrounding shadow.” –COLOR “ This argument specifies the color of line. Its value can be a color name or hexadecimal representation of R,G & B.
7
Text Formatting Typewriter – … Strike Through – … –.. Big Font –.. Small Font – …
8
Text Formatting Super Script – … Sub Script – …
9
Text Styles Bold and Italics and Underline and Text Effects Center and Spacing Attributes TYPE SIZE
10
Preformatted Tex and Controlling Font Size & Color and Attributes –FONTFACE –SIZE –COLOR Other Text Effects
11
Code CHECK Output Fig. 1.6
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.