Some HTML Basic Coding Mistakes to Avoid





As technology grow day after day, so as developer keep updating browsers version.
 
Today, I want to discuss with you few mistakes you should avoid while coding HTML page or pages. Like every other languages, HTML is sensitive and must be write in a good order to avoid slow loading, malfunction of your web application.

So, below I listed three mistakes you should watch out for when coding.

1. Closing tags: the closing tag (s) are important. Never leave these tags out because it will course your web page not be responsive to different device screen. And it will make your page to load slow.

<body>  correct <\body>

<body> wrong  (no closing tag)




2. Another big mistake many make is by 
forgetting to put the forward lash in the closing tag.

As we all know, so many elements have opening and closing tag. There different in between them is that the opening tag have forward lash, while the closing tag has it.

Forgetting to add it is a harmful way of writing HTML code as it can make the page to malfunction. Another thing is that, such errors are difficult to locate.


3. HTML single elements error. This is another big mistake developers often make when coding. Always add the forward lash in single elements.

Examples;

<div>  correct <\div>

<div> wrong <div>

In case you are missing out, every single need the forward lash. Maybe you might ask 'What is single elements?' are the elements that does not have opening and closing tag. They are just single, but required forward lash in them.

Examples;

<he \>  correct

<hr> wrong




Comments

Popular posts from this blog

How to Delete Record From Table Using PHP MySQL

Guide to add blog URL to Google search console

Best steps to master JavaScript programming language