Adding a Title
The <head>
element and the elements within it, such as the <title>
and <meta>
elements, provide important information about an HTML document that is not displayed in the main body of the page. Web browsers or search engines typically use this information to provide context or metadata about the document.
The <title>
element, found within the <head>
section, specifies the document's title.
The <meta>
element is used to specify metadata about the document.
For example, the following code shows how to use the <meta>
element to specify the author and description of an HTML document:
index.html
9
1
2
3
4
5
6
7
8
9
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
<meta name="author" content="John Doe" />
<meta name="description" content="This is my page description" />
</head>
<body></body>
</html>
War alles klar?
Danke für Ihr Feedback!
Abschnitt 3. Kapitel 1
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen