HTML Text Formatting Elements

HTML Text Formatting Elements

ยท

3 min read

  • HTML elements are pre-defined elements that change the format of text style, such as changing text to bold, italic, highlighting the text, subscript, and superscript.

Definition and syntax style of text element

  • <b>/<strong>: Both tags are used to make the text bold. This text shows the important information of the webpage. It has opening and closing tags.

Syntax

<p>
      Public and private schools in <b>Hyderabad</b> are governed by the Board
      of Secondary Education, Telangana or Central Board of Secondary Education,
      depending on the affiliation and follow a "10+2+3" plan. About two-thirds
      of pupils attend privately run institutions. Languages of instruction
      include <strong>English, Hindi, Telugu and Urdu</strong>. Depending on the
      institution, students are required to sit the
      <b>Secondary School Certificate</b> or the
      <strong>Indian Certificate of Secondary Education</strong>. After
      completing secondary education, students enrol in schools or junior
      colleges with higher secondary facilities. Admission to professional
      graduation colleges in Hyderabad, many of which are affiliated with either
      <b>Jawaharlal Nehru Technological University Hyderabad (JNTUH)</b> or
      <strong>Osmaniaa University (OU)</strong>, is through the
      <b>Engineering Agricultural and Medical Common Entrance Test (EAM-CET)</b
      >.
</p>

  • <i>/<em>: Both tags are used to make the text italic and emphasize. They have opening and closing tags.

Syntax

<p>Public and private schools in <i>Hyderabad</i> are governed by the Board
      of Secondary Education, Telangana or Central Board of Secondary Education,
      depending on the affiliation and follow a "10+2+3" plan. About two-thirds
      of pupils attend privately run institutions. Languages of instruction
      include <em>English, Hindi, Telugu and Urdu</em>. Depending on the
      institution, students are required to sit the
      <i>Secondary School Certificate</i> or the
      <em>Indian Certificate of Secondary Education</em>. After completing
      secondary education, students enrol in schools or junior colleges with
      higher secondary facilities. Admission to professional graduation colleges
      in Hyderabad, many of which are affiliated with either
      <i>Jawaharlal Nehru Technological University Hyderabad (JNTUH)</i> or
      <em>Osmaniaa University (OU)</em>, is through the
      <i>Engineering Agricultural and Medical Common Entrance Test (EAM-CET)</i
      >.</p>

  • <mark>: The mark tag is used to highlight the text on the webpage.

Syntax

<p>
      Public and private schools in <mark>Hyderabad</mark> are governed by the Board
      of Secondary Education, Telangana or Central Board of Secondary Education,
      depending on the affiliation and follow a "10+2+3" plan. About two-thirds
      of pupils attend privately run institutions. Languages of instruction
      include <mark>English, Hindi, Telugu and Urdu</mark>. Depending on the
      institution, students are required to sit the
      <mark>Secondary School Certificate</mark> or the
      <mark>Indian Certificate of Secondary Education</mark>. After completing
      secondary education, students enrol in schools or junior colleges with
      higher secondary facilities. Admission to professional graduation colleges
      in Hyderabad, many of which are affiliated with either
      <mark>Jawaharlal Nehru Technological University Hyderabad (JNTUH)</mark> or
      <mark>Osmaniaa University (OU)</mark>, is through the
      <mark>Engineering Agricultural and Medical Common Entrance Test (EAM-CET)</mark
      >.
</p>

  • <sub> & <sup>: The sub tag is used for subscript. The text appears halfway below the line. The sup tag is used for superscript. The text appears halfway above the line.

Syntax

<p>This is superscript square number 54 <sup>2</sup></p>
<p>This is subscript water formula HO <sub>2</sub></p>


Happy Learning

Thanks For Reading! :)

-SriParthu๐Ÿ’๐Ÿ’ฅ

ย