HTML Basics: Step Up Your Formatting Game – A Detailed Guide on How to Use Text Styles Effectively

Deutsch

Format Text

Logical text markup refers to marking of single words or entire sections of text to highlight them semantically (or logically) in the text. The most important types of text markup are:

Format Text Using Logical or Physical Markup

Text on web pages can be marked up using HTML tags to highlight it visually, e.g. in bold or italics. There is a difference between logical (semantic) markup and physical (visual) markup.

These two types of markup usually have the same visual appearance. However, semantic markup gives the text a special (content-related) meaning. This is not the case with visual markup.

Text on a web page should always be marked up logically according to its content-related meaning. This has the following advantages: