HTML Formatting basically refers to the enhancing of text in order to increase the visual appeal. HTML provides a range of formatting tags that can be used to make the text attractive to the users. There are many options available that can be used for formatting, just like any other text editor.
There are two types of HTML tags:
Now, we shall discuss some of the major formatting text in HTML.
HTML headings range from 1 to 6. The heading defined within
<html>
<head>
<title>DataFlair</title>
</head>
<body>
<h1>DataFlair Heading 1</h1>
<h2>DataFlair Heading 2</h2>
<h3>DataFlair Heading 3</h3>
<h4>DataFlair Heading 4</h4>
<h5>DataFlair Heading 5</h5>
<h6>DataFlair Heading 6</h6>
</body>
</html>
Output:
This is defined by the tag. This is a physical tag which is used to display the text in Bold. For example,
<!DOCTYPE html>
<html>
<head>
<title>DataFlair</title>
</head>
<body>
<p><b>Welcome to DataFlair!</b></p>
</body>
</html>
Output:
It displays the content in a manner such that it appears as important.
<!DOCTYPE html>
<html>
<head>
<title>DataFlair</title>
</head>
<body>
<p><strong>Welcome to DataFlair!</strong></p>
</body>
</html>
Output:
#html tutorials #html formatting #html