New course! Every coder should learn Generative AI!
Try a free lesson0
Why is slash important abter br tag and many more?
as i found the same output without using them.....
1 Answer
+ 4
In HTML 5, the closing slash isĀ optionalon void elements
imgĀ tags are Void Elements so they do not need an end tag.
Void elements area, base, br, col, command, embed, hr, img, input, keygen, link, meta, param, source, track, wbr
...
Void elements only have a start tag; end tags must not be specified for void elements.