Page 91 - Plus V4 with Adobe class 7
P. 91
<hr Size="10" width="80%" >
<p>This is the second paragraph of the tag.HTML is the standard markup language
for Web pages.</p>
<hr Size="10" width="80%"
color="grey">
<hr Size="10" width="80%"
color="Red">
</BODY>
</HTML>
The <SUP> Tag
2
The <SUP> tag is used to turn the enclosed text into a superscript. For example, E=mc is coded
as E=mc<sup>2</sup>
The <SUB> Tag
The <SUB> tag is used to turn the enclosed text into a subscript. For example, H O is coded
2
as H<sub>2</sub>O
TEXT PROPERTIES
Text properties are used to change the appearance of the text. The text properties and their values
used with the style attribute are given below:
Property Value Description
Specifies the text colour to be used on the web
color Name of the colour
page.
text-align left, right, center, justify Specifies the alignment of the text.
Specifies the indentation of the first line of the
text-indent length in pixels or percentage
text.
underline, overline or Specifies the text effects like underline, over line
text-decoration
strikethrough or strike-through.
capitalize, uppercase, lowercase Specifies the transformation of text into
text-transform
and none uppercase, lowercase or title case.
Create an HTML5 web page by using the text properties.
<!DOCTYPE html>
<HTML>
<HEAD> <TITLE>Text Properties</TITLE>
<STYLE>
H1{font-family:Comic Sans MS; text-align:center;
text-decoration:underline;color:red}
#More on HTML5 89

