We talked about several paragraph codes before this. If you don't read it, Go to Link in below,


Then today we are going to teach how to add a image to your website.

  1. Create a .html file.
  2. Code as follows.

Image Tag :


<img src = " yourimage.jpg " >



Let's create a web page

Code :

<html>
    <head>
        <title> Adding a image </title>
    </head>

    <body>
        <img src = "image.jpg">
    </body>
</html>

Preview: 

Before you run this, See if the path you entered has an image.



Download:







We have created a web page before. Let's add an image to the that page today. If you read our second lesson, you may have downloaded that page. If not, To download that go to the second lesson.

How to make a website - Lesson 02

If it is so, let's add an image to that page.

Code:

<html>
    <head>
        <title>
            Sigharaja Forest
        </title>
    <head>

    <body>
        <h1>Sigharaja Forest</h1>

<img src="SinharajaRainForest.jpg">

        <p> The <b>Lion Kingdom</b> is one of the rarest rainforests. It is also known as a World Heritage Site. It belongs to <u>Galle, Ratnapura and Matara districts</u>. This is about <b>23,000</b> acres. The Gin Ganga and the Kalu River flow through the forest.<i> 13 endemic plants, 18 birds, 8 mammals, 3 fish species, 21 reptiles, 10 amphibians</i> live in the Sinharaja. There are 60 species of butterflies and the largest butterfly ( Comman Bird ) in Sri Lanka. </p>
    </body>
<html>

Preview: 


Download:
Comment your problems, Share this with friends, 

Thanks to all who joined, we'll see you in the next lesson
Next
This is the most recent post.
Previous
Older Post
Axact

Tech Zone

Wa are happy You're here. Like, Comment, Share. Thank You

Post A Comment:

0 comments: