Document Formatting Tags In HTML, you can create a title in the document, make text bold, italic, underlined, create bullets, and create horizontal lines. Some of them are:
Start tag | End tag | Description |
<H1>…<H2> | </H1>…</H2> | Header Tags:The number 1 is the widest. The default alignment is left and we can change it if we want. |
<STRONG> | </STRONG> | Strong Emphasis |
<EM> | </EM> | Emphasis: Accent Label. It usually appears in italics. |
<B> | </B> | Bold |
<I> | </I> | Italic |
<U> | </U> | Underline |
<PRE> | </PRE> | Preformatted: Shows text with the same width for each character, such as the Courier font. This type of fonts is called font-pitch. |
<P> | </P> | Paragraph tag. The closure tag may not be used. The Align value is left by default, leaving one line blank before and after this tag block. |
<DIV> | </DIV> | Division: Section Label. Used to open a new section on the page. The default value of the Align property is left, and there are no empty lines before and after the block, as in the P tag. |
<CENTER> | </CENTER> | The text in between is averaged. |
<BR> | no | Line Break |
<HR> | no | Horizontal Rule |
<BASEFONT> | no | Used to change the overall text size and color of the page. There are properties of size and color. |
<FONT> | </FONT> | Used to write 1 degree larger than the size of the font in the area where it is used |
<SMALL> | </SMALL> | Used to write less than 1 degree of the size of the font in the area where it is used |
<BIG> | </BIG> | Used to write 1 degree larger than the size of the font in the area where it is used |