Click to See Complete Forum and Search --> : "/>" On Meta Tag Redirection


BLandeaux
03-07-2003, 05:06 PM
I ran across an index.html that contained the following:

<html>
<head>
<meta http-equiv="Expires" content="Thu, 6 Jul 2000 12:17:42 -0600"/>
<meta http-equiv="Refresh"
content="0; URL=http://some.domain.com/login.jsp?i=0"/>
<title>Redirecting...</title>
</head>
<body>
</body>
</html>

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?

Thanks.

Jona
03-07-2003, 06:07 PM
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.

khalidali63
03-07-2003, 06:14 PM
/> this meand that meta tag has ended here you might have seen this
<form> </form>

the later is an end tag for form element

now in the XHTML standards an empty element( that does not contain other elements can be closed as <meta />

Hope this helps

Cheers

Khalid