开发者

What is <image> tag, and how is it different from <img> tag

开发者 https://www.devze.com 2023-03-17 02:17 出处:网络
I have the following code. <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">

I have the following code.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<body>
<?php
$dbc=mysqli_connect('localhost','root','alsk1029','karan');
$query="select * from project where image_id>16";
$data=mysqli_query($dbc,$query);
while($row=mysqli_fetch_array($data))
{

e开发者_JAVA百科cho '<br /><image src="'.'images/'.$row['image'].'" /><br /><br /><a href="script.php?    name='.'images/'.$row['image'].'">Downlaod</a>';
echo '<br /><br /><a href="remove.php?name='.'images/'.$row['image'].'">Remove</a>';
}
?> 

even after @unlink, there is no pic in my images folder, but it still keeps on showing me the image, though when i download the image, it shows an empty file being downloaded, if i use <image> tag instead of the <img>. On using <img> it doesnt display the image? what really is tag?


Some browsers may support some weird tags invented by the browser developers on their own. For instance, MS IE may support some tags generated by their FrontPage or even by Word. However, I'd recommend not to rely on them and to follow W3C standards to provide cross-browser compatibility.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号