0% found this document useful (0 votes)
10 views

HTML2

The document describes various HTML text formatting tags: <p> defines a paragraph. <br> inserts a line break. <B>, <I>, and <u> make text bold, italic, or underlined. <h1> to <h6> define six levels of headings. <hr> inserts a horizontal line. The <font> tag controls font face, size, and color, while <em> adds emphasis to text.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

HTML2

The document describes various HTML text formatting tags: <p> defines a paragraph. <br> inserts a line break. <B>, <I>, and <u> make text bold, italic, or underlined. <h1> to <h6> define six levels of headings. <hr> inserts a horizontal line. The <font> tag controls font face, size, and color, while <em> adds emphasis to text.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 4

HTML Text Formatting

Opening Tag Closing Tag Use

<p> </p> Paragraph start and end

<br> [None] Line Break

<B> </B> Start and end bold text.

<I> </I> Start and end Italic text.

<u> </u> Start and end Underline text.

<h1>to<H6> </h1>to</H6> Six different level of Headings

<hr> [None] Horizontal line


• HTML <p> Tag
• The <p> tag defines a paragraph.
• The p element automatically creates some space before and
after itself. The space is automatically applied by the browser,
or you can specify it in a style sheet.

Attribute Value Description


align left Specifies the alignment of
right the text within a
center paragraph
Exp_6 justify
Tag Name Code Example Browser View
<big> big (text) <big>Example</big> Example
<center>This will
This will center
<center> center center your
your contents
contents</center>
<small> small (text) Renders as smaller text Example
<font face="Times New
Roman" size="+3"
<font> font Example
color="#ff0000">Exampl
e</font>
<!--This can be viewed
<!-- comment in the HTML part of a Nothing will show
document-->
This is This is
an <em>Example</em an Example of
<em> emphasis
> of using the emphasis using
tag the emphasis tag
<embed src="yourfile.
<embed> mid" width="100%"
embed object
height="60"
align="center">
HTML <font> Tag
• The <font> tag specifies the font face, font size, and font
color of text.

Attribute Value Description


color rgb(x,x,x) Specifies the color
#xxxxxx of text
colorname
face font_family Specifies the font of
text
size number Specifies the size of
text

You might also like