On Page Button To Validate HTML - html

i validate my page using the w3 validation http://validator.w3.org/
while my site is in development i would like a way to validate pages easily. I find myself copy/pasting changing tabs and generically spending roughly 5seconds to validate one page. Is there javascript code i can stick in source and click a validate this link at the bottom of each page? it would make things more pleasant.
Greasemonkey solutions are accepted. I prefer to stay away from non official validations unless they are very stable and known to be good.

WebDeveveloper Toolbar for Firefox has a lot of useful tools one of which allow you to validate any web page you are viewing with firefox (remote web pages and even local web pages!!)

You can still use the W3C validator. Point a link to this URL — it checks the current page's code.
http://validator.w3.org/check/referer
Clean code is happy code

there is a firefox extension!!!
web developer ;)
https://addons.mozilla.org/en-US/firefox/addon/60

Related

Editing website HTML and intercepting any responses

My college has some web software that is absolutely horrific and I want to redesign it locally to save my eyes. Obviously I could use developer tools but that gets overwritten on a reload, but I was wondering if it's possible to edit something in the developer tools (like remove a div) and to then 'save' it as to intercept any response from the server and rewrite it using the HTML I have 'saved'
My solution was a hacky one but it worked. I decided to use TamperMonkey, which injects JavaScript code in the bottom on a HTML page. Using this and JQuery, I just modified the HTML.

how to make chrome or firefox more sensible about html mistakes

i use Chrome and Firefox to test my webpages. but there is a problem. They are less sensitive about html mistakes and some time after uploading a page the mistakes start to show themselves. and then i see for example i have a tag that when i decided to replace it with a tag i forgot to change the close tag. in local and solely it wasn't problem but in server among some others it start to become a big problem.....
is there any plugin or add-on or a setting to control their sensitiveness?
thanks all about validatores, but what about validating when there is php embedded. i test them while php is embedded and there where so poor result ...
Yo,
Browsers are very tolerant towards html that doesn't follow the w3c standards. Often the code will work if it's close enough however if it is very wrong your browser won't be able to understand it. If you want your code checked then you should use a html validator, however with more experience you should be able to spot code mistakes like an hawk spots a mouse in a field.
Here's a validator I found on google! http://www.freeformatter.com/html-validator.html
Best of Luck!

Why would a web page render plain html before taking css into account?

When I load my web page I first see plain html during almost 1 second, and then I see the web page with the css design.
Why would the page be rendered first in plain html? and how can I avoid that?
I tried investigating with Google Speedtracer tool but the trace shows lots of 'paint' DOM events before the 'DOMContentLoaded' DOM event, so I am not sure what to look for...
How can I pinpoint the moment or event that renders the plain html using the Speedtracer tool or any other tool?
Additional infos: I have the problem both in Chrome and IE. Also I call the css files in my html header. So none of the answers on this question helped me solve the problem.

Formatting problem on Webpage with IE

I inherited a webpage to manage at work. I needed to add a new button so simply edited the existing jpeg to include the button and added a hyperlink to the jpg to open the link.
In Chrome, Firefox etc. all is well but now I get a weird formatting on IE.
I am NOT a web developer and am perplexed.
Thank you in advance for your help and advice.
The website is www.kimberleyjackson.com.
Sincerely,
Jason
That page is not really HTML, it's using Word-generated VML which as you see is ancient and deprecated technique.
The only thing I can suggest is to rewrite the page using "pure" HTML without all this fancy and deprecated stuff.
As you're not a web developer I fear you'll have to hire one - web page should be developed by web developer, not by document processing software.
Like above people have said, this is not going to be an easy page to maintain. That being said... is your new image the same size as the old image? If not, that may be causing misalignment. What changes exactly did you make?

Show HTML errors in Google Chrome?

Can Google Chrome show HTML errors (e.g. unclosed <div> tags)?
If so, how does one do it?
~Use HTML Validator extension.~
https://chrome.google.com/webstore/detail/html-validator/mpbelhhnfhfjnaehkcnnaknldmnocglk.
Another options is to use the W3C validator "favelets" to open the W3C validator from a bookmark.
http://validator.w3.org/favelets.html
I'm not sure it can do exactly what you're after without an extension. You can use the developer tools to explore the HTML to see if it is what you expect/intend, but I don't think it will tell you where there are errors.
HTML browsers are designed to be able to taken invalid markup and render it as best they can. It will have a very high tolerance for errors.
You may want to try an extension like one of these.
There is a new HTML5 validator for based on libTidy (same as the firefox version)
https://chrome.google.com/webstore/detail/anjdemaoejlpgmnmkijdemoiebcddhkc
I prefer Validity as it shows errors in the devtools console. It also lets you set up a list of hostnames where it should run on each page load which has been super useful for me during development.