HTML - Cdata And Img Tag.. Im Sure It's An Easy One..
Hey guys.. im sure this is an easy one for you. I am trying to put an img tag into my html code... it's actually an xml file.. here's the code snippet
Code: <greeting> <![CDATA[<IMG SRC="superdopetitle.png" ALT="SuperDopeTitle">]]> </greeting> but it just posts the "img src="super...." as text.. not the picture. Please help .. what am I missing? Similar TutorialsI am trying to pass some HTML code though XML but the browser is ignoring the HTML tags as oppose to turning them into HTML tags. In the example below, I want to create a link to Google with CData, but the browser outputs "<a href="http://www.google.ca/">Google</a>" as oppose to creating a link to Google. Code: <![CDATA[<a href="http://www.google.ca/">Google</a>]]> What is the <![CDATA[ ]]> thing used for in HTML code? hi I have used this cdata like this <script type="text/javascript"> <![CDATA[ function change_palette() etc...... ]]> </script> but the javascript is not at all working in IE.. I use script's in between a lot so I want this to be valid in w3c....... I tried this also //<![CDATA[ //]]> but no use, can I know how to use this without effecting the functionality in any browsers? its urgent plse... This is my main page: http://www.bestsellersworld.com I want to get rid of the extra space on the right hand side where everything will fit on the page. I don't know much about tables. Can someone help me? I am struggling with a very basic problem. I cant get a link to work on my website. I have a index.html site with the main code which links to a page called faq.html. The relevant HTML code is as follows (i also include the stuff at the top of the html page in case its relevant). I also include the CSS script (on a separate file) which may or may not be relevant. Can anyone help? <html> <head> <title>THREE-COLUMN FIXED LAYOUT WITH FIXED BOXES</title> <Link rel=stylesheet href="styles.css" type="text/css"> <! DOCTYPE html PUBLIC " - //W3C//DTD XHTML 1.1//EN" "http://w3.org/TR/xhtml11/DTD/xhtml11.dtd"><LINK rel=stylesheet type=text/css </head> <BODY> <BODY BACKGROUND="topbackground.gif"> <DIV id=header> <DIV id=logo> <a>giftcardgo.com</A> </DIV> <DIV id=topnav> <UL> <LI><A href="faq.html">FAQ</A> <LI><A href="#">About us</A> <LI><A href="#">Contact us</A> </LI></UL></DIV> </DIV> </div> The CSS script relevant to the top navigation (which is where the FAQ tab and link is) is as follows: #topnav { clear:left; position: absolute; left: 400px; top: 75px; margin:0; padding:0; text-align:center; } #topnav ul { margin: 0px; padding: 0px; font-family: Arial, Helvetica, sans-serif; font-size: small; color: #FFF; line-height: 80%; float: right; } #topnav li { display: inline; list-style-type: none; font-size: 80%; } #topnav a { padding: 5px 0; width: 65px; background: 3399ff; color:black; text-decoration: none; } #topnav a:hover { border-top: 1px solid #FFFFFF; border-left: 1px solid #FFFFFF; border-bottom: 1px solid #FFFFFF; border-right: 1px solid #FFFFFF; background: 3366ff; } Hi there, I haven't coded in HTML for ages and now I'm just trying to put a little site together - but I've forgotten how to do one particular simple thing, and I can't find info anywhere! Basically, I want to have all my text spread out on one main page, and use those special links that you can do to certain parts of the page. I know that it involves something to do with hashes! So you have one hash tag at a certain part of the page, and you can click on a link to take you directly there. Sorry this is so basic!! Many thanks! I was trying to link a video I uploaded to my ISP on myspace, but I can't get it to happen. I have looked around on Google and everywhere else and whatever is recommended looks like it will work, but doesn't play anything. (I try previewing it through FrontPage) Any ideas? HTML Code: <p align="center"> <object width="500" height="375" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" hspace="0" border="1"> <param name="Filename" value="http://members.cox.net/sleazypeas/iremember.avi" /> <param name="AutoStart" value="True" /> <param name="ShowControls" value="False" /> <param name="ShowStatusBar" value="True" /> <param name="ShowDiplay" value="False" /> <param name="AutoRewind" value="True" /> <embed width="500" height="375" hspace="320" filename= "http://members.cox.net/sleazypeas/iremember.avi" autostart="True" showcontrols="True" showstatusbar="True" showdiplay="True" autorewind="True" border="1" src= "http://members.cox.net/sleazypeas/iremember.avi"></embed></object> </p> Ok ive made a 100% custom html website and it looks pretty good for my first one but i just added new pages and ive added them with a code the this Code: <li><a href="MYLINKHEREMYLIKEHERE">Order</a></li> and i have it leading to the second page but when it takes me to the second page it has no background and it only shows the red font but if you highlight the page you can see everything else take a look! The home page looks fine its just the Prices and the Order page that dont work. http://www.rsessmines.tk Thanks for the help!! i came across this website: http://www.dhtmlx.com/ I downloaded some of their scripts. But i find it almost impossible to follow their instructions, is it meant to be easy or hard? Howdy, Got a really easy (I think) question. ------ [ ] <- total viewable window space [1][2][3] <- now with 3 divs in it 1 & 3 = divs that take up all available space (fluid, stretch to fit window size). 2 = div with a set width. 1, 2 & 3 all have a height of 100%. ------- So basically instead of the "holy grail" 3 column layout with a fluid center and fixed sides - I want a fixed center with fluid sides. Also, I can achieve the same look by taking out divs 1 and 3 and just having div number 2 centered. But I don't want that, I want the whole page covered in divs! Any help would be greatly appreciated! Thanks, Morphy. I just need a little help installing adbrite full page ads on my wordpress site. Which file do I insert the code on? it says it needs it between the body tags...ive tried going through various files in the theme and pasting the code in with no luck. Can anybody help me please? Much appreciated. www.ozconspiracyhouse.org Ok ive made a 100% custom html website and it looks pretty good for my first one but i just added new pages and ive added them with a code the this Code: <li><a href="MYLINKHEREMYLIKEHERE">Order</a></li> and i have it leading to the second page but when it takes me to the second page it has no background and it only shows the red font but if you highlight the page you can see everything else take a look! The home page looks fine its just the Prices and the Order page that dont work. http://www.rsessmines.tk Thanks for the help!! 1 ) After a lot of trial and error trying to work out why one of my form buttons was slighty out of place to where it should be i traced it to the fact i didin't have this at the top of the html, HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> can anyone enlighten me here, all other elements seemed to be aligned up, but one button wasn't until i added this? 2) If you are linking to 2 different external css files, so HTML Code: <link rel="stylesheet" type="text/css" href="styleXXX.css" /> <link rel="stylesheet" type="text/css" href="styleYYY.css" /> etc... and have say a same class in both but each class with different properties then what happens, for ex, you could have a body class in styleXXX.css as, HTML Code: body { background-color red; } and in styleYYY.css which also has a body class but different background color, such as, HTML Code: body { background-color green; } which one takes precedence ? <html> <img src="http://salesmarketinginfo.googlepages.com/eye-world.jpg" width="695" height="120"> <hr> <bgcolour="white"> <br></br> <body> <form action="MAILTO:adamz14@hotmail.com" id="thisform" method="post" enctype="text/plain"> Name:<br> <input type="text" name="name"> <br> Mail:<br> <input type="text" name="mail"> <br> Comment:<br> <input type="text" name="comment"> <br><br> <input type="submit" value="Send"> <input type="reset" value="Reset"> </form> </body> </html> How do I change height of "comment" input ? Hi-- I have a button: <input type="submit" value="Submit" name="submit"> and I'd like to give its attributes to an existing text link: <a href="#" id="submit" class="link1">submit</a> so the text link will do the same job as the button (submit a contact form). Is it possible to do this? Any help would be greatly appreciated! Many thanks! my page has gaps where it shouldn't... at least in IE it does... it looks ok in Firefox... any suggestions?????? http://kalcotter.com/flourish/prostasense/ Hi Guys/Girls I've been asked by my employee to design a html background desktop for the pupils and staff for the school. The last time I used my wed delvelop skills was when i was in School. (Ages ago) What am after is a HTML page (semi Transparent) so you can still see the remaining desktop throught it. I'll also need to have a Sub Divides according to Subject and Department. Please go Easy on me as this is going to be my 1st attempt? is this Achievable? Ok, this should be an easy question.... You are at website A. A is the homepage. Website A has 3 pages within it: 1 2 3 You are in Website A, scroll down the page 3/4 the way, and click/go to page 1. You click the back button. It jumps you back down 3/4 the way. The question: what's the code that brings you back 3/4 the way down the page? Is that in the html or a built in feature in the browser? Thanks! Hey, I need to set up a ****ty little page like this one so that our vendors can download our delivery items from one place. http://www.shorelineent.com/del/index.html Obviously, setting up the links on the page is no problem, but what I can't figure out is how to get it to prompt them for a password before they can download the file like it does there. Can anyone give me any ideas? I feel like I should know this... Take a look at my site. Just in the making. www.ringgoldhs.com I want my navigation bar to be horizantal. It is made of individual "image links" Quick help please? |