Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 2 of 2 FirstFirst 1 2
Results 11 to 12 of 12
  1. #11
    Senior Member Fallout's Avatar
    Join Date
    Aug 2003
    Location
    Richmond, Virginia
    Posts
    543
    Member #
    2748
    I also don't indent <body> or <head> tags. However, I don't see the reason to indent the text of a paragraph if there are no other elements contained in it:

    Code:
    <p>
    	Here is some sample text. Here is some sample text. Here is some sample text. ...
    </p>
    
    <!-- this seems cleaner and neater to me: -->
    <p>Here is some sample text. Here is some sample text. ...</p>
    
    <!-- with images, etc. indenting does help: -->
    <p>
    	Block of text here. Block of text here. Block of text here. ...
    	<img src='image.jpg' alt='sample image' />
    	Here is some more closing text. Here is some more closing text. ...
    </p>

  2.  

  3. #12
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    As I said in the tutorial, that's a matter of personal preference. In multiline paragraphs (multiline in code), it can increase the uniformity of the code -- i.e., why make paragraphs the only ones that don't have opening and closing tags on their own lines and at the same indentation level? But that really is a minor issue, in my opinion, and I certainly don't have problems with code written either way (when reading, I mean).


Page 2 of 2 FirstFirst 1 2

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

indent in xhtml
,
indent text xhtml
,
indent xhtml
,
indenting text in xhtml code
,
word wrap indent in xhtml
,
xhtml full paragraph indent
,

xhtml indent

,

xhtml indent code

,
xhtml indent tag
,
xhtml indent text
Click on a term to search for related topics.
All times are GMT -6. The time now is 05:55 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com