Rabu, 27 September 2023

Paragraph Alignment Using CSS Style And HTML Attribute

Write Left Paragraph Alignment Using CSS

<div style="display:block; float:left; text-align: left; clear: both;
width: 100%; size: 100%">Hello World</div>

Write Center Paragraph Alignment Using CSS

<div style="display:block; float:left; text-align: center; clear: both;
width: 100%; size: 100%">Hello World</div>

Write Right Paragraph Alignment Using CSS

<div style="display:block; float:right; text-align: right; clear: both;
width: 100%; size: 100%">Hello World</div>

Write Left Paragraph Alignment Attributes 1

<p align="left">Hello World</p>

Write Center Paragraph Alignment Using Attributes 1

<p align="center">Hello World</p>

Write Right Paragraph Alignment Attributes 1

<p align="right">Hello World</p>

Write Left Paragraph Alignment Attributes 2

<p style="text-align: left">Hello World</p>

Write Center Paragraph Alignment Using Attributes 2

<p style="text-align: center">Hello World</p>

Write Right Paragraph Alignment Attributes 2

<p style="text-align: right">Hello World</p>


back to Learn HTML

center horizontally, text alignment, stylesheet

Related Post:

Tidak ada komentar:

Posting Komentar

Various Other Posts