Every Html element has a default style in HTML document, which include background-color: white, color: black, font-size: 16px. HTML style attribute is used to override the default style or add new inline style on any elements in HTML document.
<tag_name style="property-1: value; property-2: value;...property-n: value;"></tag_name>
<h1 style="background-color: brown; color: red; font-size: 14px">Tutorials Logic</h1>
HTML formatting is a process of formatting a text to improve look and feel, without using CSS. There are various formatting tags available in HTML, which include following-
| Formatting Tags | Description |
|---|---|
| <b> | - |
| <i> | - |
| <strong> | - |
| <sup> | - |
| <sub> | - |