Web Development Articles

Page 90 of 801

HTML autofocus Attribute

Arjun Thakur
Arjun Thakur
Updated on 16-Mar-2026 92 Views

The autofocus attribute in HTML automatically sets focus to a form element when the page loads. This attribute causes the browser to immediately place the cursor in the specified element, making it ready for user input without requiring a mouse click or tab navigation. The autofocus attribute is a boolean attribute introduced in HTML5 and can be used with various form elements including , , , and . Syntax Following is the syntax for the autofocus attribute − The autofocus attribute can also be written as − ...

Read More

HTML cite Attribute

Arjun Thakur
Arjun Thakur
Updated on 16-Mar-2026 306 Views

The cite attribute in HTML is used to specify the source URL of a quotation or referenced content. It is commonly used with the and elements to provide a machine-readable reference to the original source, though it is not visually displayed by browsers. Syntax Following is the syntax for the cite attribute with the element − Quoted content here Following is the syntax for the cite attribute with the element − Inline quoted content Here, URL is the web address or ...

Read More

HTML rel Attribute

Ankith Reddy
Ankith Reddy
Updated on 16-Mar-2026 166 Views

The rel attribute of the element specifies the relationship between the current document and the linked document. This attribute was introduced in HTML5 for the element and helps define the semantic relationship between clickable regions in image maps and their target destinations. Syntax Following is the syntax for the rel attribute in the element − The value can be one or more space-separated keywords that define the relationship type. Rel Attribute Values The rel attribute accepts the following values that define different types of relationships − ...

Read More

HTML target Attribute

Chandu yadav
Chandu yadav
Updated on 16-Mar-2026 440 Views

The target attribute of the element specifies where to display the response received after submitting the form. It controls whether the form response opens in the same window, a new tab, a specific frame, or the parent window. Syntax Following is the syntax for the target attribute − Target Attribute Values The target attribute accepts the following predefined values − _blank − Opens the form response in a new window or tab. _self − Opens the form response in the same frame (default behavior). _parent − Opens the form ...

Read More

HTML target Attribute

George John
George John
Updated on 16-Mar-2026 176 Views

The target attribute of the element specifies where to open the linked document when a clickable area within an image map is activated. It determines whether the link opens in the current window, a new window, or a specific frame. Syntax Following is the syntax for the target attribute − Target Attribute Values The target attribute accepts the following values − _blank − Opens the linked document in a new window or tab. _self − Opens the linked document in the same frame or window (default ...

Read More

Change Background color of a web page using onmouseover property

Arjun Thakur
Arjun Thakur
Updated on 16-Mar-2026 7K+ Views

The onmouseover property allows you to execute a script when the mouse pointer is moved onto an HTML element. Combined with the HTML DOM backgroundColor property, it enables dynamic background color changes to create interactive web pages. Syntax Following is the syntax for the onmouseover property − Content Following is the syntax for changing background color using JavaScript − document.body.style.backgroundColor = "colorValue"; Basic Background Color Change The most common approach is to use the onmouseover event directly on an element to change the entire page background color when hovering. ...

Read More

HTML type Attribute

Chandu yadav
Chandu yadav
Updated on 16-Mar-2026 141 Views

The type attribute of the element specifies the MIME (Multipurpose Internet Mail Extensions) type of the linked resource. This attribute provides a hint to the browser about what type of content to expect when the user clicks on the area, helping optimize the user experience. Syntax Following is the syntax for the type attribute − Where media_type is a valid MIME type such as image/png, text/html, application/pdf, etc. Common MIME Types Following are some commonly used MIME types with the area element − MIME Type Description ...

Read More

HTML autocomplete Attribute

Ankith Reddy
Ankith Reddy
Updated on 16-Mar-2026 206 Views

The autocomplete attribute in HTML controls whether the browser should automatically fill in form fields based on previously entered values. When set to on, browsers provide suggestions from the user's input history, making form completion faster and more convenient. Syntax Following is the syntax for the autocomplete attribute − For individual form controls, the syntax is − Parameters The autocomplete attribute accepts the following values − on − Enables autocomplete for the form or input element. The browser will suggest previously ...

Read More

HTML DOM Address Object

Arjun Thakur
Arjun Thakur
Updated on 16-Mar-2026 244 Views

The HTML DOM Address Object represents the element in HTML. The element is used to define contact information for the author or owner of a document or article. The Address Object provides properties and methods to create, access, and manipulate address elements using JavaScript. Syntax To create an Address Object using JavaScript − document.createElement("address") To access an existing address element − document.getElementById("addressId") Properties The Address Object supports all standard HTML DOM properties like innerHTML, textContent, style, and event handlers. It inherits properties from the HTMLElement interface. ...

Read More

HTML disabled Attribute

George John
George John
Updated on 16-Mar-2026 210 Views

The disabled attribute in HTML is used to disable form elements, making them unclickable and unselectable. When applied, the element becomes inactive and cannot be interacted with by users. This attribute is commonly used with form controls like buttons, input fields, select options, and option groups. Syntax Following is the syntax for the disabled attribute − Or with a value − Elements Supporting Disabled Attribute The disabled attribute can be applied to the following HTML elements − − Disables button elements − Disables ...

Read More
Showing 891–900 of 8,010 articles
« Prev 1 88 89 90 91 92 801 Next »
Advertisements