Top 10 Tips To Remember While Making Html File.

ยท

1 min read

Table of contents

No heading

No headings in the article.

  1. Do not forget to close Html file.( Use auto closing in vs code/atom)

  2. Avoid adding styles in html rather use a seperate CSS file for that . It makes things clear for you

  3. You can use a HTML validator to check all the html are perfectly executed.

  4. Use HTML comments wisely . It will help you to understand your own code later.

  5. Always add imgs and video in <img> and <video> tag .rather using any other tag.

  6. Avoid using bg-img tag. It does not work properly rather use img tag to add a img and set it using stylesheet in background.

  7. Non-breaking spaces in HTML - ย 

  8. Use tables for tabular data, CSS for layout

  9. The spacer GIF trick . You can add td and make it as a table to create spacing.

  10. Always try to use lowercase it is helpful for us later .

Thanks for reading. If you found it helpful please like and follow me . thanks ๐Ÿ™๐Ÿป.

ย