htmlparser2 is the fastest HTML parser, and takes some shortcuts to get there. If you need strict HTML spec compliance, have a look at parse5.
HTML id and class attribute completion for Visual Studio Code. Remote and local style sheets with optional glob patterns and variable substitutions can be specified in VS Code settings per workspace ...