CommonLounge
Categories
About
Get Started
NaN.
Tips for writing better HTML code
[ Edit ]
From
Learn HTML & CSS
course
Choose your learning format:
Article
Cards
Video 🎁
Loading…
Category:
Web Development
2 Comments
Mark completed
Previous
Creating Tables of Data
Next
Tips for writing better CSS code
About the contributors
AJ
Anant Jain
I work on CommonLounge's frontend.
PJ
Prabhav Jain
CS @ MIT. 11y experience. DM me for 1-on-1 mentorship (paid)
View Discussion (2)
Part of course:
Learn HTML & CSS
Creating Tables of Data
Previous item
Tips for writing better HTML code
Double-check the document structure
Use HTML elements the way they were intended
Keep your code consistent
Keep CSS out of your HTML
Remove code errors
Add alternative text to images
Give good names to classes and IDs
Don’t use too many divs
Reusing layouts
Keep editing and simplifying your code
Tips for writing better CSS code
Next item
Show admin stats