Help - Search - Members - Calendar
Full Version: Weird problem w/Html
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
Kails
I've made a few sub pages on my website and used the same html code as the main page, but when I go to view the sub pages, all it shows is the html! I'm weirded out and don't know whats going on! Any solutions?! huh.gif


( http://webcakedesigns.com/journal ) (the "about" etc.)
pandy
http://webcakedesigns.com/journal/pages/about.html

View Source. Some software you use has converted all HTML tags in BODY to entities, as described here:
http://htmlhelp.com/faq/html/basics.html#show-html .
Then it has put each line of code in a P.



HTML
<p class="p1">&lt;HTML&gt;</p>
<p class="p1">&lt;HEAD&gt;</p>
<p class="p1">&lt;TITLE&gt;About&lt;/TITLE&gt;</p>
<p class="p1">&lt;link rel="stylesheet" href="http://webcakedesigns.com/journal/x.css"&gt;</p>
<p class="p1">&lt;/HEAD&gt;</p>
<p class="p1">&lt;BODY&gt;</p>
<p class="p2"><br></p>
<p class="p1">Coming Soon!</p>
<p class="p2"><br></p>
<p class="p1">&lt;/BODY&gt;</p>
<p class="p1">&lt;/HTML&gt;</p>
Kails
I viewed the source. I just don't know how to fix this. I use just a plain ol' txt edit for my html (i like to do things the hard way lol). But my main page is fine and I used the same txt edit program.
pandy
Wrong. It has converted almost all tags in a whole HTML document to entities and but that inside a new HTMl document. tongue.gif
Kails
Oic. Well... I'm using my bf's Mac becuase my pc took a crap on me so I don't know what I should use to do my html. But still..other pages are working..
Frederiek
Are you using TextEdit? Searching for "Cocoa HTML Writer" in Google, I found an article about using TextEdit for HTML pages.

I advice you to download TextWrangler (the free counterpart of BBEdit (both for Mac)) at http://www.bbedit.com.
Kails
Alrighty, thanks. I'll try this!
pandy
QUOTE(Kails @ Dec 7 2008, 10:56 AM) *

I viewed the source. I just don't know how to fix this. I use just a plain ol' txt edit for my html (i like to do things the hard way lol). But my main page is fine and I used the same txt edit program.


Maybe it has a function that converts tags to entities and you turned it on by mistake?

You need to get rid of everything that looks like this.
CODE
<p class="p1">&lt;HTML&gt;</p>
<p class="p1">&lt;HEAD&gt;</p>

What you intended to write is
CODE
<HTML>
<BODY>

and the software must have done the conversion.

BTW, my post above wasn't a comment on what you said. It was a correction of my previous post. I didn't notice you had posted in-between. Sorry. smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.