Page 155 - Web Applications (803) Class 11
P. 155
The <SUP> Tag
The <SUP> tag is used to turn the enclosed text into a superscript. For example, E = mc is coded
2
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
Using the <FONT> Tag
The <font> tag in HTML is essential for creating a visually appealing and readable web page. The font tag is used to
customize a text’s colour, size, and style. Some of the attributes of <font > tag are as follows:
Attribute Description
size To change the text size in the HTML document. The range
of the font size in HTML is 1 to 7 and the default size is 3.
color To set the text colour.
face To set the font type. The font should be installed in your
system. Default is “Arial”.
Subject Enrichment
Video Session Communication
Scan the QR code or visit the following link to watch the videos: HTML - Basic Tags
https://www.youtube.com/watch?v=uMIjPKUXEEE
HTML Introduction: How to Code a Simple Web Page
https://www.youtube.com/watch?v=WwNuvGLblJU
Now answer the following questions:
1. What is the use of the <HR> tag?
.....................................................................................................................................................................................
2. Write one line HTML code to create a heading of level 5.
.....................................................................................................................................................................................
Lab Assignment ‘n Activity Experiential Learning
Computational Thinking
1. Type the following code and see the output.
<!DOCTYPE html>
<html>
<head>
<title> My Webpage </title>
</head><body bgcolor=“pink”><h1>My Shadow by R L Stevenson</h1>
<hr>
<font color=“blue” size=4>
Website Development using HTML and CSS 153

