Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 08-08-2010, 07:13 PM Using HTML validator
Ram Rod's Avatar
Novice Talker

Posts: 13
Name: John
Location: Arkansas
Trades: 0
Well, still a noob for sure, but I've started some work on cleaning up my website. Even with some new tools, I'm rather limited by my current knowledge on how to apply them correctly without screwing things up.
Using HTML validator and cleaning up a page...........I'd like to copy and paste the cleaned version into the page files and delete the crappy version. Thing is, I don't know what to use for indenting the elements and even if it's necessary or would be done automatically when I copy the correct code to the files. How important is the element indention spacing and how important is the length for string of characters, and is there some tutorial that could help me out with this? I usually back things up before I change them, but if I screw something up, even then it might take me the better part of a day fixing it back. I'm sure someone here is going to make it sound so simple. Thanks in advance.
Ram Rod is offline
Reply With Quote
View Public Profile Visit Ram Rod's homepage!
 
 
Register now for full access!
Old 08-09-2010, 06:41 AM Re: Using HTML validator
Junior Talker

Posts: 1
Name: Azamat Buranv
Trades: 0
Do not worry if you are there only 3 - 4 errors. It's a computer, he can not think.
Lets compare. Vozmem same Microsoft Office word, and its system of spelling. He does not know some words, but it's not scary. I've seen sites created by professionals, and they also have a few bugs. I think that this is permissible.
Sorry for the mistakes, I started learning English six months ago
azamat001 is offline
Reply With Quote
View Public Profile
 
Old 08-09-2010, 07:38 AM Re: Using HTML validator
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
How important is the element indention spacing and how important is the length for string of characters,
It isn't!
Source code indentation just helps to make the code readable.

You could remove all the "white space" between elements, all the tabs, all the line breaks in the source code and it would not make any difference at all.

HTML will only render a single space in text strings. So
HTML Code:
<span>This           is            some          text</span>
and
HTML Code:
<span>
This is some text
</span>
will render exactly the same on the page.
"This is some text"

Maybe have a look at HTML-Tidy for cleaning up the code.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-09-2010, 08:22 PM Re: Using HTML validator
Ram Rod's Avatar
Novice Talker

Posts: 13
Name: John
Location: Arkansas
Trades: 0
Thanks for the replies. I somewhat understand. HTML-tidy...................I've started getting into that actually. Thing is, I didn't want to mess things up by copying and pasting code aligned to the left margin since I always see my html files or any page on the internet with indexing.
Quote:
Source code indentation just helps to make the code readable.
So without indentation, the page (code) would be more difficult to render? Make a difference in page load times or bandwidth on my server?
I told you I was a noob. And I appreciate all the help I can get.
Ram Rod is offline
Reply With Quote
View Public Profile Visit Ram Rod's homepage!
 
Old 08-10-2010, 03:27 AM Re: Using HTML validator
NickH's Avatar
Extreme Talker

Posts: 155
Trades: 0
indentation doesnt affect load times or anything like that at all

if you look at the source of some sites you can see it as one paragraph and just a huge block and when you try to read this source you'll get lost very quickly

the reason people indent/space code is because it becomes easier to read and therefore edit in the future instead of sorting through a huge mountain of text

the computer will interpret the code regardless of indentation - unless specified in a language your using
__________________

Please login or register to view this content. Registration is FREE
NickH is offline
Reply With Quote
View Public Profile
 
Old 08-10-2010, 04:24 PM Re: Using HTML validator
Ram Rod's Avatar
Novice Talker

Posts: 13
Name: John
Location: Arkansas
Trades: 0
Okay, so indentation will just make it easier on me in the long run when I want to go and edit my page's html. I think need to make it easier for myself to read through. Highlighting the tags will also help me there. I'll sort it all out from here then.......thanks!
Ram Rod is offline
Reply With Quote
View Public Profile Visit Ram Rod's homepage!
 
Old 08-10-2010, 04:44 PM Re: Using HTML validator
CSM
CSM's Avatar
Front-End Developer

Posts: 297
Name: Michael Pehl
Location: Palma de Mallorca
Trades: 0
Personally I do not recommend HTML-Tidy!

I just tested with the source of the board and it just deletes the <!DOCTYPE...> line.

That is not good, the code will be messed up.

HTML Validator is a must-have tool/bookmark for me.
If it's the Firefox Addon or the online validator at http://validator.w3.org

Michael
__________________
Chief Web Officer / Front-End Developer / System Engineer

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
CSM is offline
Reply With Quote
View Public Profile Visit CSM's homepage!
 
Old 08-11-2010, 12:49 AM Re: Using HTML validator
NickH's Avatar
Extreme Talker

