Day_02_Text and Formatting
Day_02_Text and Formatting
mehereesh/Github.com
You Get Every Notes and examples and
challenges here.
CHINTAMAKULA MEHEREESH 1
How to start?
Step1: Install visual studio code.
Step2: Download extensions (live server, Prettier).
Step3: Create the folder, Create a file with name (index.html)
Step 4: Enter Code, Tap Go live (Live server) live preview appeared in web.
Heading tags:
Header tags are used to define headings in an HTML document. There are six levels of
headings, ranging from <h1> (most important) to <h6> (least important).
Example:
<h1>Main Heading</h1>
<h2>Subheading</h2>
<h3>Sub-subheading</h3>
CHINTAMAKULA MEHEREESH 2
Paragraph Tag:
<p> The paragraph tag is used to define a paragraph of text.
Syntax:
<p> Content </p>
Example:
<p>This is a paragraph of text.</p>
Strong and Emphasis Tags:
<strong> The strong tag is used to indicate strong importance .
<em> emphasis, while the emphasis tag is used to indicate mild emphasis.
Example:
Example:
<p>This is a paragraph of text. <br> This is a new line.</p>
CHINTAMAKULA MEHEREESH 3
Practice Time!
<!DOCTYPE html>
<html>
<head>
<title>Text Formatting</title>
</head>
<body>
<h1>Main Heading</h1>
<p>This is a paragraph of text.</p>
<h2>Subheading</h2>
<p>This text is <strong>very important</strong> and <em>somewhat
emphasized</em>.</p>
<p>This is a paragraph of text.<br>This is a new line.</p>
<hr>
<h3>Sub-subheading</h3>
<p>This is a new section of content.</p>
</body>
</html>
Open this HTML document in a web browser to see the formatted text in action!
CHINTAMAKULA MEHEREESH 4