AJAX Forums

What does a / at the end of an HTML tag mean?

This is a discussion on What does a / at the end of an HTML tag mean? within the XHTML and CSS forums, part of the Beginners AJAX category; Like in this tag, for example:...


Go Back   AJAX Forums > Beginners AJAX > XHTML and CSS

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Old 03-17-2007, 11:29 AM   #1 (permalink)
Junior Member
 
Join Date: Mar 2007
Posts: 1
Rep Power: 0 Celtic is on a distinguished road
What does a / at the end of an HTML tag mean?

Like in this tag, for example:
__________________
<a href="http://developer.yahoo.com/about"><img src="http://us.dev1.yimg.com/us.yimg.com/i/us/nt/bdg/websrv_120_1.gif" border="0"> </a>
Celtic is offline   Reply With Quote
Old 03-17-2007, 11:32 AM   #2 (permalink)
Junior Member
 
Join Date: Mar 2007
Posts: 1
Rep Power: 0 epic_sun is on a distinguished road
This slash "/" is used for the closing of an empty tag. Empty tag is a tag which contains no sub-element.
__________________
<a href="http://developer.yahoo.com/about"><img src="http://us.dev1.yimg.com/us.yimg.com/i/us/nt/bdg/websrv_120_1.gif" border="0"> </a>
epic_sun is offline   Reply With Quote
Old 03-17-2007, 11:35 AM   #3 (permalink)
Junior Member
 
Join Date: Mar 2007
Posts: 1
Rep Power: 0 enversetcontretous is on a distinguished road
The / is meant to close some tags, because some tags can be self closeable, like and . But tags like A HREF need to be closed, like so <a href=""></a>.
__________________
<a href="http://developer.yahoo.com/about"><img src="http://us.dev1.yimg.com/us.yimg.com/i/us/nt/bdg/websrv_120_1.gif" border="0"> </a>
enversetcontretous is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
a.html sends responseText immediatly to b.html? shab.s3udi AJAX Questions 0 07-13-2008 12:14 PM
i turned on html on my web page at msn groups how do i get it of html? kiran p XHTML and CSS 0 06-15-2007 11:48 AM
I need help with html... I created an html file in publisher and uploaded... Meredith B XHTML and CSS 1 06-02-2007 02:28 AM
Writing HTML codes on a page.... HTML code help please? Shardote XHTML and CSS 3 04-11-2007 08:41 AM
I need the code, case problem 1, tutorial 12 HTML, XHTML, and Dynamic HTML third... ebizartistry XHTML and CSS 0 04-04-2007 08:14 PM


All times are GMT -4. The time now is 06:54 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5
Copyright ©2006 - 2008, AJAXwith.com