The content format determines how the content will appear in the browser. For example, when you visit a Web site, some text appears in a specific format such as bold or underlined. This means that the formatted content makes an HTML page look readable and presentable.
In HTML, formatting is applied to the text by using formatting elements, which are container elements.
The commonly used HTML formatting elements are as follows:
The B element displays the text in bold. The text that needs to be displayed in bold is enclosed between <b> and </b> tags.The I element displays the text in italic. The text that needs to be displayed in italicis enclosed between <i> and </i> tags.
The SMALL element makes the text appear smaller in a browser. The text that needs to be displayed smaller is enclosed between <small> and </small> tags.
The U element applies an underline to the text. The text that needs to be underlined is enclosed between <u> and </u> tags.
Web site displaying basic text formats.
No comments: