Welcome to WebmasterWorld Guest from 18.206.194.210

Forum Moderators: open

Any upto date HTML code checking website?

     
6:33 am on May 20, 2019 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Dec 19, 2004
posts:993
votes: 14


Hi so I wanted to check some html code with css.

Can anyone please recommend me an industry standard, up to date website that does just the above? Thanks!
8:24 am on May 20, 2019 (gmt 0)

Senior Member

WebmasterWorld Senior Member Top Contributors Of The Month

joined:Nov 13, 2016
posts:1194
votes: 288


In theory the most accurate HTML / CSS validation services "should be" those made by the W3C itself.

[validator.w3.org...]
8:26 am on May 20, 2019 (gmt 0)

Junior Member

Top Contributors Of The Month

joined:Sept 26, 2018
posts:77
votes: 21


HTML :

[validator.w3.org...]

CSS :

[jigsaw.w3.org...]
9:28 am on May 20, 2019 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Dec 19, 2004
posts:993
votes: 14


Thanks And any good website to format html code?
9:36 am on May 20, 2019 (gmt 0)

Senior Member

WebmasterWorld Senior Member Top Contributors Of The Month

joined:Nov 13, 2016
posts:1194
votes: 288


What do you mean? A website which is going through the HTML code and fixing issues automatically? Or prettyfing the code?
10:58 am on May 20, 2019 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Dec 19, 2004
posts:993
votes: 14


Prettyfing the code
11:07 am on May 20, 2019 (gmt 0)

Senior Member

WebmasterWorld Senior Member Top Contributors Of The Month

joined:Nov 13, 2016
posts:1194
votes: 288


In Chrome's dev tool, when you go to the "Sources" tab. You get the raw HTML code of the page, at the bottom of the field where the code is showing, there is an icon { } , click it. Tada, you'll have your HTML code, CSS, and JS with line break, and indentations.

There might be something similar in Firefox too.
11:38 am on May 20, 2019 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Dec 19, 2004
posts:993
votes: 14


Ok great thanks! I was going to buy BBEdit but maybe Iíll hold
12:26 pm on May 20, 2019 (gmt 0)

Administrator from US 

WebmasterWorld Administrator not2easy is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 27, 2006
posts:4558
votes: 363


BBEdit offers a lot of top notch tools, but buying it only for checking and formatting your HTML is overkill. Sort of like buying a CNC mill to make a new belt hole.
1:57 pm on May 20, 2019 (gmt 0)

Senior Member

WebmasterWorld Senior Member Top Contributors Of The Month

joined:Nov 13, 2016
posts:1194
votes: 288


it's not my business, but, why do you need to produce pretty HTML code? As long as the "HTML grammar" is correct, browsers and bots won't mind. Also, pretty HTML code can waste some bytes here and there, even once compressed, resulting in "slightly" longer download time.
6:45 pm on May 20, 2019 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 29, 2005
posts:10563
votes: 1122


I'm with ^^^ ... ugly code works just fine. :)
8:14 pm on May 20, 2019 (gmt 0)

Senior Member

WebmasterWorld Senior Member Top Contributors Of The Month

joined:Nov 13, 2016
posts:1194
votes: 288


Thanks.

Also, ugly code is harder to reverse-engineer :)
9:26 pm on May 20, 2019 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:15932
votes: 887


There used to be something called Tidy. Still exists, for all I know; I quickly learned not to even attempt running it, because even in "notify only" mode (I forget the terminology because it's been years) it would still step in and officiously make changes, not necessarily for the better.
10:11 pm on May 20, 2019 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 29, 2005
posts:10563
votes: 1122


I remember Tidy! Used it once and ran away!
2:32 am on May 21, 2019 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Dec 19, 2004
posts:993
votes: 14


Yes tidy is a configuration nightmare. I just downloaded the BBEDIT evaluation copy and it worked fine for prettyfying. :-)
10:22 am on May 21, 2019 (gmt 0)

Senior Member

WebmasterWorld Senior Member Top Contributors Of The Month

joined:Nov 13, 2016
posts:1194
votes: 288


Like a lot of 90's webmasters, I began with FrontPage, tons of fancy extra HTML things added :)
11:51 am on May 21, 2019 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member graeme_p is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 16, 2005
posts:3022
votes: 214


Komodo Edit has a prettifying extension: [community.komodoide.com...]

not tried it myself though.
1:43 pm on May 21, 2019 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Dec 19, 2004
posts:993
votes: 14


Komodo edit is ugly to use... bbedit is clean and works well! I might buy it later as my work has lots of text editing to do.
5:04 pm on May 21, 2019 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:15932
votes: 887


tons of fancy extra HTML things added
I would like to believe this is not what OP is looking for, but sadly I think it is what he is looking for :(
2:45 am on May 22, 2019 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Dec 19, 2004
posts:993
votes: 14


lucy24 actually no, BBEDIT doesn't add any extra code while prettying it. It gives options. I'd recommend this app.
7:21 am on May 22, 2019 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member graeme_p is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 16, 2005
posts:3022
votes: 214


Komodo Edit ugly? A matter of taste I suppose. I use it mostly for its autocomplete and JS linting.

You can also run your own install of the w3c validator, which is convenient if you want to test pages on localhost.
11:02 am on June 29, 2019 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 30, 2002
posts:5046
votes: 59


Sublime Text is another editor that has plugins to prettify code. I use one for PHP and also HTML.