{"id":50,"date":"2022-03-19T09:11:35","date_gmt":"2022-03-19T09:11:35","guid":{"rendered":"https:\/\/staging.brightwhiz.com\/?post_type=topic&p=50"},"modified":"2022-03-19T09:37:46","modified_gmt":"2022-03-19T09:37:46","slug":"html-formatting","status":"publish","type":"topic","link":"http:\/\/local.tutorials\/topic\/html-formatting\/","title":{"rendered":"HTML – Formatting"},"content":{"rendered":"\n
HTML contains defined elements for defining how text is formatted. HTML Formatting of text borrows from the traditional Word Processing tools.<\/p>\n\n\n\n
Here is a summary of HTML text formatting elements.<\/p>\n\n\n\n
<b><\/code> – Bold text<\/li><strong><\/code> – Important text<\/li><i><\/code> – Italic text<\/li><em><\/code> – Emphasized text<\/li><u><\/code> – Underlined text<\/li><mark><\/code> – Marked text<\/li><small><\/code> – Smaller text<\/li><del><\/code> – Deleted text<\/li><ins><\/code> – Inserted text<\/li><s><\/code> – No longer valid text<\/li><sub><\/code> – Subscript text<\/li><sup><\/code> – Superscript text<\/li><\/ul>\n\n\n\nBold Text<\/h2>\n\n\n\n
The HTML <b><\/code> element defines the bold text, without any extra importance.<\/p>\n\n\n\n<b>This text is bold<\/b><\/code><\/pre>\n\n\n\nThe HTML <strong><\/code> element defines text with strong importance. Visually it is typically displayed in bold.<\/p>\n\n\n\n<strong>This text is important!<\/strong><\/code><\/pre>\n\n\n\nItalic Text<\/h2>\n\n\n\n
The HTML <i><\/code> element defines text in an alternate voice or mood. Visually it is typically displayed in italic.<\/p>\n\n\n\n<i>This text is italic<\/i><\/code><\/pre>\n\n\n\nThe HTML <em><\/code> element defines emphasized text and is typically displayed in italic.<\/p>\n\n\n\n<em>This text is emphasized<\/em><\/code><\/pre>\n\n\n\nUnderlined Text<\/h2>\n\n\n\n
The HTML <u><\/code> element defines some text that is unarticulated and typically displayed underlined.<\/p>\n\n\n\n<u>This text is underlined<\/u><\/code><\/pre>\n\n\n\nSmaller Text<\/h2>\n\n\n\n
The HTML <small><\/code> element defines the text that is one font size smaller than the surrounding text.<\/p>\n\n\n\n<p>This text is <smaller>smaller<\/small> than the rest.<\/p><\/code><\/pre>\n\n\n\nMarked or Highlighted text<\/h2>\n\n\n\n
The HTML <mark><\/code> element defines the text that should be marked or highlighted.<\/p>\n\n\n\n<p>Do not forget to <mark>highlight<\/mark> your ideas.<\/p><\/code><\/pre>\n\n\n\nDeleted Text<\/h2>\n\n\n\n
The HTML <del><\/code> element defines the text that has been deleted from a document. Visually it is typically displayed with crossed-out text.<\/p>\n\n\n\n<p>The race covers <del>thirty<\/del> forty miles.<\/p><\/code><\/pre>\n\n\n\nInserted Text<\/h2>\n\n\n\n
The HTML <ins><\/code> element defines a text that has been inserted into a document. Major Web browsers will typically underline inserted text.<\/p>\n\n\n\n<p>His name is Jack <ins>Murphy<\/ins><\/p><\/code><\/pre>\n\n\n\nNo Longer Valid Text.<\/h2>\n\n\n\n
The HTML <s><\/code> element defines the text that is no longer valid in the specified context.<\/p>\n\n\n\n<p>He win a truck <s>not a sedan<\/s> in the competition<\/p><\/code><\/pre>\n\n\n\nSubscript Text<\/h2>\n\n\n\n
The HTML <sub><\/code> element defines subscript text. Subscript is the text that appears half a character below the normal line and is sometimes rendered in a smaller font. Subscript is ideal for formatting chemical formulas such as CO2<\/sub>.<\/p>\n\n\n\n<p>This is the formula for carbon dioxide CO<sub>2<\/sub><\/p><\/code><\/pre>\n\n\n\nSuperscript Text<\/h2>\n\n\n\n
The HTML <sup><\/code> element defines superscript text. Superscript is the text that appears half a character above the normal line and is sometimes rendered in a smaller font. Superscript can be useful in scientific formulas such as 92<\/sup>.<\/p>\n\n\n\n<p>This is the square root of nine: 9<sup>2<\/sup> = 3<\/p><\/code><\/pre>\n\n\n\n