HTML - Need Help With Attributes In <img> Element
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.
Similar TutorialsHi 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 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? 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"? 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? 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 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? 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 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> [ <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. Hi 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? 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. Why the <img> tag does not have or does not need an ending tag like <p> and </p> > Thank you I have a form element (radio) that currently has an ID and a Name. But I need a third identifying parameter. (The third reference-able parameter is used as an argument in another form element's onClick event.) Knowing that class="x" can actually have class="x y z" and it seems to work, can I also have id="pa1 pa2 pa3"? (I suppose I could try it and see what breaks...) Hi there How is every one doing? I am new to HTML and just wanted to know so I understand is a element the text that gos between the tag and is the tag Altitude </> im just a bit lost . thank you for your time Matt Hi, is it possible to add a number of tables (or td's or any rectangluar html container element) in the same vertical level but as long as there is room. But if there is no more room the new ones will be added in the next line the behaviour i am need is the like the behaviour of the img element. Am I clear enough? Merci! Hello, I am Delphi programmer and PHP web development, I have a problem with the AJAX which is: how to free or close the element, in the Delphi when I create an object in runtime it can be free the object and close it like query, anyway how to close or free the result in AJAX language? below is an exmple: Code: var Buffer= document.body; var getDivBox= document.getElementById("div_box"); var EDivBox= document.createElement("div"); if (getDivBox != null) { getDivBox.style.visibility = "visible"; } else { EDivBox.setAttribute("id","div_box"); Buffer.appendChild(EDivBox); } with the above code, for first loading it will create to element and while you are in the page it will still create my question is how to close the created element in order to make the page fast because in the localhost I checked the CPU performance and I surprised: it was 100%, when I close the page it go back normal. any help with this topic is highly appreciated Regards im looking for a way to be able to enter numbers into a form so that it changes a certain link that i need to be changed. for example: if you put 1234 in the submit form (or w/e) the url would change to http://url.com/lalala/hmm=1234 then you switch it to 7890 and the url would change to http://url.com/lalala/hmm=7890 thanks for any help I have a page and need an image to load from the server whenever the page is loaded (even if the user hits the back/forward button). I am aware of doing it with a META tag, but I only want it with one image - not every image on the page. Thanks in advance for the help! |