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

Starex International School Topic: HTML Tags

This document discusses various HTML tags used to format text and structure web pages. It describes tags such as <p> for paragraphs, <br> for line breaks, <center> for centering text, and <hr> for horizontal rules. It also covers tags for changing text style like <b> for bold, <i> for italics, and <u> for underline. The document provides details on tags for headings, text direction with <bdo>, setting colors, and margins. It categorizes tags as either container tags which envelop content or empty tags which stand alone like <br>.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views

Starex International School Topic: HTML Tags

This document discusses various HTML tags used to format text and structure web pages. It describes tags such as <p> for paragraphs, <br> for line breaks, <center> for centering text, and <hr> for horizontal rules. It also covers tags for changing text style like <b> for bold, <i> for italics, and <u> for underline. The document provides details on tags for headings, text direction with <bdo>, setting colors, and margins. It categorizes tags as either container tags which envelop content or empty tags which stand alone like <br>.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

STAREX INTERNATIONAL SCHOOL TOPIC:

1. <P>

HTML Tags

This Tag is used to mark and demarcate a paragraph. We insert this tag at the beginning of the paragraph and can format the entire paragraph with it. We can use this tag to skip a line at the end of the paragraph. This Tag is a Container Tag.

Attributes 1. Align = right or left or justify or center <P align= right > then your paragraph </P> 2. 3. 4. <BR> This Tag is used to create a line break in the page. This Tag is an empty Tag. <CENTER> This Tag is used to place the text in the centre of the page. This is a container Tag. <HR> This Tag is used when we want to draw a horizontal line in between the text. Attributes 1. Align=left or right or center 2. Size of the line i.e. thickness. Default Size is 2 3. Width is specified in percentage. 4. NOSHADE makes the line an unshaded dark gray line. <HR Align=center Size=4 Width=50% NOSHADE> 5. 6. 7. 8. 9. 10. 11. 12. 13. <B> <Big> <I> <Small> <U> <Strike> <Sub> <Sup> For making Text Bold. For making Text Big. For making Text Italics. For making Text Small For Underlining Text For crossed out Text. For subscripted Text. For superscripted Text.

<bdo dir=rtl> BDO Tag defines the Text Direction.

Dir attribute is used for defining direction Rtl means right to left. 14. How to Change text Colour <Body text=red> this text is in red. </Body> 15. Change Background Colour <Body bgcolor=blue> </body> 16. Change Page Margin

<Body leftmargin=20 topmargin=20 rightmargin=40 bottommargin=25> </Body> 17. Heading Tag: Headings are defined with the <h1> to <h6> tags. <h1> defines largest heading <h6> defines smallest heading Formatting the font we can set the font from a list of fonts available. <font face= times new roman or arial size=4 Color=red> </font> Size varies from 1 to 7, 7 being the largest. Container Tags 1. <HTML> 2. <HEAD> 3. <TITLE> 4. <BODY> 5. <P> 6. <BIG> 7. <SMALL> 8. <B> 9. <I> 10. <U> 11. <H1> TO <H6> 12. <CENTER> 13. <STRIKE 14. <SUP> 15. <SUB> 16. <BDO> 17. <FONT> Empty Tags 1. <BR> 2. <HR>

18.

You might also like