Posts: 155
Trades: 0
Quote:
Originally Posted by Ram Rod View Post
Okay, so indentation will just make it easier on me in the long run when I want to go and edit my page's html. I think need to make it easier for myself to read through. Highlighting the tags will also help me there. I'll sort it all out from here then.......thanks!
pretty much, if you want to go back and edit your site you'll want to be able to read the code, so it is easier to do it now rather than deal with a bunch of problems later on

also while creating your initial site you'll want indentation and spacing for readability, although it is not required i would definitely recommend it.
__________________

Please login or register to view this content. Registration is FREE
NickH is offline
Reply With Quote
View Public Profile
 
Old 08-11-2010, 08:36 PM Re: Using HTML validator
Average Talker

Posts: 26
Name: rutty
Trades: 0
I'm using http://validator.w3.org to validate of course a site. We're using it for site recommendation when we do SEO. The site must meet SEO requirement for better result.
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
itchair is offline
Reply With Quote
View Public Profile
 
Old 08-12-2010, 06:55 AM Re: Using HTML validator
Experienced Talker

Posts: 39
Trades: 0
Quote:
Originally Posted by CSM View Post
Personally I do not recommend HTML-Tidy!

I just tested with the source of the board and it just deletes the <!DOCTYPE...> line.

Michael
CSM/Michael, I also tried HTML-Tidy a while back, and more often than not, it would screw up javascript in the file... but removing the doctype... that's outrageously ironic.

RR, for code clean-up you might want to try HTML Kit, Polystyle, or download free NetBeans... in NB, you can set your formatting prefs then automatically format code with a keystroke combo [Shift-Alt-F]. Very sweet.

Good luck.
__________________
The truth is more important than the facts. Frank Lloyd Wright
__________________________________________________ _________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
byte4byte is offline
Reply With Quote
View Public Profile
 
Old 08-12-2010, 10:06 PM Re: Using HTML validator
Experienced Talker

Posts: 36
Name: Josh Rasri
Location: Upstate NY
Trades: 0
Depending on what type of HTML development software you're using, it might be possible to do it via the GUI (vs. hand-coding). What development software are you using? (If notepad, then you'll be stuck hand-coding the fixes :-)
__________________
John Rasri - GotLiveChat.com

Please login or register to view this content. Registration is FREE
Reseller/White Label Program
gotlivechat is offline
Reply With Quote
View Public Profile Visit gotlivechat's homepage!
 
Old 08-18-2010, 06:32 AM Re: Using HTML validator
iamscottj's Avatar
Novice Talker

Posts: 7
Name: Scott John
Location: US
Trades: 0
I used Expression Web (the latest 4.0) and it has an inbuilt validator. I am new to this area so I may be wrong but while designing it prompted me many things like breaking this rule and that rule but I found it helpful. One more thing I would like to mention is I have also used a Firefox extension called HTML Validator.
iamscottj is offline
Reply With Quote
View Public Profile Visit iamscottj's homepage!
 
Old 09-09-2010, 04:23 AM Re: Using HTML validator
crescendo's Avatar
Super Talker

Posts: 123
Name: hemant latawa
Trades: 0
http://validator.w3.org to validate of course a site,
I validate my website :- http://www.paullimo.com
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
crescendo is offline
Reply With Quote
View Public Profile
 
Old 09-09-2010, 09:47 AM Re: Using HTML validator
C0ldf1re's Avatar
Banned (by the Yankees)

Posts: 3,081
Name: Michael Caine (look alike). *Sic semper tyrannis*
Location: Chelsea, England. Broke all 10 Commandments.
Trades: 0
Quote:
Originally Posted by chrishirst View Post
...
Maybe have a look at HTML-Tidy for cleaning up the code.
Thanks. I'd never heard of that before. Will try it soon.
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
C0ldf1re is offline
Reply With Quote
View Public Profile
 
Old 09-14-2010, 07:06 AM Re: Using HTML validator
Novice Talker

Posts: 11
Name: John Brown
Trades: 0
Validations are needed to make sure that your page is displayed well across the browsers... It not only makes you feel that you are following the standards but it will be appreciated by the people using your website especially if the website is used on multiple browsers.
__________________
Always Keep Smiling :)
iamjohnbrown is offline
Reply With Quote
View Public Profile
 
Old 09-17-2010, 05:30 PM Re: Using HTML validator
TheJokester's Avatar
Novice Talker

Posts: 8
Name: Ian Wilson
Trades: 0
Quote:
Originally Posted by gotlivechat View Post
What development software are you using? (If notepad, then you'll be stuck hand-coding the fixes :-)
Notepad++ for me with tag detection and SVN plugins. I love hand coding everything.
__________________

Please login or register to view this content. Registration is FREE
TheJokester is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Using HTML validator
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.51323 seconds with 12 queries