---
source: crates/oxc_linter/src/tester.rs
expression: no_head_element
---
  ⚠ eslint-plugin-next(no-head-element): Do not use `<head>` element. Use `<Head />` from `next/head` instead.
   ╭─[no_head_element.tsx:6:24]
 5 │                         <div>
 6 │                           <head>
   ·                           ──────
 7 │                             <title>My page title</title>
   ╰────
  help: See https://nextjs.org/docs/messages/no-head-element

  ⚠ eslint-plugin-next(no-head-element): Do not use `<head>` element. Use `<Head />` from `next/head` instead.
   ╭─[no_head_element.tsx:7:24]
 6 │                         <div>
 7 │                           <head>
   ·                           ──────
 8 │                             <title>My page title</title>
   ╰────
  help: See https://nextjs.org/docs/messages/no-head-element
