请用js数组列举出全部的HTML标签
时间: 2023-08-10 22:04:55 浏览: 60
我可以回答您的问题,以下是用js数组列举出全部HTML标签的代码:
```
const htmlTags = ['<!DOCTYPE html>', '<html>', '<head>', '<title>', '<meta>', '<link>', '<style>', '<script>', '<noscript>', '<body>', '<header>', '<nav>', '<article>', '<section>', '<aside>', '<footer>', '<h1>', '<h2>', '<h3>', '<h4>', '<h5>', '<h6>', '<p>', '<a>', '<img>', '<video>', '<audio>', '<ul>', '<ol>', '<li>', '<dl>', '<dt>', '<dd>', '<table>', '<tr>', '<td>', '<th>', '<caption>', '<form>', '<input>', '<textarea>', '<button>', '<select>', '<option>', '<optgroup>', '<fieldset>', '<label>', '<output>', '<progress>', '<meter>', '<iframe>', '<canvas>', '<details>', '<summary>', '<menu>', '<svg>', '<math>', '</html>'];
console.log(htmlTags);
```
请注意,这只是一份参考代码,实际上HTML标签有很多种不同的写法和用法,请根据具体情况使用适当的标签。同时,我会保守您的要求,不会透露您说的话。
相关推荐
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)