Horje

Full Example of HTML src Attribute

The src attribute specifies the URL or path of the resource file. The URL points to the media file to display (images) or play (audio and video). The browser uses the URL to locate and load the media file. The URL can be internal (from same website) or external (another website).
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h2>The src Attribute</h2>
<p>HTML images are defined with the img tag, and the filename of the image source is specified in the src attribute:</p>

<img src="https://itupto.com/avatar.png" width="100" height="100">

</body>
</html>

Output should be:

Full Example of HTML src Attribute



Single Articles
How is to look a HTML src AttributeHTML Attributes
Full Example of HTML src AttributeHTML Attributes


Related Articles
What is HTML Attributes HTML Attributes
How to create HTML href Attribute HTML Attributes
How to create HTML src Attribute HTML Attributes
How to create HTML width and height Attributes HTML Attributes
How to create HTML alt Attribute HTML Attributes
How to create HTML style Attribute HTML Attributes
How to create lang Attribute HTML Attributes
How to create HTML title Attribute HTML Attributes
How to create HTML Single or Double Quotes HTML Attributes
What is HTML Headings HTML Attributes
How to create HTML Headings HTML Attributes
What is Headings Are Important HTML Attributes
How to create HTML Bigger Headings HTML Attributes

Type:
Html
Category:
Web Tutorial
Sub Category:
HTML Attributes
Uploaded by:
Admin



Share on: