HTML Formatting
- As more and more elements are added to HTML code, minor changes may be required to format those elements. There is a range of formatting tags, which amplify text elements. These tags can add various effects to the plain text, making it bold, italic, underline it etc.
- Example:
- *Important note: it is recommended not to overload the text with HTML formatting tags. They should better be used separately; italicizing and bold font for the same word will be unnecessary exaggeration. To apply formatting to a block of text, CCS (or Cascading Style Sheets) should be used.
- HTML Styles
- The style is the HTML attribute, which introduces CSS to the HTML code. Style attribute is used for formatting a block of text in a single style. Styles firstly appeared with HTML 4, as a new method of formatting HTML elements in an easier way. Styles can be introduced to HTML elements in a direct way, by means of the style attribute, or indirectly with the help of CSS.
- Style examples:
- *Important note: certain tags and attributes are considered as deprecated. It means that these tags and attributes will not be accepted by future versions of HTML/XHTML.
- The list of tags that should be avoided:
-