This forum is now read-only. Please use our new forums at discuss.codecademy.com.

CSS: An Overview Forum

View Course » View Exercise

55 points
Picture
Submitted by
Peahen Amonglox
over 4 years ago

Suggestion: explain use of "/" in self-closing element

The lesson doesn't point out its use of "/" to self-close the element (it must be inferred from the examples).

It's also worth mentioning - as another poster has pointed out - that the "/" is strictly only needed in XHTML, but that it won't do any harm when used in HTML.

(A largely academic point: you're closing an element, not a tag.)


0 votes

permalink

I'd say that it's easier to give suggestions with the Feedback button in the exercise.

533 points
50ef1f51ad8c900620001b8f_453433872
Submitted by
Rainy
over 4 years ago


0 votes

permalink

Hello Peahen, if you have followed the first lessons, you know that the most of the tags are open and closed like , and so on.
Exist a second category are self closing, it means ,, . Do you see the difference?. The first one need two tags, The second just one

365 points
543fc82f631fe988640020d7_382532424
Submitted by
Tobias Páez
over 2 years ago