Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
sir how to add image to paragraph.

What I have tried:

.
i tried this syntax many time but it is not working
Posted
Updated 17-Aug-18 7:11am
Comments
Vincent Maverick Durano 17-Aug-18 13:49pm    
Where's your code? Normally, image will not show because of path issue, so make sure to check for the path existence.

1 solution

Here you go, URL for the image belongs in the src attribute of the element

Documentation can be found at w3c schools
HTML <img> tag[^]


HTML
<html>
     <body>
          <p>
               <img src="http://www.domain.com/images/smiley.jpg">
          </p>
     </body>
</html>
 
Share this answer
 

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