# no-deprecated-html-elements

Rule `vue/no-deprecated-html-elements`. Disallow using deprecated HTML elements

- Source: vue
- Technologies: Vue
- Kind: correctness
- Needs type information: no
- Autofix: no
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #2058 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/no-deprecated-html-elements` | no | no | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/no-deprecated-html-elements.html) |

## Code examples

### Incorrect: the rule reports this

```vue
  <strike>old price</strike>
  <center>text</center>
  <font color="red">text</font>
  <marquee>news</marquee>
</template>
```

```vue
  <strike>old price</strike>
</template>
```

### Correct: the rule accepts this

```vue
<s>old price</s>
<span class="centered">text</span>
<Center>component</Center>
<font is="vue:my-font">component</font>
```

```vue
<center>registered component</center>
<font>registered component</font>
<marquee>registered component</marquee>
```

Examples from the ESLint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import vue from "eslint-plugin-vue";

export default [
  {
    plugins: { vue },
    rules: {
      "vue/no-deprecated-html-elements": "error",
    },
  },
];
```

## Related rules

- [vue/no-custom-modifiers-on-v-model](https://lintradar.dev/rules/vue/no-custom-modifiers-on-v-model.md): Disallow custom modifiers on v-model used on the component
- [vue/no-duplicate-attr-inheritance](https://lintradar.dev/rules/vue/no-duplicate-attr-inheritance.md): Enforce `inheritAttrs` to be set to `false` when using `v-bind="$attrs"`
- [vue/no-bare-strings-in-template](https://lintradar.dev/rules/vue/no-bare-strings-in-template.md): Disallow the use of bare strings in `<template>`
- [vue/no-duplicate-class-names](https://lintradar.dev/rules/vue/no-duplicate-class-names.md): Disallow duplication of class names in class attributes
- [vue/new-line-between-multi-line-property](https://lintradar.dev/rules/vue/new-line-between-multi-line-property.md): Enforce new lines between multi-line properties in Vue components
- [vue/no-empty-component-block](https://lintradar.dev/rules/vue/no-empty-component-block.md): Disallow the `<template>` `<script>` `<style>` block to be empty

---

Web page: https://lintradar.dev/rules/vue/no-deprecated-html-elements. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
