We share knowledge on the Internet. First it started to disseminate technical knowledge. But later, we use many categories. Articles appeared
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.
- Create a .html file.
- 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:
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.
<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>
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