The following elisp code defines a new minor mode web-hide-attr-mode.
It is hooked to web-mode. So it is already active if you open a document in web-mode.
You can toggle it by M-x web-hide-attr-mode.
It works by adding an entry to font-lock-keywords that puts the invisible property web-hide-attr on the html attributes and by adding web-hide-attr to the ...