Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
Other Resources:
What Are the Attributes of an IMG Element
What Are the Attributes of an IMG Element? - XHTML 1.0 Tutorials - Understanding Inline Images and Image Maps
✍: FYIcenter.com
There are 4 commonly used attributes for an "img" element:
Here is a tutorial example of an "img" element with all 4 attributes:
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Image Attributes</title> </head> <body> <h4>Inline Images</h4> <p style="background-color: #eeeeee; padding: 8px;"> What is the size of this image? <img src="/moonrise.jpg"" alt="Moonrise" width="69" height="91"/> width="69" and height="91".</p> </body> </html>
If you save the above document as image_attributes.html, download this
image file and view it with Internet Explorer, you will see
an image embedded inline with width and height attributes in a text paragraph as shown below:
2007-05-12, 4874👍, 0💬
Popular Posts:
Can you have virtual functions in Java? Yes, all functions in Java are virtual by default. This is a...
How To Recover a Dropped Index? - Oracle DBA FAQ - Managing Oracle Table Indexes If you have the rec...
If we have two version of same assembly in GAC how do we make a choice ? OK first let’s try to under...
Can we get a strongly typed resource class rather than using resource manager? In the previous quest...
How do you override a defined macro? You can use the #undef preprocessor directive to undefine (over...