Sobes.tech
Junior

What new tags were introduced in HTML5 and which tags became obsolete?

sobes.tech AI

Answer from AI

New tags in HTML5

  • article: Self-contained content (article, blog post).
  • aside: Content related to the main content but secondary (sidebar, inset).
  • audio: Embedding audio content.
  • canvas: Dynamic rendering of graphics using JavaScript.
  • datalist: Predefined list of options for input.
  • details: Expand/collapse widget containing additional information.
  • embed: Embedding external content (plugins).
  • figcaption: Caption for the figure element.
  • figure: Self-contained content, often with a caption (figcaption) (image, diagram).
  • footer: Footer of a section or page.
  • header: Header of a section or page.
  • mark: Highlighting text for emphasis.
  • meter: Scale for measuring a value within a range.
  • nav: Navigation links.
  • output: Result of a calculation.
  • progress: Progress indicator of a task.
  • section: Self-contained section of a document.
  • source: Specifies media sources for audio or video elements.
  • summary: Brief description for the details element.
  • time: Display of date and/or time.
  • video: Embedding video content.
  • wbr: Recommended position for word break (Zero-width space).

Deprecated tags in HTML5 (not recommended to use)

  • acronym (replaced by abbr)
  • applet (replaced by embed or object)
  • basefont
  • big
  • center
  • dir (replaced by ul)
  • font
  • frame
  • frameset
  • noframes
  • strike (replaced by s or CSS)
  • tt (replaced by code or CSS)

Some attributes are also deprecated, for example, align for many tags or border for table.