Forum Moderators: open

Message Too Old, No Replies

Any up to date HTML code checking website?

         

born2run

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

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



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!

Dimitri

8:24 am on May 20, 2019 (gmt 0)

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



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

[validator.w3.org...]

ClosedForLunch

8:26 am on May 20, 2019 (gmt 0)

5+ Year Member Top Contributors Of The Month



HTML :

[validator.w3.org...]

CSS :

[jigsaw.w3.org...]

born2run

9:28 am on May 20, 2019 (gmt 0)

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



Thanks And any good website to format html code?

Dimitri

9:36 am on May 20, 2019 (gmt 0)

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



What do you mean? A website which is going through the HTML code and fixing issues automatically? Or prettyfing the code?

born2run

10:58 am on May 20, 2019 (gmt 0)

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



Prettyfing the code

Dimitri

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

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



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.

born2run

11:38 am on May 20, 2019 (gmt 0)

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



Ok great thanks! I was going to buy BBEdit but maybe I’ll hold

not2easy

12:26 pm on May 20, 2019 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



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.

Dimitri

1:57 pm on May 20, 2019 (gmt 0)

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



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.

tangor

6:45 pm on May 20, 2019 (gmt 0)

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



I'm with ^^^ ... ugly code works just fine. :)

Dimitri

8:14 pm on May 20, 2019 (gmt 0)

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



Thanks.

Also, ugly code is harder to reverse-engineer :)

lucy24

9:26 pm on May 20, 2019 (gmt 0)

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



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.

tangor

10:11 pm on May 20, 2019 (gmt 0)

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



I remember Tidy! Used it once and ran away!

born2run

2:32 am on May 21, 2019 (gmt 0)

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



Yes tidy is a configuration nightmare. I just downloaded the BBEDIT evaluation copy and it worked fine for prettyfying. :-)

Dimitri

10:22 am on May 21, 2019 (gmt 0)

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



Like a lot of 90's webmasters, I began with FrontPage, tons of fancy extra HTML things added :)

graeme_p

11:51 am on May 21, 2019 (gmt 0)

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



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

not tried it myself though.

born2run

1:43 pm on May 21, 2019 (gmt 0)

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



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.

lucy24

5:04 pm on May 21, 2019 (gmt 0)

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



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 :(

born2run

2:45 am on May 22, 2019 (gmt 0)

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



lucy24 actually no, BBEDIT doesn't add any extra code while prettying it. It gives options. I'd recommend this app.

graeme_p

7:21 am on May 22, 2019 (gmt 0)

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



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.

brotherhood of LAN

11:02 am on Jun 29, 2019 (gmt 0)

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



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