MonguDykrai / html-custom-tags

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

参考资料

https://blog.csdn.net/liuyinggui163/article/details/125226762

https://matthewjamestaylor.com/custom-tags#:~:text=Custom%20HTML%20tags%20are%20supported,level%20like%20a%20.

https://github.com/keanulee/good-map/blob/master/good-map.js

https://code.tutsplus.com/tutorials/extending-the-html-by-creating-custom-tags--cms-28622

Top 10 Rules For Using Custom HTML Tags:

  1. Always follow the naming rules for custom tags.
  2. Choose descriptive tag names so your markup reads well.
  3. Use short tag names to make your HTML source code smaller in file size.
  4. Never use self-closing custom tags because they are invalid.
  5. Never use a custom tag if a native HTML tag is more appropriate.
  6. Use custom HTML tags to replace divs and avoid div-soup markup.
  7. Remember to set custom tags to display:block in CSS if you're using them for page structure.
  8. Make separate custom tags for each specific purpose to keep your CSS clean and organized.
  9. Use custom attributes on custom elements to add properties or CSS hooks.
  10. Spread the word about why custom HTML tags are so good! (Share this page!)

About


Languages

Language:HTML 63.8%Language:JavaScript 34.2%Language:CSS 2.1%