Best Practices for Web Developers with Webhint

Best Practices for Web Developers with Webhint

Weil introduced webhint as an answer to the feedback she received from hundreds of web developers while working on the Microsoft Edge dev tools: Making sites accessible, PWA-ready, with all of these sorts of up-to-the-minute best practices and latest features in place is really hard work. […] Webhint helps developers address the challenging and time-intensive parts of developing and debugging for the web.

Webhint self-describes as a customizable linting tool that helps developers improve sites’ accessibility, speed, cross-browser compatibility, and more by checking the authored code for best practices and common errors.

Webhint may run as a command-line application (that issues an HTML report with a short summary of findings) and be integrated into a CI workflow. It is also available as a Visual Studio extension and may then display detected issues and recommendations directly in the IDE, while coding.

Webhint can also be installed as a browser extension (for Firefox, Edge and Chrome browsers) and allows developers to do on-demand runtime analysis on a page while debugging or after a page was deployed. Lastly, webhint can also be run from the webhint scanner site on any page without installing anything.

Hints are gathered in 7 categories: performance, pitfalls, security, development, PWA, compatibility, and accessibility with a total of over 70 hints implemented at the time of writing this article.

Performance hints include analysis of image optimization, and javascript minification, detection of the presence of broken links, or how the web page relates to a web performance budget.

Development hints analyze how developers use development tools (e.g. bundlers, transpilers, optimizers). These include the analysis of a Babel, TypeScript, or Webpack config,

Compatibility hints include checking that CSS stylesheet limits are respected; or that CSS, HTML, and JavaScript on the page have not deprecated or use features that are not supported by the targeted browsers.

PWA hints include manifest validation. Accessibility hints help ensure that a site is usable via the keyboard, or that content has enough contrast for a good reading experience. Pitfall hints warn the developer about common gotchas and save them the debugging hours ([Specify button type](https://webhint.io/docs/user-guide/hints/hint-button-type/)[No createElement with SVG](https://webhint.io/docs/user-guide/hints/hint-create-element-svg/)[Prefixed CSS first](https://webhint.io/docs/user-guide/hints/hint-css-prefix-order/)[scoped-svg-styles](https://webhint.io/docs/user-guide/hints/hint-scoped-svg-styles/) hints).

The list of hints that developers want to apply can be configured via a .hintrc file. Custom hints can be added to the list of existing hints.

html accessibility web development progressive web apps best practices css security development news

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Top Progressive Web App Development Company in USA

AppClues Infotech is a top Mobile App Development Company in USA building high-quality Android, iOS, and Native apps for Startups, SMBs, & Enterprises. Contact us now!

How long does it take to develop/build an app?

This article covers A-Z about the mobile and web app development process and answers your question on how long does it take to develop/build an app.

Progressive Web Apps or Native Apps, Tips to choose the best for your app in 2020

Progressive Web Apps or Native Apps, if you are in a dilemma of selecting the better one for your requirements these pointers will help make an informed decision.

Best Electric Bikes and Scooters for Rental Business or Campus Facility

An ultimate guide to buying the best electric bikes/scooters for rental business or campus facility. It contains the list, prices, features, and specs.

Best Mobile App Development Services

Skenix is a most trusted Mobile App Development Company in India & USA with Expert Mobile App Developers that deliver top-notch Mobile App Development Services.