Html icon
codex:html
The Html icon (codex:html) is a free SVG icon from the CodeX Icons set by CodeX. It is drawn on a 24 × 24 grid. CodeX Icons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- CodeX Icons
- Author
- CodeX
- License
- MIT
- Size
- 24 × 24
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M16.695 5a2 2 0 0 1 1.98 2.282l-1.249 8.784a2 2 0 0 1-1.365 1.621l-3.446 1.114a2 2 0 0 1-1.23 0l-3.446-1.114a2 2 0 0 1-1.365-1.621l-1.25-8.784A2 2 0 0 1 7.305 5z"/><path d="M15 8.4H9l.429 3.394h5.142l-.214 1.485l-.214 1.485L12 15.4l-2.143-.636l-.086-.425"/></g></svg>How to use the Html icon
React
import { Icon } from "@iconify/react";
<Icon icon="codex:html" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="codex:html" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="codex:html" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[codex--html]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/codex -->
<div class="i-codex:html"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="codex:html"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/codex/html.svg" alt="Html icon" width="24" height="24">Html icon in other icon sets
Html icon FAQ
Is the Html icon free for commercial use?
Yes. CodeX Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Html icon in React?
Install @iconify/react and render <Icon icon="codex:html" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Html icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/codex/html.svg" alt="Html icon">, or paste the SVG code inline to style it with CSS.