Skip to content

Instantly share code, notes, and snippets.

@rybarix
Created July 13, 2021 16:17
Show Gist options
  • Save rybarix/3999c73c26c58d1040a3ee65144ba22c to your computer and use it in GitHub Desktop.
Save rybarix/3999c73c26c58d1040a3ee65144ba22c to your computer and use it in GitHub Desktop.
List of html elements. Array of html elements. Array of html tags. List of html tags. According to https://developer.mozilla.org/en-US/docs/Web/HTML/Element
const htmlelements = [
"html",
"base",
"head",
"link",
"meta",
"style",
"title",
"body",
"address",
"article",
"aside",
"footer",
"header",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6",
"main",
"nav",
"section",
"blockquote",
"dd",
"div",
"dl",
"dt",
"figcaption",
"figure",
"hr",
"li",
"ol",
"p",
"pre",
"ul",
"a",
"abbr",
"b",
"bdi",
"bdo",
"br",
"cite",
"code",
"data",
"dfn",
"em",
"i",
"kbd",
"mark",
"q",
"rp",
"rt",
"ruby",
"s",
"samp",
"small",
"span",
"strong",
"sub",
"sup",
"time",
"u",
"var",
"wbr",
"area",
"audio",
"img",
"map",
"track",
"video",
"embed",
"iframe",
"object",
"param",
"picture",
"portal",
"source",
"svg",
"math",
"canvas",
"noscript",
"script",
"del",
"ins",
"caption",
"col",
"colgroup",
"table",
"tbody",
"td",
"tfoot",
"th",
"thead",
"tr",
"button",
"datalist",
"fieldset",
"form",
"input",
"label",
"legend",
"meter",
"optgroup",
"option",
"output",
"progress",
"select",
"textarea",
"details",
// "dialog",
// "menu",
"summary" ,
"slot",
"template",
]
@rybarix
Copy link
Author

rybarix commented Jul 13, 2021

menu, dialog are experimental at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment