The <head>
element in HTML is used to contain meta-information about the HTML document. This includes elements like the page title, links to stylesheets, character set declarations, and more.
<head>
:<title>
: Sets the title of the webpage.<meta>
: Provides metadata about the HTML document (like character encoding, author, and keywords).<link>
: Links external resources like stylesheets and icons.<style>
: Embeds CSS styles directly within the HTML document.<script>
: Embeds or links to JavaScript code.