I have what amounts to very basic HTML inside of a JSP page of my Java web-app. The crux of what I'm trying to do is wrap text in an input button of fixed width (IE7). It does not work in my JSP (the text is cutoff). However, if I create an HTML file and open it with the same browser, it works fine. The contents of the .JSP and .HTML are the same, as posted below. What am I missing here? Shouldn't they behave the same?
<!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=UTF-8" />
<title>Test</title>
</head>
<body>
<input type="button" value="A lot of descriptive text on a button" style="width:100px; white-space:normal;" />
</body>
</html>
Related
I've started coding html in wordpress. I have a html code with label tag and an input tag of type "text". The input field is not getting displayed in browser. The same code works fine in eclipse. What might be the problem. When I save the post as draft the tag disappears. Not able to solve the issue. Kindly help me in this regard.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Hello testing</title>
</head>
<body>
<div> <label> Name:</label> <input type="text"> </div>
</body>
</html>
Above image is the code run through eclipse
Above one is the image run through wordpress preview
when writing html in the Wordpress editor, you can only use tags that are allowed by Wordpress. Dont think the input tag is one if them.
Look at this:
https://en.support.wordpress.com/code/#html-tags
The "input" tag is not supported by WordPress editor.
I'm not sure why this is happening. I'm just setting up a basic site, I've barely added anything, but Chrome seems to think i'm trying to use frames?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
</head>
<body>
<div id="header">
<div id='logo'><img src='img/logo-black-thin.png' /></div>
</div><!--header-->
</body>
</html>
But for some reason in Chrome it creates a bunch of frameset tags and gives me this sentence in the html:
Your browser does not support frames. We recommend upgrading your browser.
I can't figure out why this is happening. Any ideas?
I am currently working on a project on web designing using Dreamweaver. So I have set up my site and home.html. I've also added the necessary images in an images folder in the project root.
Here’s the problem: when I drag the image from my assets panel and put it in design, the image doesn't show up, but I see a grey box and an icon in it. Now when I see the live view, I can see the image.
How can I see the image in design view, so as to adjust its size proportionately?
This is my code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>home</title>
</head>
<body>
<img src="images/webDes.jpg" alt="" width="280" height="226" longdesc="images/webDes.jpg" />
</body>
</html>
ok ,I got the problem . the image was made in illustrator, and when I exported it in .JPEG format , I chose CMYK. that was the wrong move , I Later exported again , but chose RGB and it worked !
Your code has errors in it, possibly attributing to Dreamweaver not showing the images. Your web browser may be ignoring the errors, but dreamweaver isn't. HTML does not require colons, which you have two of. Here is come cleaned-up code.
Cleaned up your code a bit - try this.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>home</title>
</head>
<body> <img src="images/webDes.jpg" alt="" width="280" height="226" longdesc="images/webDes.jpg" />
</body>
</html>
I simply want to do whats posted below but nothing happens when opening the HTML file.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Your Page Title</title>
<meta http-equiv="REFRESH" content="1;url=about:newtab"></HEAD>
<BODY>
Optional page text here.
</BODY>
</HTML>
I have these strange image urls that if I call direct in browser, an image shows up but when I use it in an img tag no image shows up.
http://thetvdb.com/banners/_cache/fanart/original/248951-1.jpg
I'm sure I'm making some silly mistake. Here is simple code.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org
/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title></title>
</head>
<body>
<img src="http://thetvdb.com/banners/_cache/fanart/original/248951-1.jpg" alt=""/>
</body>
</html>
Any help?
The TV DB does not want to use their bandwidth to display an image on your site.
We don't allow any kind of hotlinking, you are only allowed to directly download the images and then use them as you see fit, you may not use us as a host.
They have taken steps to prevent you from doing this.
quentin#laptop:~ # curl -e http://example.com/ http://thetvdb.com/banners/_cache/fanart/original/248951-1.jpg
<html>
<head><title>403 Forbidden</title></head>
<body bgcolor="white">
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx</center>
</body>
</html>