← Back to list

the head in html

After declaring the language, the head we declare the head of the HTML. Well, what is it?

Melissa · 2024-01-06 23:32 · 0 claps · 1.4 min read
#head #title #metadata #links #href
Open on Medium ↗
Wiki topics: 🌐 · Web Development

the head in html

Photo by Michael Van Kerckhove on Unsplash

Photo by Michael Van Kerckhove on Unsplash

After declaring the language, the head we declare the head of the HTML. Well, what is it?

You may think that HTML is a person; it has a head, maybe even eyes. Who knows? The head of the HTML is where you place the information that you want to introduce. Those informations can be be metadata

what is metadata ?

up to chat gpt.They are: ”element that can be used to specify various attributes of the document, such as the character set, the description, the keywords, the author, the viewport settings, and more. For example, <meta charset="utf-8"> tells the browser to use the UTF-8 encoding for the document, which can support many languages and symbols. <meta name="viewport" content="width=device-width, initial-scale=1.0"> tells the browser to adjust the layout of the web page according to the device’s screen size and resolution, which can improve the user experience on mobile devices. ", the Title of the page in other worlds It is in the writing that we see in the browser’s title bar, just like we do when we see ‘YouTube or Facebook', and the links and href that will link your code to an external resource, such as a CSS document or a fantastic website.

<html lang="en">
<head>
  <title>My first web page</title>
</head>
<body>
  <h1>Hello, world!</h1>
  <p>This is a simple web page.</p>
</body>
</html>

Here is a mere HTML code that contains a heading with the page title.

I will explain in more depth the head elements in the next article. Stay tuned. If you are curious about how to declare the language you are using in an HTML document, you may want to read my article=>How to declare the language that the HTML document is using | by Melissa | Dec, 2023 | Medium

to know more about HTML’s head you may want to check those articles :

Melissa sidisaid


메타데이터
post_id
30647f1dccbd
slug
the-head-in-html-30647f1dccbd
url
https://medium.com/@sidisaidmel/the-head-in-html-30647f1dccbd
canonical_url
https://medium.com/@sidisaidmel/the-head-in-html-30647f1dccbd
author_url
https://medium.com/@sidisaidmel
status
ok
fetched_at
2026-07-24 15:40:05