You may be surprised at just how simple a web page can be
Chances are you will see a page of what looks like gobbledegook. It varies from website to website.
If you see a page that looks like this:
As opposed to this:
This means the page has not been optimised for speed. Optimised pages (covered in a later lesson) have all the white space (which make it easy for humans to read) removed because web browsers don’t need it and it is redundant extra data in transmission.
In both cases, though, you will still find those basic <html>, <head>, <title> and <body> elements in there. Use Ctrl-F to find them.
You do need to know about these basic elements because they are relevant for other lessons and purposes. The various tracking scripts that I cover later on the course have to be inserted in specific locations (usually before the ending </head> tag) in your web pages. When you are installing tracking code in your website’s pages, you will need to do a View page source as described above in order to check it is present and in the right place for it to work correctly.
The HTML <head> Element
This is a container for metadata (metadata is data about data). It has to be positioned between the <html> tag <body> tags.
HTML metadata is data about the HTML document, the metadata isn’t displayed.
Metadata is used to define the document title, its character set, styles, scripts, and other meta information.
The HTML <title> Element
This defines the title of the document. It must be text-only. Title text is displayed in the browser's tab:
The <title> element is required in HTML documents.
Page titles are very important for search engine optimization (SEO), which is covered later in the course. The page title is used by search engine algorithms to determine the order in which search results are displayed.
Hence, it is important to make the title as accurate and meaningful as possible.
The <body> Element
The body is where a page’s content resides.
Join Our Facebook Group
Our community is filled with awesome, like-minded individuals who love to share ideas and resources!