Why is link tag not closed? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why is link tag not closed?

the syntax of link tag in header is <link rel="" href=""> but it doesn't have h closing tag why?

20th Jul 2016, 12:18 PM
Rishe Kundey
Rishe Kundey - avatar
2 Answers
+ 2
Some elements that are called 'void elements' do not need a closing tag simply because they don't have any content or other elements to be enclosed between the opening tag and the closing tag.
20th Jul 2016, 6:17 PM
ZinC
ZinC - avatar
+ 1
use can aslo write as <link rel="" href=""/>
20th Jul 2016, 7:16 PM
rahul swami
rahul swami - avatar