Sharp Tutorial
Images in HTML

Python

Java

C

C++

HTML/CSS

Java Script

PHP

SQL

C Programs

HTML

  • HTML Home
  • Introduction
  • HTML Element
  • Commonly used tags
  • Hyperlinks
  • Images in HTML
  • Div in HTML
  • Html Forms
  • Html Tables
  • Miscellaneous Topics

CSS

  • Introduction to CSS
  • How to apply CSS
  • CSS Selectors
  • Border in CSS
  • Text Formatting in CSS
  • Font Properties
  • Margin in CSS
  • CSS in List
  • CSS in Link
  • CSS Animation
  • CSS Effects
  • CSS Pagination
  • CSS Media Query

Java Script

  • Java Script Home
  • Introduction to Java Script
  • Variable in Java Script
  • Operators in Java Script
  • If-Else in Java Script
  • Loops in Java Script
  • Array in Java Script
  • Function in Java Script
  • Objects in Java Script
  • Java Script DOM

Images in HTML

In HTML, images are defined with <img> tag.

The <img> tag doesnot have a closing tag. It contains “src” attribute which specifies the URL (web address) of the image.

The “alt” attribute provides the alternative name or text to the image, if the user is not able to view the image due to poor connection, error in src attribute then the value of “alt” describes the image

<img src=“URL/Path”>

Example is shown below:

<!DOCTYPE html> 
<html>
<body>
<center><h2>Hello World</h2></center>
<img src="images/charcoal-5.jpeg" alt="Beautiful Sketch" width="400" height="300">
</body>
</html>

Enquiry about Course

Ask your Question

Click Here

Sharp (2) Tutorials

Video/ C Introduction

Watch video in full size

Video tutorial

Follow by Email
Facebook
Facebook
fb-share-icon
YouTube
Copyright © Sharp Tutorial
Build with WordPress
Wordpress Social Share Plugin powered by Ultimatelysocial
Sharp Tutorial