HTML - Document Type Does Not Allow Element
Similar TutorialsI'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. Hey 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 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 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> 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> Ok I am getting some validation errors on my site and at least some of them appear to be because I am using xhtml in an html strict doc. So which is better.... to fix the errors or use something other than the html strict doc type. fyi-here is the site: http://www.h51school.com/1/home_page.asp Thanks~ Hey there, Could anyone please explain why it tells me that it is not a valid doc type, Well that is what it says here http://validator.w3.org/check?verbos...iplayer.com%2F The actual site is http://www.online-multiplayer.com Thanks in advance for any help. Hi, I am having a huge problem When ever I design a page everything looks great. When I publish it and look at it from other machines the type appears fuzzy or not sharp. I am using Dreamweaver MX on a Mac PowerBook G4 and have tried leaving the type font default, setting it to Arial, Times New Roman, and others. I have tried setting the font on the page and working with CSS. Doesn't matter what I do it is always the same. Can someone please tell me what I am doing wrong? Troy Hi I see a lot of these type of borders on the internet, even when signing up on this site. How can I do this myself? I thought I had once knew how to do this this in Dreamweaver but am not able to find it anymore. Thanks hi, i was wondering what is the best filetype to use for a video on the internet? i need to embed a video which can be viewed by as many people as possible so i was thinking maybe .wmv or something that can be played through windows media play and most other common video player basicaly what the title says i have no idea what they do. Please explain in nooob terms Hi, Using servlets and javascript. When I upload a file based on the mime type I operations are delegated from servlet. picture.gif file's mime type is image/gif Problem I am facing is when I remove the file extension of any file say picture.gif file to picture mime type is application/octet-stream. How can I detect the mime type of a file given the filestream or any other solution to this problem Thanks. Hi, i've been banging my head against the wall trying to find a solution, and have eventually given in..! I'm creating an html email that has an image in it. Easy When that email is received and the user prints, it replaces the image with another more print friendly version. Easy using media:print in a style. However, when the user then replies to the email, all of the <style> in the <head> is wiped and the large un-printer friendly image remains. The only solution would be to put all styles inline within the <body>. So the question..! Any ideas how to replicate this process only coding within the body? thanks, J How would I make a search-type form that would insert what the user typed in a text box into a web address and go to that address? (for example, if they type 'help' and click the submit button, it would go to the page "http://www.websitename.com/help.html") I know the general form code, but I can't figure out if I would use a tag in the 'onSubmit' portion, or use javascript, or something else altogether. I inherited a HTML/PHP project which was a written in hurry and now I am trying to put in some editing and other confirmations. A type=reset was added to the screen and there is 2 option lists. When the form is first load only 1 list is displayed. Then the user makes the selection and depending on the selection the second list would display or not. On the reset option would like to hidden the 2nd selection but seems I can not get the right coding. I have tried onclick on the <input but no luck. There is a onSubmit on the <form which calls some validation checking. Tried put the call to function to hide the option list but no luck. Of course, I probably did not have the coding correct. How can I hide the 2nd option list on reset. Hi, Web newbie here. I am trying to add a "verse of the day" module to one of my websites. It is loaded into an iframe, but I am getting markup validation erros because I am using the strict doc type. Any ideas? http://bigdogcattle.com/test/ Thanks Jamie http://bigdogcattle.com This is what I have in mind, only I would like it a bit better looking http://www.dynamicdrive.com/dynamici...lide/index.htm So basically, a menu thats hidden until you hover over the small part thats visible - then it slides out. Is it possible to do in jquery or mootools or similar ? I cant code myself so some tutorial would be helpful. Thanks in advance Hello, I'm new to html andscripting etc.... I'm trying to create a game online that will start off as text.I'm trying to make the character creation portion of my site easy to use and figure out. I've been searching online the past few days trying to figure out how I would go about this and am at a loss as to what it is I'm specificly searching for in regards to learning more about what it is i'm trying to do. I have found a site that has the features that would be perfect for what it is I'm looking for but do not know what this type of coding is called. Basicly this is the site that I found with the features. http://linklost.com/occ/ .What I'm wanting to know exactly is how I would go about inputting the code for when I click on the radio buttons information and text shows up in a box next to it.Obviously no one can create this code for me, I just need to know the "type" of coding I suppose so I can go research it and try to learn it myself. I thank you ahead of time for any help I can get in regards to what probably is a simple answer to most. Brandon |