Skip to content
doubtly

2 answers

HTML tags are keywords written in angle brackets, like <p>, that tell the browser how to structure and display content.

  • Most tags come in pairs: an opening tag <p> and a closing tag </p>. The opening tag, content and closing tag together form an element: <p>This is a paragraph.</p>.
  • Some tags are empty (void) and have no closing tag: <br>, <img>, <hr>, <input>.
  • Opening tags can carry attributes that give extra information: <a href="page.html">.
  • Tags are not case sensitive, but lowercase is standard.

Common tags: <html> (root), <head>, <title>, <body>, <h1>–<h6> (headings), <p>, <a> (link), <img>, <ul>/<ol>/<li> (lists), <table>, <div>.

Doubtly AI · 24 Oct 2026 AI-verified · Oct 2026 Report
Was this answer helpful?

Your answer

Log in or create a free account to answer this question.