Our 2nd Lesson

So today we discuss about the link button and image adding on a web page

Link Button

Links are found in nearly all web pages. Links allow users to click their way from page to page.

HTML links are hyperlinks.

A hyperlink is a text or an image you can click on, and jump to another document.


HTML Links - The target Attribute:
  • _blank: Opens the linked document in a new window or tab.
  • _self: Opens the linked document in the same frame as it was clicked (this is default).
  • _parent: Opens the linked document in the parent frame.
  • _top: Opens the linked document in the full body of the window.
  • framename: Opens the linked document in a named frame.


HTML Link:

2.1 Coding:



2.2 Output:



Image As A Link:

2.1 Coding:



2.2 Output:


Image Addition on a webpage:

3.1 Coding:


3.2 Output:




Summary:



  • Use the HTML a element to define a link.
  • Use the HTML href attribute to define the link address.
  • Use the HTML target attribute to define where to open the linked document.
  • Use the HTML img element (inside "a" tag) to use an image as a link.
  • Use the HTML href attribute (href="#value") to address the bookmark.


Learn With Video Tutorial:







By Animesh

Comments

Popular posts from this blog

Intro of HTML