Skip to main content

Posts

Showing posts with the label HTML Text Formatting

HTML Text Formatting | Headings - Paragraphs - Bold and Strong - Superscrip - Some common HTML elements for text formatting

HTML Text Formatting:` In HTML, text formatting can be achieved using various elements and attributes.  Here are some common HTML elements for text formatting: 1. Headings (`<h1>` to `<h6>`): Headings are used to define headings in a document. The `<h1>` element represents the highest level of heading, and `<h6>` represents the lowest.     html     <h1>This is Heading 1</h1>     <h2>This is Heading 2</h2>     <!-- ... -->     <h6>This is Heading 6</h6> HTML Text Formatting 2. Paragraphs (`<p>`): The `<p>` element is used to define paragraphs.     html     <p>This is a paragraph.</p> 3. Bold (`<b>`) and Strong (`<strong>`): The `<b>` element is used for bold text, and `<strong>` is used to give strong importance to the enclosed text.     html     <b>This is bold text...