The Shriram Millennium School, Gurugram
Subject- ICT
HTML Notes- Image, Hyperlink
Class– VIII
Working with links-
HREF (Hyper Link Reference) is a mandatory attribute used to refer the URL of the resource.
URL (Uniform Resource Locator) is an address tells the browser about the file to link to. It
identifies file locations (Addresses) on the web or on the local hard drive.
Colours of the link-
▪ In the above code, the link attribute in the tag is a standard link. It is a text link that
has not been clicked by the user, yet.
▪ The vlink attribute in the tag is a visited link. It is a text link that has been clicked by
user at least once.
▪ The alink attribute in the tag is an active link. It is a text link that may change its
colour when the user brings the mouse over it.
Link color is: red, Active link color is: green, Visited link color is: pink
There are mainly two types of link- External link and Internal link-
Internal links are links to the pages within your own website.
External links are links outside your own website.
Iframe is a component of an HTML element that allows you to embed documents,
videos, and interactive media within a page.
You can insert an iFrame element by using the <iframe> tag in an HTML document.
The iframe in HTML stands for Inline Frame.
Syntax:
<iframe src="URL"></iframe>
Iframes are also used for displaying different types of media within a webpage. For
example, YouTube videos and Google Maps windows are often embedded in
webpages using iframes. Many ad platforms use iframes to display ads on
webpages.
Image tag-
Attributes –
Its value is supposed to be a textual description of the image, for use in situations where the image
cannot be seen/displayed or takes a long time to render because of a slow internet connection. For
example, our above code could be modified like so:
Embedding image using its URL (full address path)
Comment Tag- Given in your Tools 16 Class 7 Textbook.
Web page is a formatted text document on the Web that a Web browser can display. Most Web pages on the
Internet allow you to quickly move to another Web page. You can do this by clicking a hyperlink, commonly called a
link. You can create Web pages by using a software language known as Hypertext Markup Language (HTML). Web
browsers use HTML to display Web pages.