A slash at the end of a tag does not make it self-closing in HTML

In HTML, there are tags which are always self-closed. For example, <hr>Some content here</hr>does not make any sense. In the same way, there are tags which cannot be self-closed. <script> tag is one of them.

 

So This would not work:

<script type=”text/javascript” src=”https://www.google.com/jsapi”/&gt;

//

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s