0% found this document useful (0 votes)
7 views2 pages

HTML Background and Formatting Tags

The document provides an overview of basic HTML tags and their functions, including tags for formatting text, changing background colors, and inserting images. It explains the use of various tags such as <br>, <p>, <font>, and <hr> for structuring and styling web pages. Additionally, it includes examples of how to apply these tags to create a simple HTML document.

Uploaded by

Sandy
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

HTML Background and Formatting Tags

The document provides an overview of basic HTML tags and their functions, including tags for formatting text, changing background colors, and inserting images. It explains the use of various tags such as <br>, <p>, <font>, and <hr> for structuring and styling web pages. Additionally, it includes examples of how to apply these tags to create a simple HTML document.

Uploaded by

Sandy
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

HTML CODE AND CHANGING BACKGROUND

<br> ( break statement) This tag is used to insert a line break between two lines of text.
<p> (Paragraph) – This tag used to start a new paragraph.

</p>- This tag is used to end the paragraph.


<body bg color = Red> - This tag help us to change the background color to Red.
<body text = Yellow> - This tag help us to change the font color.
<body background = “ d:/ pictures/ [Link]”>

This tag help us to insert pictures background.


<html>
<head>
<title> Day light Institute </ title>
</head>
<body by color = red. text = yellow>
I have started learning html </ br> After a period of short time I will be able to develop
web pages of my own.
HTML language consists of tags only. Each tag has got a predefined meaning of effect
which is produced on the text. Enclosed by opening and closing tag <br>
</body>
</html>

FOR PICTURE BACKGROUND HTML CODES:


<body background = “locationof picture”>
<html>
<head>
<title> Background Image </ title>
</body>
</html>

FORMATING A DOCUMENT IN HTML CODES USED IN HTML


1. <Font size = 4>This tag is used to give font size.
2. </font> This tag is used to end the font size.
3. <font color = Red> This tag is used to give font color.
4. <font face =” Arial”> This tag is used to give text / change fonts.
5. < base font size= 3> This tag is used to change the font size for the enter page
6. <hr> This tag is used to draw a horizontal line across the page.
7. <hr size = 4> This tag is used to control the thickness of horizontal rule.
8. <hr width = 25%> This tag is used to give blank spaces between the two words.
9. <hr align = left> This tag is used to control the alignment of the line.
10. &nbsp;  This attribute is used to give blank spaces between the two words.(Hi
&nbsp; &nbsp; &nbsp; &nbsp; Hello)
11. <b> or <em> = This tag is used to make the text bold.
12. </b> = This tag is used to closed the bold formatting.
13. <i>= This tag is used to write the text in italics.
14. </i> = This tag is used to close the italics
15. <U> = This tag is used to write the text or underline the text.
16. </U> = This tag is used to closed the underline.
17. <Strike> or <S> = This tag is used strike the sentence or letter.
18. </Strike> = This tag is used to close the strike.
19. <Sup> = This tag is used to superscript the text. e.g. 22
20. </ Sup> = This tag is used to end the superscript.
<Sub> = This tag is used to write in the subscript. E.g. H

You might also like