<link ... > vs <img ... />


#1


https://www.codecademy.com/en/courses/learn-html-css/lessons/css-setup/exercises/what-is-css


In the previous lesson we have learned that for self-closing elements we should add "/" before the ">"? Is <link> not a self-closing element?



#2

Start here on a quest for knowledge
https://stackoverflow.com/questions/13915201/what-tags-in-html5-are-acknowledged-of-being-self-closing


#3

"There is no concept of a self-closing tag in HTML5. ... you might as well write these without the slash"

Either the comment is incorrect or the lessons on Codecademy are misleading.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.