Online Training for Asp.net MVC Web Designing Development, MS SQL, Digital Marketing

Paragraph tag in HTML, Online HTML Tutorial

In HTML there is <p> tag for creating paragraph
Conceptually <p> works just like how we consider paragraph, it takes the width of container.

Html P Tag Example

Let's learn using example
<p>
This is an example of paragraph in html, we are learning p tag in html document. This is an example of paragraph in html, we are learning p tag in html document
</p>

Now if you notice where line break happens in paragraph, take full with of container, so if you need a line break in particular position use <br> tag

Paragraph font size, color and line height

Paragraph has a default font size, color and line height, but you can change all defaults value in your web application just by setting standard properties value in your css style sheet file

You can write something like this in your application CSS file, Note: this is not a class, default property of all paragraph in your application
p
{
line-height:30px;
font-size:18px;
color:#044472;
}

Alternatively you also can write a class and call them in any p tag you want like this
<p class="className"> here is para content</p>

Comment
Name Email Website
Subscribe
 
Paragraph tag in HTML, Online HTML Tutorial

Group Training