The title of an HTML page is specified within the <title>
tag, which is placed inside the <head>
section of the HTML document. The content inside the <title>
tag is displayed in the browser tab or window title.
Here’s an example of how to set the title of an HTML page:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Awesome Website</title>
</head>
<body>
<h1>Welcome to My Awesome Website</h1>
<p>This is a simple example of an HTML page.</p>
</body>
</html>
In this example, the title of the page is "My Awesome Website." It will appear in the browser's title bar or tab.
No comments:
Post a Comment