1 / 4

7 Common HTML Mistakes You Should Avoid

The following is a list of common HTML mark up mistakes. Whether you are a beginner, web designer, or a programmer etc, try to avoid these mistakes.

Download Presentation

7 Common HTML Mistakes You Should Avoid

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 7 7 Common Common HTML You Should Avoid You Should Avoid HTML Mistakes Mistakes Designing a good-looking, functional, interactive website is anyone's dream. However, if you want to choose your carrier as a web designer or web developer, you have to begin from somewhere. And if you are a beginner, mistakes are good for you to become an expert.

  2. The following is a list of common HTML mark up mistakes. Whether you are a beginner, web designer, or a programmer etc, try to avoid these mistakes. 1. Don’t Use Line Breaks To Show A List If you want to show a list of things in bulleted or numbered order, never use line breaks. Use unordered list <ul> or ordered list <ol> tags for this purpose. Like this. <ol> <li>Steve Jobs</li> <li>Bill Gates</li> <li>Linus Torvalds</li> </ol> 2. Structure the Page Correctly With Proper Tags A <div> can work the same as a <span> or a <p> tag but it is important to understand which one is to be used where. These are just examples. There are many others like the <link> tag and the <a> tag. Once you know the difference you'll know which one should be used at a particular part of the page.

  3. 3. Avoid Inline Styles You have probably heard this lot of times before. The straightforward mean of semantic HTML and CSS is to split document structure and styling, so there is no reason to place styling directly in HTML document. For example HTML => <h2>Right</h2> CSS => h2 .red{color: red;} 4. Avoid Using Deprecated Elements Most of the web designer and web developer use some old HTML tags and attributes today, which have been declared deprecated by W3C consortium. Although modern browsers still support them, they might not in the future. 5. Never use <blink> or <marquee> According to W3C consortium, these tags have never been included in the official HTML standard. Along with this, their use is considered unprofessional and unimpressive. If you need to draw attention to a certain part of your document, use an alternative approach in a less offensive manner.

  4. 6. Comments Are an Absolute Must Trust me it can be so difficult for you if you mention what a particular <div> element does using comments. It makes your code look unprofessional. Otherwise, you may have to sit on your system to go through a thousand lines of code and even then you might not spot the problem. Always be professional. 7. Forget To Use Alt Attribute for Image Tags The ALT attribute is considered as required one for IMG tags, it describes the context of the image. It assist web crawler to index your contents better. If the images are just for show, use an empty ALT attribute like alt=””. These are some common, easily avoidable mistakes. Review these carefully and be sure to validate your page for proper HTML. SpencerKinney is a well established Menomonie Web Design Company in the USA. We offer cost-effective quality website designing, time-bound, and value-added services that are required for technology innovative business solutions.

More Related