Saturday, 3 November 2018

How to write a program to insert graphics in a web page.


Learn to add graphics(images) in a web page(HTML page).

(2 minutes coding)


Steps to add images or graphics in a web page.



1. Open NOTEPAD or NOTEPAD++ in your computer .




2.Copy the code given below .

 <html>

<head>
<title>
Inserting Graphics in Web Page
</title>
</head>
<body background ="C:\Users\Public\Pictures\Sample Pictures\penguins.jpg">
<!--ADD source of the image from your computer -->
<center><font size=6 colour=red>Inserting graphics in web page</font></center>
<hr>
<img src="C:\Users\Public\Pictures\Sample Pictures\Chrysanthemum.jpg">
<!--ADD source of the image from your computer -->
<br>
<img src="C:\Users\Public\Pictures\Sample Pictures\desert.jpg" width=100 height=100>
<!--ADD source of the image from your computer -->
<br>

<img src="C:\Users\Public\Pictures\Sample Pictures\jellyfish.jpg" width=30% height=50% align=right >
<!--ADD source of the image from your computer -->
</body>
</html>


3. Now paste it in your Notepad file.


4.Now save your file with .html extension.


5. File will appear like this.


6. Now open the file in any browser except internet explorer.



No comments:

Post a Comment

DBMS NOTES UNIT 3

                                                              UNIT 3  ER (Entity Relationship) An entity-relationship model is known as an E...