HTML ATTRIBUTES

 HTML ATTRIBUTES

HTML attributes provide additional information about HTML elements.

HTML ATTRIBUTES

  1. All HTML elements can have attributes
  2. Attributes provide additional information about elements
  3. Attributes are always specified in the start tag
  4. Attributes usually come in name/value pairs like: name="value"

The href Attribute

The <a> tag defines a hyperlink. The href attribute specifies the URL of the page the link goes to:

example:
<a href="https://www.google.com">google</a>

if you will click on this I mean to say that (google) you will get a google home page where you search for something. besides this thing, you add some other website or your own website. like;👍

  1. <a href="https://www.facebook.com"> facebook</a>
  2. <a href="https://www.youtube.com"> youtube</a>

we will learn many kids of attributes like img,scr,

Comments

Popular posts from this blog

250+ C Programs for Practice

FUNCTION OVERRIDING IN CPP