Head in HTML

HTML - Hypertext Markup Language

Created: 2022-08-11
Tags: #fleeting


The Job of Head is to have a place for

  • <title>
  • links to css, custom favicons
  • <meta>

<title>
Bookmarks in browsers grabs the <title> as to make it the name of the bookmark

<meta>
There are many different attributes to <meta> tag

Adding Custom Icons

Favicon
Better to have image with filename .ico as it supports all the way back to Internet Explorer 6
But it can accept .gif or .png #myquestion Wonder if it can ask .jpeg too?

Set the primary languange of the page

<html lang="en-US">

-> Your HTML document will be indexed more effectively by search engines if its language is set (allowing it to appear correctly in language-specific results, for example)
-> it is useful to people with visual impairments using screen readers (for example, the word "six" exists in both French and English, but is pronounced differently.)