Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Uncategorized
  3. I'm writing HTML by hand today and was reminded that closing <p> and <li> tags is optional https://blog.novalistic.com/archives/2017/08/optional-end-tags-in-html/

I'm writing HTML by hand today and was reminded that closing <p> and <li> tags is optional https://blog.novalistic.com/archives/2017/08/optional-end-tags-in-html/

Scheduled Pinned Locked Moved Uncategorized
2 Posts 2 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Julia EvansB This user is from outside of this forum
    Julia EvansB This user is from outside of this forum
    Julia Evans
    wrote last edited by
    #1

    I'm writing HTML by hand today and was reminded that closing <p> and <li> tags is optional https://blog.novalistic.com/archives/2017/08/optional-end-tags-in-html/

    mkjM 1 Reply Last reply
    0
    • Julia EvansB Julia Evans

      I'm writing HTML by hand today and was reminded that closing <p> and <li> tags is optional https://blog.novalistic.com/archives/2017/08/optional-end-tags-in-html/

      mkjM This user is from outside of this forum
      mkjM This user is from outside of this forum
      mkj
      wrote last edited by
      #2

      @b0rk Only in certain situations, though. The list of situation where it's valid to not explicitly close the tag is longer for <p> than for <li>.

      <p>: https://html.spec.whatwg.org/multipage/grouping-content.html#the-p-element

      <li>: https://html.spec.whatwg.org/multipage/grouping-content.html#the-li-element

      1 Reply Last reply
      1
      0
      • R AodeRelay shared this topic
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      Powered by NodeBB Contributors
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups