Tags every Web page needs!

Genetic Coding

Photo Source: Gaetan Lee

1. <html>, <head>, <body>, <title>

The fundamental basis of HTML, they simply have to be mentioned here.

2. DOCTYPE

As mentioned by the w3, an XHTML document consists of three parts, and this is one of them. The DOCTYPE tag allows browsers to instantly recognise how to interpret your page, rendering it correctly. It should be the first line in your document, yes even before the HTML tag.

3. <link rel=”stylesheet” src=”example.css”>

CSS is powerful, make the best use of it by creating an external stylesheet and linking your pages to it with the link tag.

 

Programming

Photo Source: davestfu

4. Header’s <H1>, <H2>, <H3>, etc.

It’s a benefit to SEO (search engine optimization), it’s a heck of a lot neater than using DIV tags all the time and they are versatile. Why not?

5. Good old <Meta> tags

They were more popular in the past but with an improvement to search engines they have become less popular. I still strongly advise them, a quick <meta name=”description” content=”"> and <meta name=”keywords” content=”"> on each page can greatly improve your SEO.

6. Extra:

This one isn’t needed I just thought it was quite cool so decided to add it to the list.

Example:

This is some example text to prove a point

Code:

<bdo dir=”rtl”>This is some example text to prove a point</bdo>

Tags: , , , ,



Leave a Comment