Hyphen in custom HTML tags

I want to use custom tags on my page. I have read that the custom tags must contain a hyphen: <my-element></my-element>.

What happens if I call my tags without a hyphen <myelement></myelement>:?
Will this affect search engines or other consequences?

+3
source share
1 answer

I am sure this is not a requirement, because otherwise it does not work. Perhaps this tip is to make sure that you are not overriding the deprecated tag and are perplexed that something works the way it is not documented.

, - js , . javascript, jQuery .

- , , . " , javascript ", -, . - , .

0

Source: https://habr.com/ru/post/1695618/


All Articles