/    Sign up×
Community /Pin to ProfileBookmark

Why are tags kind of scattered around opposed to just being lined up to the left?

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@CharlesDec 21.2004 — [i]Originally posted by newbiewebdev [/i]

[B]Why are tags kind of scattered around opposed to just being lined up to the left? [/B][/QUOTE]
To emphasize the nesting.
Copy linkTweet thisAlerts:
@newbiewebdevauthorDec 21.2004 — how do you know how many spaces the tags should be moved over by?
Copy linkTweet thisAlerts:
@CharlesDec 21.2004 — There is no "supposed to". You may indent or not as you please.
Copy linkTweet thisAlerts:
@NogDogDec 21.2004 — Note that this is just a method to make the source easier to read for us humans, it does not affect how the browser reads/interprets it. (Well, OK, it might add a few microseconds as it skips over those added spaces/tabs.) When I'm indenting source code, I usually use 2-space increments as I find this enough to be easily visible while allowing several layers of indention without having huge amounts of whitespace. I have seen 3 spaces recommended as the ideal amount, and a lot of places where 4-space indents are used. I think anything more than 4 is overkill, but it's all kind of a personal preference.
Copy linkTweet thisAlerts:
@ray326Dec 22.2004 — ...it does not affect how the browser reads/interprets it.[/QUOTE] Well, it [b]shouldn't[/b] have an effect but that assumes a decent browser. IE has problems with certain kinds of formating, especially in tables.
Copy linkTweet thisAlerts:
@Stephen_PhilbinDec 22.2004 — I've always had trouble setting out my mark up in true php source, and have it properly laid out as served (x)html source. even with maticulous placement of n and t I still goof it up most of the time. :rolleyes:
Copy linkTweet thisAlerts:
@PeOfEoDec 22.2004 — [i]Originally posted by ray326 [/i]

[B]Well, it [b]shouldn't[/b] have an effect but that assumes a decent browser. IE has problems with certain kinds of formating, especially in tables. [/B][/QUOTE]
also line breaks. If you drop some text down to the next line in your document or something it can create a nasty space in ie.
×

Success!

Help @newbiewebdev spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...