The <head> tag is used to define information that is not directly displayed on the web page, but is important for creating and managing the website.
The <head> tag is usually placed at the beginning of an HTML page.
The <head> tag contains important components of a web page, including:
Below is an example of the basic structure of the <head> tag:
<!DOCTYPE html>
<html>
<head>
<title>Trang web của tôi</title>
<meta name="description" content="Mô tả trang web của tôi">
<link rel="stylesheet" href="styles.css">
<script src="script.js"></script>
</head>
<body>
<!-- Nội dung của trang web -->
</body>
</html>
In this example, we have a title "My Website", a short description of the website, a link to a CSS file, and a piece of JavaScript code embedded in the page.