HTML Images
The <img> tag is used to insert an image into a webpage. The source of the image is specified within the src attribute, like this: <img src=”source_of_image”>.
Syntax:
<img src="geeks.png">
Example 5: To illustrates the use of the <img> tag for inserting the images in HTML.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0">
<title>HTML img tag</title>
</head>
<body>
<img src=
"https://media.w3wiki.org/wp-content/cdn-uploads/Geek_logi_-low_res.png">
</body>
</html>
Output:
HTML Basics
HTML stands for Hyper Text Markup Language. It is the standard markup language for creating Websites. It is used to describe the structure of a Web page. HTML consists of elements that tell the browser how the content is displayed on the screen. We’ll walk you through fundamental HTML examples and teach you how to create a webpage. This HTML Basics covers fundamental HTML examples.
In this guide, the basics of HTML include learning HTML tags ( <h1>, <p>, <img>, etc), attributes, elements, and document structure which collectively form a working web page.
Table of Content
- Basic HTML Document
- HTML Headings
- HTML Paragraph and Break Elements
- HTML Horizontal Line
- HTML Images
- View HTML Source Code
Contact Us