HTML Attributes

HTML ATTRIBUTES

HTML Attributes:

HTML attributes are given the additional information to that tag and it controls the behavior of that tag we have many attributes like href, src, target, title, style.

Anchor tag element attributes  are

Href:

the URL of the page on the link.

Target:

used to open in new tab target=”_blank”;

Title:

extra information about an element(displayed as a tooltip)

Image:

src, width, height, alt

List:

List tag we user type attribute and start

Type:

used to the type of element and type of list(unordered and ordered)

Like-Type=circle, square, disc, none, A, a, I, I, start=”10”;

Table:

In the table, we used to border, width, height etc..

Border:

The table border we can apply using this attribute

Width:

That table width, row, and columns

Form:

action, method, placeholder, size, required, multiple, read only, disabled, autofocus, autocompleted, min, max,….etc.

Action:

The URI of a program that processes the information submitted via the form

Method:

The submitted form can get method or post method

Placeholder:

It is just like a help text

Size:

It is used to the width of html controls like form inputs, select, textarea

Required:

This element is required to fill out or not.

Multiple:

Indicates whether multiple values can be entered

Disabled :

Indicates whether the user can interact with the element

Read-only:

Indicates whether the element can’t  be edited

Autofocus :

The element should be automatically focused

Please follow and like us:
500

Leave a Reply

Your email address will not be published. Required fields are marked *