HTML Basics — Quick Notes

The <a> tag creates a hyperlink. Use the href attribute to set the destination URL. Add target="_blank" to open the link in a new tab.

The <title> tag sets the page title shown in the browser tab. Search engines and bookmarks use this text. Keep it short and descriptive.

The <h1> tag marks the main heading on a page. Use only one <h1> per page for clarity. Subheadings use <h2> through <h6>.

The <p> tag wraps a paragraph of text. Browsers add space above and below each paragraph automatically.

The <img> tag embeds an image. Always include an alt attribute so screen readers can describe the picture.

The <ul> and <li> tags build a bullet list. Nest lists inside list items when you need sub-points.