The title attribute can be used to provide advisory information about an HTML element, but do not use it for essential information since not all users will notice the title text.
Repeating a link’s text in its title attribute serves no purpose for the end user. All it does is add noise and increase page size.
Using p elements instead of multiple br elements to create paragraphs in HTML makes your documents more accessible and easier to style.
The alt attribute is valid only for images and provides alternative text used when the image cannot be rendered. Do not use it with links and other non-image HTML elements.
There is nothing called a “CSS class” in HTML or CSS, so please refer to values of the HTML class attribute as classes or class names instead.
There is a simple rule that defines which characters you may use with the id attribute: begin with a letter, then add any number of digits, hyphens, underscores, colons, and periods.
Always specify which natural language (spoken, written or signed human language) is used for a document’s content. Use the lang and/or xml:lang attributes for this.
The value of the id attribute must be unique in an HTML document. In other words, the same id value may only occur once.
By starting a new category of posts that focus on quick and simple tips related to front-end web development I hope to help people avoid making some mistakes that I see repeatedly.