Making a hyperlink "> vs " />

denvercardonations

New member
Joined
Mar 1, 2016
Messages
117
Points
0
Which one is correct? I just use both not really thinking.
Code:
<a href="-------------" />  or <a href="------------">
 

RDO Servers

New member
Joined
Apr 3, 2015
Messages
770
Points
0
/> is for a 'self closing' tag.

I.e. <br /> <hr />

Tags that do not have content in-between can be self closing.
Tags that have content in between, do not close this way.
I.a <div> your content </div> <a href=''>link text</a>
 
Latest threads
Replies
1
Views
108
Replies
1
Views
112
Replies
1
Views
170
Replies
1
Views
208
Replies
1
Views
286
Recommended threads
Replies
4
Views
2,232
Replies
1
Views
2,566
Replies
0
Views
2,712

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top