I have just noticed that if I declare any of my own making selector like "ab" inside <style> tag and then use this tag inside <body> then it's working properly.
My question is, is it ok to use these kind of code while making a dynamic website?
I am giving you an example.
This is a sentence
If you play it, it will work properly.
Kristofer Schultheis Actually you can subscribe to this thread without leaving an answer.
Notice the blue star at lower left of question? It is for "following" (and also unfollowing).
You can click on that without answering to follow a thread. 😉
Just for extra information, actually its usage is usually opposite:
Usually after we answer a question, we will unfollow that thread to avoid being flooded in notification by others' answers, which ain't what we want to read.
it is called custom element
it will not cause error
it will be UnknownElement and has no behavior, just like a span
to define it, the code is like this :
(the codes added by me starts from line 57, the above are from Calvin which I kept for reference)
For more details, mdn doc:
Learning custom element used to help in preparing to learn React component syntax.
However, since there is React Hooks now, it is less important to learn the component syntax.
By the way, I noticed your profile picture, and like to share this drawing by Domino with you: