Blog Archives

5 HTML Codes of Practice for a Beginner

Before I start adding content to my web page I thought I best find out what codes of practices to follow when building a HTML website.

So here are

5 HTML Codes of Practice for a Beginner

HTML Code of Practice

Paperclip Number 1Always Declare a Doctype

The doctype declaration should be the first thing in your HTML documents. The doctype declaration tells the browser about the XHTML standards you will be using and helps it read and render your markup correctly.

HTML Code of Practice

number 2

Use Headings Wisely

Learn to use header elements (<h1>to<h6>) to denote your HTML’s Content hierarchy. This helps to make your content more meaningful for screen-reading software and search engines, as well as other user agents.

HTML Code of Practice

number 3

Type all HTML in lower case

It is an industry-standard practice to keep your markup (coding) lower-cased. capitalizing your markup will work and will probably not affect how your web pages are rendered, but it does affect code readability.

HTML Code of Practice

number 4

Check your coding works on all Browsers

Web Browsers (Internet Explorer, Google Chrome, Firefox, Bing etc) all run HTML coding differently. You should regularly check your web pages on multiple versions of browsers to ensure they all run it correctly. Internet Explorer 6 is a browser that runs using older coding and causes web coders most issues.

HTML Code of Practice

number 5

Write Consistently Formatted Code

A cleanly written and well-indented code base shows your professionalism, as well as your consideration for the other people who might need to work on your code.

Write properly indented clean markup from the start; it will increase your work’s readability.

If you work to these codes of practise your html websites will be of a higher standard.

Codes of practice have been provided by Saqib Sarwar at SixRevisions.com

Photos attributed to Leo Reynolds

Design a site like this with WordPress.com
Get started