|
-
Oct 24th, 2011, 12:50 PM
#1
Thread Starter
Hyperactive Member
Need to understand how java sites work
Hi all,
I know this an ASP.Net site, but perhaps someone here could help me understand something regarding a site that I am rewriting in ASP.Net that was orginally in java.
I looked at the home page of this site (home.jsp). I right clicked in IE and did a View Source. I saw something that confuses the hell out of me and hopefully someone can help me understand if it's right or not.
When I look at the source, I see multiple <html></html> and <body></body> tags. I was always under the impression that a web page had a single <html></html> and <body></body> tag, not multiples.
I checked a site where I know I am using an iframe, and I only see the link to the content of the iframe, not the actual HTL generated by the ASPX page in the iframe.
Is it possible that there should be multiple head and body tags within a page? Is this a hold out from the days of frames? (It's an old site).
Any info y'all can provide would be greatly appreciated 
Thanks,
J
-
Oct 24th, 2011, 03:34 PM
#2
Member
Re: Need to understand how java sites work
You are really going to struggle with rewriting jsp in .net if you can't even answer these basic questions about HTML.
The HTML spec would tell you that you can only have one html, head and body tag per page: http://dev.w3.org/html5/spec/Overview.html
I would suggest you try a browser other than IE. If you want to view the source of an iframe then you just right click it and select view source from the context menu.
-
Oct 24th, 2011, 03:41 PM
#3
Thread Starter
Hyperactive Member
Re: Need to understand how java sites work
I know that the HTML spec says 1 of each, that's why I am asking the question.
-
Oct 24th, 2011, 03:45 PM
#4
Member
Re: Need to understand how java sites work
The HTML spec is correct. Always.
-
Oct 24th, 2011, 03:57 PM
#5
Thread Starter
Hyperactive Member
Re: Need to understand how java sites work
So what you are saying is that my assumption about there being multiple head and body tags being wrong is correct. No matter what, an html page should only have 1 html and 1 body tag (which I believe to be true) and if there is more than one, then there is a major problem.
-
Oct 24th, 2011, 03:59 PM
#6
Thread Starter
Hyperactive Member
Re: Need to understand how java sites work
So i can tell the original developer that the code that is being generated and displayed is completely screwed up. That however they did they did it wrong.
-
Oct 24th, 2011, 04:11 PM
#7
Member
Re: Need to understand how java sites work
Give the URL to the w3c validator and it will tell you everything that is wrong with the page in great detail: http://validator.w3.org/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|