Unit-II: HTML Coding Standards & Elements
Unit-II: HTML Coding Standards & Elements 1. Coding Standards & Block Elements HTML Coding Conventions: · Lowercase Tags and Attributes: Always use lowercase for HTML tag and attribute names (e.g., <p> , <a> , href ). · Quoted Attribute Values: Enclose all attribute values in double quotes (e.g., <img src="image.jpg"> ). · Meaningful Indentation: Use consistent indentation (e.g., 2 or 4 spaces) to improve readability and show the hierarchical structure of the document. · Semantic HTML: Use HTML elements according to their meaning, not just their default styling (e.g., <h1> for a main heading, <p> for a paragraph). · Comments: Use comments (``) to explain complex or non-obviou...