"/>" On Meta Tag Redirection

liunx

Guest
I ran across an index.html that contained the following:<br />
<br />
<html><br />
<head><br />
<meta http-equiv="Expires" content="Thu, 6 Jul 2000 12:17:42 -0600"/><br />
<meta http-equiv="Refresh"<br />
content="0; URL=http://some.domain.com/login.jsp?i=0"/><br />
<title>Redirecting...</title><br />
</head><br />
<body><br />
</body><br />
</html><br />
<br />
My html knowledge is fair, but can someone tell me about the the trailing "/>" in the two "meta" tags? The trailing ">" is obvious, but the preceding "/" is new to me. I am told it is a "is Well-Formed HTML, it is known as an 'empty tag'. This has roots back to SGML and is a must for any XML based application to parse it. The browser will take either form." Is this the case?<br />
<br />
Thanks.<!--content-->Yes, that is the case. You see, chances are the .jsp (Java Server Page) is using XML. The /> at the end is used in XHTML pages, and a must have for it.<!--content-->/> this meand that meta tag has ended here you might have seen this<br />
<form> </form><br />
<br />
the later is an end tag for form element<br />
<br />
now in the XHTML standards an empty element( that does not contain other elements can be closed as <meta /><br />
<br />
Hope this helps<br />
<br />
Cheers<br />
<br />
Khalid<!--content-->
 
Back
Top