QUIZ 1 QUIZ 2 ASSIGNMENTS  --- CONTENT ---   Introduction HTML Editors Basic HTML Tags Heading Tags Paragraph Tags Line Break Tag Horizontal Lines Preserve Formatting Links Images Formatting Tables Heading Colspan and Rowspan Backgrounds Height and Width Header, Body, and Footer Lists Unordered List UL Types Ordered List OL Types Div Span Forms Fieldset Legend Label Input Select Datalist Textarea

HTML Images

Images are very important to beautify as well as to depict many complex concepts in simple way on your web page. This tutorial will take you through simple steps to use images in your web pages.

Insert Image

You can insert any image in your web page by using <img> tag. Following is the simple syntax to use this tag.


<img src = "Image URL" ... attributes-list/>

The <img> tag is an empty tag, which means that, it can contain only list of attributes and it has no closing tag.

For example:


            
                <!DOCTYPE html>
                <html>

                    <head>
                        <title>Using Image in Webpage</title>
                    </head>
	
                    <body>
                        <p>Simple Image Insert</p>
                        <img src = "z_future-tech.png" alt = "Test Image" />
                    </body>
	
                </html>
            
            


This will produce the following result −


View in Browser