Paragraph layout code in html

Posted: June 8, 2012 by makaranddalal in HTML

HTML Paragraph:

  • Browser ignores Layout
  • Browser ignores lot of lines
  • Browser ignores space
Number of lines in a paragraph depends on a browser window, if you re-size the browser window, the number of lines in this paragraph will change.

<!DOCTYPE html>
<html>
<body>

<p>
Hie, hows you dear ?
Me fine, hows you?
Me great enjoying my holidays..What about you??
</p>
<p>Browser ignores lot of lines in source code.</p>
<hr>
<p>
Hie, hows           you dear ?
Me         fine,            hows you?
Me great                  enjoying my holidays..        What about you??
</p>
<p>Above paragraph contains a lot of spaces in the source code,but the browser ignores it.</p>
<hr>
<p>Number of lines in paragraph keeps on changing, depending on the browser used</p>
</body>
</html>

Output:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s