Inserting an image with CSS

Sample Code

<!DOCTYPE html>
<html>
<style>
image{border:4px solid orange; width: 120px;height: 100px;}
h1{text-transform:uppercase}
</style>
<head>
<title>
HTML frame scrolling Attribute
</title>
</head>
<body>
<h1>Inserting Image</h1>
<img src="wikitechy.png" alt="image is not available">
</body>
</html>

Output

Inserting an Image without the CSS

Sample Code

<!DOCTYPE html>
<head>
<title>
HTML frame scrolling Attribute
</title>
</head>
<body>
<h1>Inserting Image</h1>
<img src="wikitechy.png" alt="image is not available" width="120px" height="100px">
</body>
</html>

Output

 

Categorized in:

HTML

Tagged in:

, , , , , , , , , ,

Share Article:

Leave a Reply

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
100% Free SEO Tools - Tool Kits PRO