简体   繁体   中英

Why doesn't VS code show me HTML/CSS errors?

<button type="button"
oneclick="document.getElementById('a').style.visibility='visible'">
Click
</button>
<img id="a" style="visibility:hidden" src='pico.png' alt="src not found">

I mistyped "oneclick", but VS Code doesn't show me that. I was going crazy because I didn't find the error. Why? I already installed HTMLHint, HTML, CSS, Javascript extensions.

I've found this extension: umoxfo.vscode-w3cvalidation It works, you only have to setup the JAVA_HOME PATH.

I hope you are well You need to install the HTMLHint plugin and your problem will be solved Thanks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM