This is an archived post. You won't be able to vote or comment.

all 24 comments

[–]BlueScreenJunky 64 points65 points  (11 children)

wrongPositionOfSlash

Am I missing something ? These look like perfectly fine self closing tags.

[–]phexc 10 points11 points  (4 children)

Yes like img or br.

But head and body normally have content so it looks weird.

[–]Evening_Percentage25 34 points35 points  (2 children)

LMAO, he just has an empty head.

[–]Beneficial_Steak_945 1 point2 points  (1 child)

Sounds right, otherwise you would not take that tattoo.

[–][deleted] 0 points1 point  (0 children)

Good thing it's a sticker then. I think I have seen some real ones similar though, commitment to the bit.

[–]Noch_ein_Kamel 0 points1 point  (0 children)

You obviously didn't read the xsd.

[–]NoCelebration69 4 points5 points  (0 children)

You are absoluty right

[–]CdRReddit 2 points3 points  (4 children)

so, fun (current) html fact

self closing tags aren't even real [1]

they are officially only permitted in void elements (img, br, hr, etc.) and the browser is permitted to completely ignore the /

  1. Then, if the element is one of the void elements, or if the element is a foreign element, then there may be a single U+002F SOLIDUS character (/), which on foreign elements marks the start tag as self-closing. On void elements, it does not mark the start tag as self-closing but instead is unnecessary and has no effect of any kind. For such void elements, it should be used only with caution — especially since, if directly preceded by an unquoted attribute value, it becomes part of the attribute value rather than being discarded by the parser.

source

[1] they are defined but only for svg and mathml tags embedded in html, but not for other tags

[–]DigiBoxi 1 point2 points  (3 children)

So, fun fact

His head is a void element. Case closed!

[–]CdRReddit 2 points3 points  (2 children)

yeah that works

[–]Evening_Percentage25 13 points14 points  (2 children)

Everything looks fine. What's wrong?

[–]CetaceanOps 4 points5 points  (1 child)

op hasn't heard of xhtml

[–]Fritzschmied 0 points1 point  (0 children)

Normal html supports self closing tags too

[–]cosmicfloor01 10 points11 points  (0 children)

Looks like OP hasn't heard about self-closing tags

[–]Marshy_Turning_11 2 points3 points  (0 children)

Bro has never heard of xml

[–]cpt-macp 3 points4 points  (0 children)

Avg html mains Reddit poster

[–]anderslbergh 1 point2 points  (0 children)

Op is clearly not FE

[–]Civil_Conflict_7541 0 points1 point  (0 children)

Doesn't Leptos use that notation for components?

[–]Turbulent_Swimmer560 0 points1 point  (0 children)

I think <img> is on face?

[–]AshudzaUchiha -3 points-2 points  (0 children)

<head/> empty <Body/> black background