HTML Meta Content-Type

HTML Meta Content-Type can be used to define the content type of a web page, which determines the type of content a web page includes.

HTML meta tag must be defined within the head section of an HTML document.

It can be defined as below.

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

Example

Run this on IDE

<!DOCTYPE html>
<html lang="en">
<head>
    <title>HTML meta tag for content type</title>
    <meta http-equiv="Content-Type" content="text/html;  charset=UTF-8">
</head>
<body>
    <h1>Hello World!!</h1>
</body>
</html>

Overall

HTML meta tag can be used to define the content type of an HTML document.