Click here to Skip to main content
15,918,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<pre lang="xml"><body style="background-color: paleturquoise">
        <h2 style="color: red">Duke's soccer League: Home Page<br/></h2>
        <ul style="list-style-type: circle">
            <li style="font-size: larger"><a href="league_list.in">All Leagues list</a></li>
            <li style="font-size: larger">Register for a League (TBA)<br/><br/></li>
        </ul>
        <h2 style="color: red">League Administrator</h2>
        <ul style="list-style-type: square">
            <li style="font-size: larger"><a href="add_league.in">Add a new League (TBA)</a></li>

            <img  src="C:\Users\VIRK\Desktop\66.jpg" width="400" height="400" ></img>

    </ul>
    </body>


I mcodin this in NetBeans IDE 7.0 and everthing working fine but the image code to show the image in browser not showing the image. So what I m missing?
Posted
Comments
Jagdeep Kaur 19-Jun-11 11:14am    
You can provide image by two ways firstly to give path in css(stylesheet) file which is more professional way and another is to give that on page source.while giving the path one must have in mind the root path of application which indicates the path of folder which contains images.as given in below example
<img src="images/news_icon.gif" width="33px" height="27px" alt="">
i hope it will help!
all the best
Ajvirk 5-Jul-11 13:12pm    
thanks its helped me completely <img src="images/news_icon.gif" width="33px" height="27px" alt="">

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900