Connect with us

HTML

HTML Formatting

The HTML Formatting contain special type of text like Bold text, Italic text, Deleted text, Inserted text, Emphasized text, Marked text, Small text, Subscripts, Superscripts that is used for Formatting purpose.

mm

Published

on

HTML uses elements like <b>, <em> and <i> for formatting output. Some Formatting Elements which is used for special types of text:-

  • Bold text
  • Italic text
  • Deleted text
  • Inserted text
  • Emphasized text
  • Marked text
  • Small text
  • Subscripts
  • Superscripts

Bold Text

Bold text appears within <b>…</b> element.
Example:–

<!DOCTYPE html>

<html>

<head>

<title>Bold Text Example</title>

</head>

<body>

<p>This element make text <b>bolder</b></p>

</body>

</html>

Italic Text

Italic text appears within <i>…</i> element.
Example:–

<!DOCTYPE html>

<html>

<head>

<title>ItalicText Example</title>

</head>

<body>

<p>This element make text <i>Italic</i></p>

</body>

</html>

Deleted Text

Deleted text appears within <del>…</del> element.

Example:–

<!DOCTYPE html>

<html>

<head>

<title>DeletedText Example</title>

</head>

<body>

<p>This element make text <del><i>Italic</i></del></p>

</body>

</html>

Inserted Text

Inserted text appears within <ins>…</ins> element.

Example:–

<!DOCTYPE html>

<html>

<head>

<title>Inserted Text Example</title>

</head>

<body>

<p>This element make text <ins><i>Italic</i></ins></p>

</body>

</html>

Emphasized Text

Also Read :   HTML Tags

Emphasized text appears within <em>…</em> element.

Example:–

<!DOCTYPE html>

<html>

<head>

<title>Emphasized Text Example</title>

</head>

<body>

<p>This element make text <em>Italic</em></p>

</body>

</html>

Marked Text

Marked text appears within <mark>…</mark> element. This make text marked or highlighted text.

Example:–

<!DOCTYPE html>

<html>

<head>

<title>Marked Text Example</title>

</head>

<body>

<p>This element make text <mark>Italic</mark></p>

</body>

</html>

Smaller Text

Smaller text appears within <small>…</small> element. This makes text small.

Example:–

<!DOCTYPE html>

<html>

<head>

<title>Small Text Example</title>

</head>

<body>

<p><small>This element make text Italic</small></p>

</body>

</html>

Larger Text

Larger text appears within <big>…</big> element. This makes text big.

Example:–

<!DOCTYPE html>

<html>

<head>

<title>Big Text Example</title>

</head>

<body>

<p><strong><big>This element make text Italic</big><strong></p>

</body>

</html>

Subscript Text

Subscript text appears within <sub>…</sub> element. The text displayed half a character’s height beneath the other characters.

Example:–

<!DOCTYPE html>

<html>

<head>

Also Read :   HTML Event Attributes

<title>Subscript Text Example</title>

</head>

<body>

<p>This element make text <sub>Italic</sub></p>

</body>

</html>

Superscript Text

Superscript text appears within <sup>…</sup> element. The text displayed half a character’s height above the other characters.

Example:–

<!DOCTYPE html>

<html>

<head>

<title>Bold Text Example</title>

</head>

<body>

<p>This element make text <sup>Italic</sup></p>

</body>

</html>

 

Hi, Thank you for reading my article. I am Victor, a professional blogger from Jaipur, India.I started webetutorial for blogging & sharing solution for developer questions, and now it’s empowering globally by helping them to make money.I am writing about starting & managing a blogs, WordPress, Magento, Social Media, SEO, Marketing, making money online, Investment, Finance, Gadgets, Fitness and more.

Continue Reading
Advertisement
Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

sixteen − fifteen =

HTML

HTML Character Sets

ASCII was the first character set. It describes 127 different alphanumeric characters that can be used on the internet.

mm

Published

on

To display an HTML page properly, a web browser must know the character set to use.

ASCII was the first character set. It describes 127 different alphanumeric characters that can be used on the internet.

ASCII supported numbers (0-9), English letters (A-Z), and some special characters. UTF-8 (Unicode) covers almost all of the characters and symbols in the world.

ISO-8859-1 was the default character. It also supported 256 different character codes.
The HTML charset Attribute:-
This is specified in the <meta> tag:-

<meta charset=”UTF-8″>

Also Read :   HTML Event Attributes
Continue Reading

Subscribe to our newsletter

Enter your email address to subscribe to blog and receive notifications of new articles by email.
100% Privacy. No spam guaranteed

Trending