What's is the function of <head>and <html> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What's is the function of <head>and <html>

I wanna write a code i didn't know what is that i said in question

15th Sep 2023, 1:54 PM
Punita Devi
Punita Devi - avatar
2 Answers
+ 8
If you would like to write a code then this is the right time to complete of HTML course: https://sololearn.com/learn/courses/html-introduction
15th Sep 2023, 2:13 PM
JaScript
JaScript - avatar
+ 4
Good question. <html>: This is the root element of an HTML document and contains all the other HTML elements on the page. It encompasses both the <head> and <body> sections. Think of it as the outermost container that defines the entire document. <head>: This element is a child of the <html> element and is used to contain meta-information about the web page, such as the page's title, character encoding, links to external stylesheets or scripts, and other metadata. Elements like <title>, <meta>, <link>, and <script> for external resources are often placed within the <head> section.
15th Sep 2023, 5:00 PM
JAY
JAY - avatar