Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Page Title</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Page Title</h1>
</body>
</html>
Description
<!DOCTYPE html> tells the browser that the file uses modern HTML.
<html lang="en"> contains the entire webpage. The lang attribute tells browsers and screen readers that the page is written in English.
<head> contains information and files the browser needs before displaying the page.
<meta charset="UTF-8"> helps the browser display letters, symbols, and punctuation correctly.
- The viewport
<meta> tag helps the page display at the correct width on phones and other small screens.
<title> sets the text shown in the browser tab. Search engines may also use it as the title of the page in search results.
<link rel="stylesheet" href="style.css"> connects the HTML file to the CSS file.
<body> contains the headings, paragraphs, images, links, and other content displayed on the page.
<h1> is the main heading visible on the page.