Page 98 - TGPT_V5.0_C5_Flipbook
P. 98
Viewing a Web Page
After creating and saving an HTML document, you need to open it into a web browser to
view it. To open an HTML document into web browser, open the folder in which you have
saved the HTML document and double-click it. Web page opens in your default web browser
window.
TEXT FORMATTING
Text Formatting means changing the look of text on a web page to make it more attractive and
easy to read. We can make the text bold, italic, or underlined using special tags. These tags
help to highlight important words and make the webpage look better. Let us discuss some tags
in detail.
The Bold Tag
The Bold tag is written as <b>. This tag is used to give a bold effect to your text. You need to tell
the web browser when to start using the bold effect and where to stop using the bold effect. It
is a container tag and used in pairs as <b> and </b>.
The Italic Tag
The Italic tag is written as <i>. This tag is used to give an italic effect to your text. You need to tell
the web browser when to start using the italic effect and where to stop using the italic effect.
It is also a container tag and used in pairs as <i> and </i>.
The Underline Tag
The underline text is achieved using the CSS property text-decoration: underline;, which is the
recommended method for applying underlines to text. Although the <u> tag can be used, it
is primarily intended for non-textual annotations, such as misspelled words or special terms,
rather than for general styling.
The Superscript Tag
2
The Superscript tag is used to turn the enclosed text into a superscript. For example, E=mc is
coded as E=mc<sup>2</sup>
The Subscript Tag
The superscript tag is used to turn the enclosed text into a subscript. For example, H O is
2
coded as H<sub>2</sub>O
96 Premium Edition-V

