HTML - Difference Between Id And Name Attributes According To Html
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? Similar TutorialsHi People. I am hooked onto AJAX based apps these days. Instead of using JS to create html using strings. What I did was create a structure in html and clone it to repeat the structure using JS. But, to prevent DOM from being corrupted, I had to append a unique number to the ID of each element (and I had to attach the data to the element anyway). So, instead what I did was remove the ID of the element while cloning and used my own 'data' attribute to attach the data to the element. But, this would violate the W3 standards, right? Or it Wont? What is a better solution? Ive been challenged with coming up with 50 tags and fifty attributes. Tags Im ok with but cant for the life of me find the attributes now most of them are in css. Yelp, help? What is the Difference between HTML and XHTML?I guess the code used in both of the languages is the same. Can any one tell me that what is the basic difference between html and xhtml? Hi, I just changed some content in the middle of a oscommerce php page that I have been working with for a couple of years. I frequently add or change content in a table in this page. http://www.leavemeb.com/index.php Today, I added new stuff, pics, etc and used percentages in the tables to space things out well and so that when someone expands or condenses the browser window, the content adjusts accordingly. Now, in IE it shows up perfectly, yet in firefox on my mac it is very spaced out and can't even fit the whole page across without me having to scroll to the right to see the right collumn. Can anyone help me see what is not working here? I would be very grateful. I can't seem to see it. Nichole Hi Guys and Gals, My memory is getting so bad I can't remember what memory means. I can't seem to get rid of an error for validating. I built a new site for a friend, http://www.armystuffauction.combut I have two errors that say: Error Line 12 column 37: there is no attribute "HEIGHT". <table border="1" width="440" height="131"id="asalogo.gif"> Is there a simple way to fix this??? Thanx abaca I'm a beginner and I need to know exactly how to put together and img tag. I know how to do it with the other ones but I don't exactly know how to do it with just one tag. Please someone help me out simple question I hope. What is the difference between <link href="styles.css"/> and <link rel="stylesheet" type="text/css" href="styles.css"/>? Is there something different which takes place "behind the curtains"? What's the proper way to name image alt attributes please? For example, how would I name the music logos on both sides of the page? Just say "image of a jbl music logo"? Would that be correct? hi guys i want to know the differnce between style and class attbute in html tags.and also i want to know wheter they can replace each other .if not why thanks amir Hi Guys, Code: <td><a href="#" onclick="javascript:document.forms['formStatement'].submit()"> <%= statement.getTransaction().get(i).getTransactionId()%></a></td> As u see above is cell of a table, I want to fetch the value of the row cell as i want to use it using request object like req.getAttribute("some attribute"); How can i do that? [ <form method='POST' enctype='multipart/form-data' action='fup.cgi'> <input type=file name=upfile> ] can anybody please explain me wht is enctype=' ' here. and type=file. I would like to use hotkeys in our j2ee application. I did some attempts and found out this - hotkeys (attribute accesskey) : - Works with <input type="image> button in IE but doesn't work in Mozilla. - Doesn't work with <a> links in IE, but works in Mozilla You can verify that with simple code (see below, hotkeys h and t are used). IE activates hotkes with Alt, Mozilla with Alt+Shift Have I any chance to make all the above work in both Browsers? P.S. - I would like to use <input type="image"> instead of <input type="submit">, which seems to work with accesskey attribute in both browsers. Thanks. Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1250"/> <title></title> </head> <body> <a href="http://www.yahoo.com" accesskey="h" >Link</a> <form action="http://www.youtube.com"> <input type="image" accesskey="t" title="Button"/> </form> </body> </html> My website home page has no h1 tag, only a h3 tag, and that was used to create a heading of a certain font size. My spider simulator reports there in no h1 tag, suggesting that isn't good for SEO. Should I make sure there is a h1 tag somewhere, and can that be anywhere on the page? (It's not a heading as such). I want a certain sentence to be the h1 tag as it contains several of the keywords. Can I make these changes and dump the h3 tag, leaving only one h1 tag? And can it be done locally rather than in a css file? My website uses the Woo Canvas theme in Wordpress. Hi, I just wanted to check with someone as I can find no information on this. If you add addtional attributes to an input for example.. <input type="text" name"input1" color="green" fruit="apple" /> is this legal html and/or legal for javascript to read the addtional attributes, just they might not get transmitted in a request? Thanks Alex. Hi there, I've been casually browsing the site for a number of weeks now, with the intention of registering and becoming involved. I've stumbled across a problem within an intranet that I'm working on which I'm hoping some of you may be able to help with. Perhaps the most succinct way to get my problem across would be to describe the situation I'm faced with: Our intranet has a section that displays a company flowchart, which shows a breakdown of everybody's job titles in a spider-diagram. The size of the company dictates that for this to be readable, it has to be fairly large in size. The actual size of the document I need to use (which is in PDF format at present) is 640mm x 400mm. Previously, we have been splitting this into three separate sections to enable it to be displayed as three images (on three separate pages) - each of these three images were then inserted into the relevant page, with an image map created over them to enable the effect I wished (upon clicking on someone's name/box, it pops up a Facebox pop-up with their job description and some other information about that individual. The way the script works, this is all contained within the single HTML file). My problem now is that I would like to achieve as close to this effect as possible. However, the PDF link function doesn't allow the more sophisticated functions, so I would have to convert each Facebox content into a new HTML content, which can then be linked to from within the PDF. My question, therefore, is - is it possible to control the attributes that this new window will open in, from within the source HTML file? Ideally, I would like to specify that the window that opens dynamically resizes to fit the content specified in the source HTML file. If this is not possible, can it be done that the window opens to a specific size? I've done numerous web searches, but haven't found anything relevant to this. If my above query isn't possible, I wonder whether it's plausible to set the default size of new windows from within the page that will contain the embedded PDF. Some sort of command that says "any new pop-up window (i.e. target="_blank") will be opened at X width and Y height." If neither of the above solutions are available, the third option would be to somehow mimick the functionality an embedded PDF offers (i.e. zooming in and out, keeping the total canvas size the same, being able to still create links that work on regions of the content, pointing to the various source HTMLs). I originally went down this road, but my search came up empty. I'm envisaging something Google Map-esque, I guess. I wonder, would it be possible to insert some sort of static frame (size-wise) that can then have scrollable content inside it, the content therein that can be assigned an image map? Zoom +/- functionality and click 'n' drag scrolling would both be high on the list of priorities. Anyone who can offer any insight is thanked gratefully in advance. 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 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 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 |