i

Learn HTML and CSS in 10 Days

Use Practical ID and Class Values

Creating class values and ID might be a difficult part of writing HTML. These values require to be practical, related to the content, and not with its style. It is not good if you are using the 'red' value to portray red content. If the text style is changed to 'blue,' then not only the CSS needs to be changed but also its HTML.

Bad Code

Good Code