Responsive Images
Responsive images help browsers choose appropriate sizes. Use srcset and sizes for width-based options and keep intrinsic width and height to reduce layout shifts.
Responsive images help browsers choose appropriate sizes. Use srcset and sizes for width-based options and keep intrinsic width and height to reduce layout shifts.
The details and summary elements create a native expandable section without JavaScript. They work well for short FAQs and optional explanations.
A descriptive title, meta description, language declaration, and clear headings help browsers and search engines understand a page. Metadata does not guarantee rankings.
Combine semantic sections, navigation, links, images, lists, and a contact form to create a personal portfolio. Keep the page readable without CSS or JavaScript.
Reserved characters such as < and & need escaping in HTML text. Use entities like <, >, and & to display them literally.
Accessible HTML uses meaningful headings, labels, descriptive links, and keyboard-operable controls. Prefer native HTML elements before adding ARIA roles.
Strong indicates importance and em indicates emphasis. Use mark for highlighted text and small for side notes; avoid choosing semantic elements only for appearance.
The a element creates hyperlinks. Use meaningful link text; for external links opened in a new tab, include rel=”noopener noreferrer”.
The img element embeds an image. The alt attribute describes meaningful images for screen-reader users and appears when an image cannot load.
Use ul when order does not matter, ol when sequence matters, and li for each list item. Lists make grouped information easier to scan.
Tables represent tabular data, not page layout. Use caption, th, and scope to help readers understand relationships between cells.
Forms collect user input. Labels should be associated with inputs using for and id, and each field should have a name for submission.