Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to add lang attribute in next js

import { Html, Head, Main, NextScript } from 'next/document';

export default function Document() {
  return (
    <Html lang='en'>
      <Head />
      <body>
        <Main />
        <NextScript />
      </body>
    </Html>
  );
}
Source by daily-dev-tips.com #
 
PREVIOUS NEXT
Tagged: #add #lang #attribute #js
ADD COMMENT
Topic
Name
1+7 =