Working with Paragraph in HTML:-
HTML paragraphs are defined with <p> tag. A paragraph always start with a new line.
- To indicate the beginning of a paragraph, enter an opening <p> tag in the <body> section of your code.
- To mark the end of a paragraph, place the closing </p> tag at the end of your paragraph.
- To align a paragraph, add the align attribute to the paragraph tag: <p align=”right”>
- Set the align attribute equal to left, right, center, or justified
Exercise :-
<html>
<head>
<title>Working with Paragraph</title>
</head>
<body>
<p>Type paragraphs here </p>
<p align=”right”>HTML only recognizes single spaces between characters. Other than a single tap on the space bar, HTML has little regard for how you type things. What it does have regard for is tags.</p>
</body>
</html>
0 Comments