HTML - Problems Getting Website To Validate - Document Type Does Not Allow Element Here
I've had problems validating my site. I am getting this error multiple times:
document type does not allow element "span" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "pre", "address", "fieldset" start-tag. This also occurs for "br", "a", "input", and "hr". All of these tags are already in div tags. I've also tried to surround them in p tags, but I still got the same error. There are no other validation errors with my site. Thanks. Similar TutorialsHey guys, I've been working on this website some more, & many of you have been a great help to me in the past. I've come with another question.. http://www.cedarcreekyouth.org/ This is the page I ran through the W3C Validation thing.. I've got two more errors and three more warnings. I do not know how to fix them.. I've tried a few things, but my knowledge has failed me. Could someone show me how to fix this, with an explanation? Please and Thank you. Cody Hi I'm having problems with this code the 1st section is what W3 gave me, unsure which one to use the bottom section is what I have in my website, thanks for any help Line 704, Column 8: document type does not allow element "STRONG" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "CENTER", "NOSCRIPT", "NOFRAMES", "BLOCKQUOTE", "FORM", "ADDRESS" start-tag <strong><span class="c22"><strong><span class="c22"><strong><span class="c22"><s ✉ The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). -------------------------------------------------------------------------------------------------------- <h3 class="c18"><strong><a href="Photo%20Gallery2.htm"><span class="c22"><img src="aSinkingphoto2.jpg" alt="Photo Gallery of ships, mammels, icebergs and fish" width="190" height="103" border="0" usemap="Index.htm#Map2Map" class="style1"></span></a> <span class="c22"><map name="Map2Map" id="Map22"> <area shape="rect" coords="-9,-5,191,106" href="Photo%20Gallery2.htm" target="_self" alt="Photo Gallery of Ships"> <strong><span class="c22"><strong><span class="c22"><strong><span class="c22"><strong><span class="c22"><strong><span class="c22"><strong><span class="c22"><span class="style2 c23"> href="Photo%20Gallery2.htm" target="_self"><br></span> <span class="style1">href="Photo%20Gallery2.htm" target="_self"><span class="c23"><strong>Click image for Photo Gallery</strong></span></span></span></strong></span></strong></span></strong></span></strong></span></strong></span></strong ></map></span></strong></h3> Hello Everyone, Please help me. I am going to validate my html page using w3c html validator. I got the errors like this document type does not allow element "STYLE" here. <style type="text/css"> Please anyone help me how to solve this error. Thanks in advance. Prabhu Conflict between Mime Type and Document Type... Morning - I have recently been learning CSS and have been upgrading my site to Semantically correct code. The first templat I am building is the following page http://www.colletts.co.uk/colletts_n...ndexflash.html and validates here validates... sort of. Should I be worried about the mime type, what effect will this have on the page. If I follow the instructions and change the file extension to xhtml all hell breaks loose - http://www.colletts.co.uk/colletts_n...dexflash.xhtml IE Error - can't open thios document etc... What am I doing wrong??? Best, Mas Hi all, I'm having this website www.justmarch.nl When surfing directly to this site, a black screen is presented, after an F5 it's loaded correctly. Is this caused because for some reason there's a missing document type declaration? Thanx in advance for any help! Hi, So I am lost at how to do this, I have a server side program that scrapes websites (e.g amazon.co.uk) and modifies the content and reserves this as its own page. (I know this sounds naughty but intentions are honorable!) basically I want to set the page to be a header (of my website header) and an Iframe type element containing the full html of the scraped text. Similar to proxify.co.uk Looking at the page source of proxify, they needed to do some serious modification of the page they reserve to achieve this Any ideas how to achieve this simply for example say the page I scraped looks like <html> <body> scraped site </body> </html> I would like to be able to do <html> <body> my header <magic frame> <html> <body> scraped site </body> </html> </magiceframe> </body> </html> Hi, I was wondering if i could receive some help creating a blog-type website. With on the sidebar: archive, calender, recent posts etc. Posts: read more button, todays date, author (posted by) etc. Facebook share button, twitter etc. Flash banner with a picture slider add own logo, slogan, footer etc. I tried wordpress but the themes are not that great and it wont let you do a lot. Is there an app or software that will make this easy? Thank you, W. Hi, I have got an anonymous emailer service but i want to change the input type into a drop down menu, How can I do this Here is my Code: Code: <!--Email Sender--> <h3>Your Email</h3> Select your email address from the list, Enter Subject, Then enter your text (use the additional header if you want). <div style="display: block; width: 1px; height: 10px;"><spacer type="block" width="1" height="10"></div> <form method=post action="https://riot.eu.org/cgi/remailer.cgi"> <label for="to" accesskey="r"></label> E-mail address:<br> <input TYPE="text" SIZE="20" NAME="to" id="to" MAXLENGTH="60"> <div style="display: block; width: 1px; height: 4px;"><spacer type="block" width="1" height="4"></div> Subject:<br> <input TYPE="text" SIZE="20" NAME="subject" MAXLENGTH="60"> <div style="display: block; width: 1px; height: 4px;"><spacer type="block" width="1" height="4"></div> Additional header (CC:,Bcc:,Newsgroup:..):<br> <textarea name="header" rows=3 cols=30></textarea> <div style="display: block; width: 1px; height: 4px;"><spacer type="block" width="1" height="4"></div> Message Text:<br> <textarea name="message" rows=10 cols=30 wrap=virtual></textarea> <div style="display: block; width: 1px; height: 6px;"><spacer type="block" width="1" height="6"></div> <div style="display: block; width: 1px; height: 8px;"><spacer type="block" width="1" height="8"></div> <input type="submit" value="Send" class="button"> </form> <div style="display: block; width: 1px; height: 20px;"><spacer type="block" width="1" height="20"></div> <table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td background="i/hr.gif"><div style="display: block; width: 1px; height: 1px;"><spacer type="block" width="1" height="1"></div></td></tr></table> <!--end Email Sender--> Thanks hey guys. I need help again! Well actually its a question But before that question - You see I play a game and in that game I want to make a list of things. Here is my noob website - http://heroonline.synthasite.com/ The Question -I guess what I'm asking is how do I post a forum directly onto a page of mywebsite with separate moderator accounts? I need forums that can be added to sites like myspace, and my website, that you post with a html code, and editable by multiply accounts? On that forum I just want one thread where i can post names of people. And I want some other people to be able to post names on that one thread. Kind of like the cbox I have on there but more like forums, and changeable by other people/accounts that i choose. Hope you guys understand what I am trying to say here... I'm a noob and i tried my best to explain. Hi everyone, Our website:- alternativeroutefinance.co.uk - has some issues with moving elements. The problem seems to be with Widescreen monitors, as well as the Firefox browser. I'm not quite sure what the problem might be, does anyone have ANY idea? Feedback would be greatly appreciated! Cheers, Nick If you want to create your own website or if you are wandering how different tings and knowledge require to create website, here I am writing all necessary things which work together to create professional business website. Hosting and Domain name: it is first initial step which require buying domain and web space to store different things for your website. Shared and dedicated is common hosting in which you share hosting space with other website or can have private server only for your website. Web Design, Web template, CSS and HTML: All these terms are related with style factor of your website and development of each decides how your website would look. Templates are available which readymade web page designs which you can use are. CSS are files which stores attributes for designing different things and HTML is basic language and web standard used to give final touch. Web Development, CMS, PHP, ASP, Open source, Website Builder and Ecommerce: All these terms are related to different functionality of website. CMS gives facility to manage website on your own, PHP and ASP.net are platform which support different programming language to implement functionality of website, open source are technology which is free and can include lots of stuff necessary for programming and website builder are tool to create web pages on your own. my clients website timesout on his mac (using firefox as a browser) http://powderpowder.co.uk/mhdesign-new/ it works fine on ie7 and firefox anyone out there with a mac that can test this - I have tested it on 2 pc's a phone and in opera. what's going on is it his browser? settings or what? please help anyone wirth a mac! Cheers, Mas Okay, so for the past week I've been re-teaching myself html and learning how to use CSS to make themes for websites and I have come across some problems, I tested my website out on Google Chrome, Mozilla Firefox, IE8, Opera and Safari. The website is layout was created using tables, I've used a script to allow for dynamic switching between CSS files and validated the code at w3schools.com which told me there's no errors but gave me 5 warnings I don't understand. My website is www.andysinventions.info if anyone could take a look at the source code and possibly help me out with my problems I'll be quite thankful. Thanks for reading, hope you can help me ; ). EDIT: Problems turned into a list, I'll update as I remove them or find more. List of known problems: Safari, javascript doesn't work IE8, no alpha on backgrounds and no table height Mozilla Firefox, Table Header too large the host was recently defaced, now i'm having a number of problems. please try to help. 1. My cutenews folder was hacked - i tried to delete it, but the backup folder seems locked, i cannot change ANYTHING about it. - i was told the hacker had did it and propbably left a backdoor script there.. 2. i searched about the 'defacement' and it turns out my gallery was hacked, the albums folder. i checked and it was. now about 5 pictures in the /userpics folder - with the same name only 1 number different, can't be backed up, because i was told to backup the server - they are pictures but i don't know if hackers can use them as backdoor scripts, to be fair they do have a weird name 3. my www folder on my ftp - where i upload my files always. now has NOTHING in it, they have completely dissapeared, only the public_html folder shows them! i don't understand this :O - its really scaring me because i don't know anything about how to solve hacking problem or stuff like this Hi this is my first thread to this forum, it looked like you guys could help me with my problems so i hope you can! basically on my index.php page, i have two links at the bottom of the page which go to different pages, but one works and one doesnt. These two links have almost the exact same code apart from the link variable etc... and i just cant understand why the link on the left of the page, home link, doesnt work, but the link on the right hand side, forum link, does... however this problem is only apparant in firefox and not IE. when i say "it doesnt work" i mean that the browser doesnt even realise its a link, the cursor doesnt change to the pointing hand etc. its like the "<a href" code isnt there... here is the code of the two links: (the home link doesnt work, the forum link does :S) <div style="float: left; text-align: left; position:absolute; left:1px; bottom:1px; width:100%;"> <a href="/home.html"> <img src="images/homeicon.png" width="100px" height="100px" style="border-style: none" alt="Go to MH systems Homepage"> </a> </div> <div style="float: right; text-align: right; position:absolute; right:0px; bottom:0px; width:100%;"> <a href="/forum/"> <img src="images/forumicon.png" width="100px" height="100px" style="border-style: none" alt="Go to MH systems forum"> </a> </div> Hope you guys can help, thanks a lot ~lolman Hi, I got this small problem, I got an unordered list on the store page. I am trying to add a small picture next to the words in the list, but when ever I do that the words are forced down. How do I correct this problem?. Another problem would be on the newsletter page when ever you rollover it changes border size and background of the text feild, thus moving the submit button a bit making the little effect, in my opinion, ugly. And how can I center input text in the text feild??. Thanks in advance. My website is www.deezyproducts.com Today i was at my friends house and went to checkout my site. When i went on it the page format was all messed up and my Paypal add to cart was below the navigation bar when its suppose to be next to contact me button. Could someone please tell me whats the problem or mabey go to it to see if you have the same problem? Also I was wondering if some one could tell me how to add an extra frame for google adsence for the left and right of the layout. Thxs so much ~David I'm currently building a website using Photoshop and Dreamweaver, this is my first time using em both but i'm having a problem. When I run it through dreamweaver the page looks and lines up fine if I don't add any links http://server61.urldownload.com/test/home.html but as soon as I add any links the page goes to crap. http://server61.urldownload.com/test2/home.html How can i get rid of the purple box and line up the page correctly? |