HTML - Difference Between '\n' And Newline Char
Hi
Can any one tell me is there any difference if a user enters '\n' (by typing) and by pressing ENTER key in an HTML form? Are both internally represented in a same way? Similar TutorialsHi, I'm getting an error with a template I downloaded. The page is Flash but it's encased in an index.html file, which I've kept the same as the original template file. The error I'm getting is: Line 5, Char 4, Object Required. The link is: http://www.seimone.com/npessoa and here are the opening few lines: -------------------------------- html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=koi8-r" /> <title>test</title> <script language="javascript" type="text/javascript"> <!--Hide script from old browsers function newWindow(newContent) { winContent = window.open(newContent, 'nextWin', 'right=0, top=20,width=350,height=350, toolbar=yes,scrollbars=yes, resizable=yes') } //Stop hiding script from old browsers --> </SCRIPT> </head> <script src="active.js" type="text/javascript"></script> <script src="resize.js" type="text/javascript"></script> <script language="JavaScript" src="active.js" type="text/javascript"></script> <body bgcolor="#ffffff" background="bbg.jpg" style="background-position:left; background-repeat:repeat-y" marginheight="0" marginwidth="0" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0"> <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%"> <tr> <td> ------------------------------------------ FIRST - Yes, I've read about DOCTYPES, and I realize there ISN'T one. I tried adding the one for xhtml, but when I did that, the page didn't load at all! The js files in bold, active.js and resize.js, are exactly where they were in the original template - I found it strange that they were below the <head>, but I left them there just in case. The other js file is something I added on my own - it specifies the size of a pop-up window with audio samples in a different section of the site. I don't get why there's an error for Line 5, though, unless it's referring to something in the original .js files and not index.html itself. Is this a DOCTYPE issue? I have tried deleting the 3rd JS script (in case of a conflict), moving all scripts above the </head> tag, etc., and so far nothing has worked! Any ideas? Advice greatly appreciated!! Hi all, I have a very simple html file with table rows/columns. I implemented a feature where if you click once anywhere in a row, the row becomes 'highlighted' (modify the background color). The problem, and the thing I want to eliminate, is that the specific character/word that you click on also becomes highlighted. How can you keep the system from highlighting words/characters that you click on? I hope this is an easy one. Thanks, Bill HTML Code: <html> <head> <script type='text/javascript'> var currentRow=-1; function SelectRow(newRow) { for (var i = 1; i < 4; i++) { var cell=document.getElementById('cell_'+newRow+','+i); cell.style.background='#AAF'; if (currentRow!= -1) { var cell=document.getElementById('cell_'+currentRow+','+i); cell.style.background='#FFF'; } } currentRow=newRow; } </script> </head> <body> <table border=1> <tr> <td onclick='SelectRow(1)' id='cell_1,1'>cell1_1</td> <td onclick='SelectRow(1)' id='cell_1,2'>cell1_2</td> <td onclick='SelectRow(1)' id='cell_1,3'>cell1_3</td> </tr> <tr> <td onclick='SelectRow(2)' id='cell_2,1'>cell2_1</td> <td onclick='SelectRow(2)' id='cell_2,2'>cell2_2</td> <td onclick='SelectRow(2)' id='cell_2,3'>cell2_3</td> </tr> My task is to say "welcome" to diferent language users on a html page by their own languages. so the page needs to display multiple languages - just for "welcome". for safety reason, I hope all language characters are recorded with char values. actually I can not input "true words" of all languages, but I have thier values. i.e. Chinese "welcome" are 2 words with hex values of 226B and CE8F, and so on for Japanese, Korean, France language etc. I tried following code for Chinese language <p xml:lang="zh-Hans" lang="zh-Hans"> ≫ 캏 </p> but it is not working at all. could you help me with code to display multiple languages with char values on a single htmp page? Thanks . . I am newbie and want to know the difference between HTML and XTHML Hi guys, Iv just downloaded the new version of visual studios, and before when i created new tables,rows,cells etc iv just wrote <table> <tr> <td> </td> </tr> </table> etc but now when i type this is to visual studio it gives me an error saying <tr> cant be nested within a div tag, iv searched the code for any div tags within the page and i cant find any, So my question is this whats the difference between Div tags and Tr etc, if i can get an understanding of this then ill start using the div tags etc..... Thanks. Hey guys if you look at my site in FF the hosting image proces are all level buy in IE the Business package it higher and I cant figure out why http://www.upfrontdesigns.co.uk/build/hosting.html Also in IE where the footer is there are 2 lines on the left and right handside which I belive are from the bottom shadow border how do I sort this problem as well. Many Thanks Hey guys, Well I've been working on a website from my hostmatrix account and it all works ok. I'm now transferring all the files and images over to another server where our website is held but I can't seem to get some of the images working and I cannot for the life of me work out what's wrong. http://www.uptheshots.co.uk/ - Hosted HERE (at hostmatrix) http://www.redbluearmy.com/martin_test/index.php - This is where I'm moving to. On the first link you can see the background is not white but on the second link it is. I can't work out why though and what I've done wrong. The only difference is that at the moment I've got it in a sub-folder but I've changed all my links so it should work ok. If you need to see a file just tell me. To be honest I don't know where I should be looking but I'm guessing it's something to do with my css files and the images for the background. Thanks I'm rather new to HTML and thereforme I'm follwing a training by a rather good traininginstitute (a written training with assignments). My trainer corrected in an assignment my use of <br> with the <p></p> tag. What exctly is the difference (in effect) between the two? Paolok I need some help. There are some differences when viewing the page below in Firefox and IE. I want the user to see the Firefox version. To be more specific, I would like the IE version to show the following: -I do not want the grayish bar below the header -I want the subheading "Alphabet Flash Cards" to be centered with the images -I want the search box to be aligned right at the top below the header. I would like the page below to appear as it does in Firefox when viewing it in other browsers. Thanks for your help! http://www.havefunteaching.com/flashcards/alphabet-flash-cards.html text-decoration: none; } .style26 {color: #000000} .style28 {color: #000000; font-weight: bold; } .style29 { color: #FFFFFF; font-size: 24px; font-family: "Futura Md BT"; } .style30 { font-size: 15px } .style31 { font-size: 30px } --> </style> <script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script> </head><div align="center"> <table width="970" border="0" cellpadding="0" cellspacing="0" background="../HaveFunHeaderImages/rep_1.jpg" bgcolor="#E6EBF1" style="background-image:url(http://wwww.havefunteaching.com/HaveFunHeaderImages/rep_1.jpg); background-position:top; background-repeat:repeat-x"> <tr align="left" valign="top"> <td width="411" height="150" nowrap background="../HaveFunHeaderImages/rep_1.jpg"><div class="style29" style="padding-left:20px; padding-top:1px"> <p align="center" class="style31">Have Fun Teaching</p> <blockquote> <p align="center" class="style30">The Ultimate Teacher Resource!</p> </blockquote> </div></td> <td width="101" background="../HaveFunHeaderImages/rep_1.jpg"><div align="right"><a href="iframe_0.html" target="cont"><img alt="" src="../images/HaveFunHeader/home.png" width="100" height="133" border="0"></a></div></td> <td width="101" background="../HaveFunHeaderImages/rep_1.jpg"><div align="right"><a href="iframe_1.html" target="cont"><img alt="" src="../images/HaveFunHeader/worksheets.png" width="100" height="133" border="0"></a></div></td> <td width="101" background="../HaveFunHeaderImages/rep_1.jpg"><div align="right"><a href="iframe_2.html" target="cont"><img alt="" src="../images/HaveFunHeader/songsandvideos.png" width="100" height="133" border="0"></a></div></td> <td width="101" background="../HaveFunHeaderImages/rep_1.jpg"><div align="right"><a href="iframe_3.html" target="cont"><img alt="" src="../images/HaveFunHeader/funactivitiesandgames.png" width="100" height="133" border="0"></a></div></td> <td width="101" background="../HaveFunHeaderImages/rep_1.jpg"><div align="right"><a href="iframe_4.html" target="cont"><img alt="" src="../images/HaveFunHeader/teacherresources.png" width="100" height="133" border="0"></a></div></td> <td width="54" background="../HaveFunHeaderImages/rep_1.jpg"> </td> </tr> </table> </div> What is the Basic Difference between CSS & CMS?both are useful for preparing website development or designing?I am little bit confused suggest me? Austin Condos,Austin Condos for sale What is the difference, and when would each be used? Hi. What officially is supposed to be the difference between th "id" and "name" attribute according to HTML?? I know Javascript and CSS make a distinction between the two but as far as I can see the 4.01 spec makes no attempt to explain the difference, explanations of both seem like they do the same thing: both are supposed to be global unique, the spec even says they "share the same name-space" implying collisions implying they do the same thing. But I know name is not a valid attribute to alot of elements. Is it historical? Hi, What's the difference between basic html and asp.net? My friend that is a computer graphics designer and I asked him if he knew about the difference between that topics. He says not too much difference. I think he also never knew about the difference so he said that. I have a journal knowledge about HTML but ASP.net is new for me. Can any buddy explain me what is ASP. and what is the difference between both of languages. Thanks, Kunal singh Soniktechnologies What is the Difference between HTML and XHTML?I guess the code used in both of the languages is the same. Hi I am verymuch New this Html work. I had created a Html page having top,left,content page. i created font list like below combination Tahoma,verdana,arial,san-serif When i run the page in my system the Heading style in IE is different from FireFox browser. my question 1. Why it is different? 2. What is the meaning of creating four fonts in a list. please guide me kanish http://www.sandmanmedia.net/sandman_...anmedia_7.html When viewed in firefox, the 3 menu elements do not stay on the same line (services is bumped to the bottom). It is correct in Internet Explorer, and all 3 buttons are next to one another. Each button is 110px. The td width is set to 330px and set to bottom. Can any one tell me that what is the basic difference between html and xhtml? http://pizzarific.net84.net/ - please visit my website that i am developing for our php website. i have not yet embedded any php scripts there. please try to view the "pizza and food" both in firefox and IE7. how can resolve IE weird table width. Please help me. if you want i can give you my website files. thank you very much Hi guys I'm thinking of making a mobile friendly version of my karaoke show site. Mainly I'd like to offer a mobile friendly version of my songlist. I was wondering what the main differences are between a mobile site like this: https://www2.my.commbank.com.au/mobile/i/default.aspx And the app version of the above banking site? I don't have a smart phone yet, so can't check myself, but will be getting one soon to aid in the site development. Does anyone know of a good tut on making mobile sites that fit the screen of a mobile? Cheers Shaun Which document type is easy and most used either Transitional or Strict? As I have validated my page using w3c validator it asks to define class for each and every thing like <table class="xx"> .xx {width:40%;} This makes maintainablility easy but if I have to define 20 different widths I cant use class names just for these widths.. Will Transitional doc type support this?? |