HTML Notes
HTML Notes
Quick Recap:
The <!DOCTYPE html> declaration is crucial for consistent and
correct display of web pages across all modern browsers.
Example:
<!DOCTYPE html>
<html lang="en-US">
<head>
<!-- Metadata for the document -->
</head>
<body>
<!-- Visible content goes here -->
<span lang="fr-FR">Ceci n'est pas une pipe.</span>
</body>
</html>
Quick Recap:
The lang attribute improves accessibility, usability, and language
accuracy for the entire document and specific content sections.
Use of Emojis:
o Should be used only when they enhance usability without
compromising accessibility. Avoid using them in code
elements as they can confuse users and assistive
technologies.
Quick Recap:
Setting <meta charset="utf-8" /> ensures correct display of your web
pages across all browsers and devices, making UTF-8 the safest choice for
modern web development.
Quick Recap:
Setting <meta charset="utf-8" /> ensures correct display of your web
pages across all browsers and devices, making UTF-8 the safest choice for
modern web development.