2

I was using the W3.org HTML checker and received this warning message. *Self-closing tag syntax in text/html documents is widely discouraged; it’s unnecessary and interacts badly with other HTML features (e.g., unquoted attribute values). If you’re using a tool that injects self-closing tag syntax into all void elements, without any option to prevent it from doing so, then consider switching to a different tool.

From line 4, column 5; to line 4, column 28

<meta charset="UTF-8"/>

I removed the / but every time I save the file again the / appears in the same line again. Using vscode by the way. How can I fix this? Thanks.

Rob
  • 14,746
  • 28
  • 47
  • 65
Uly
  • 21
  • 2
  • 1
    Does this behavior occur with other tags (such as ``, `
    `, or other `` tags in your code)? If so, this could be an issue with Prettier auto-formatting your code. See [this post](https://stackoverflow.com/questions/64691612/) to find steps to prevent Prettier from automatically adding slashes to your tags.
    – Brooke Oct 02 '22 at 00:18
  • does this answer your question? https://stackoverflow.com/a/73999326/11107541 – starball Jul 04 '23 at 20:34

0 Answers0