QuickDevGuide

Home › HTML

Images & Lists — HTML

The <img> tag embeds an image — it is self-closing (no </img> needed). Key attributes: src (image path), alt (alternative text for accessibility and SEO), width/height (dimensions). Best Practice: Always include alt to avoid accessibility issues. For decorative images, use alt="". Figure & Figcaption For professional semantic structure, use the <figure> element to group images with captions: <figure> wraps the <img>, and <figcaption> provides the caption. Lists Unordered Lists (<ul>) are for items where sequence doesn't matter — they default to bullet points. Common uses: navigation menus, feature lists, shopping lists. Ordered Lists (<ol>) are for sequential items — they default to numbers. You can use type="a" for letters, type="i" for Roman numerals, or reversed to count down. Nesting…

Key Takeaways