How to define a tag in html? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How to define a tag in html?

Some tags like <a hfer> or hyperlink was defined many years ago . It was defined by someone. So my question is how to make or define a new tag(like python def function) in html ?

24th Jul 2020, 3:26 AM
#It's Tony Stark
#It's Tony Stark - avatar
1 Answer
+ 3
You can just write your own custom tag i.e. <tony> ... </tony>. But there's more to it, you need to setup the rules for its appearance using CSS, otherwise it'll look just like a regular text.
24th Jul 2020, 3:41 AM
Ipang