HTML Articles

Page 43 of 151

HTML DOM Input Password disabled Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 220 Views

The HTML DOM Input Password disabled property is used for setting or returning whether the password field is disabled or not. It uses boolean values with true representing the element should be disabled and false otherwise. The disabled property is set to false by default. The disabled element is greyed out by default and is unclickable. Syntax Following is the syntax for setting the disabled property − passwordObject.disabled = true|false; Following is the syntax for getting the disabled property − var isDisabled = passwordObject.disabled; Here, true means the password field ...

Read More

HTML DOM Input Password name Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 185 Views

The HTML DOM Input Password name property is used for setting or returning the name attribute of an input password field. The name attribute helps in identifying the form data after it has been submitted to the server. JavaScript can also use the name attribute to reference form elements for manipulation. Syntax Following is the syntax for setting the name property − passwordObject.name = name Following is the syntax for getting the name property − var name = passwordObject.name Parameters The name parameter is a string that specifies the ...

Read More

HTML DOM emphasized object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 173 Views

The HTML DOM emphasized object represents the HTML element in the Document Object Model. The element is used to emphasize text content, typically rendering it in italic style to indicate stress or importance. You can create and access emphasized objects using the createElement() and getElementById() methods respectively. Syntax Following is the syntax for creating an emphasized object − var emphasisElement = document.createElement("EM"); Following is the syntax for accessing an existing emphasized object − var emphasisElement = document.getElementById("elementId"); Properties The emphasized object inherits all standard HTML element properties ...

Read More

How to Execute a Script Asynchronously in HTML5 ?

Jaisshree
Jaisshree
Updated on 16-Mar-2026 551 Views

Script tag is used to make the webpage dynamic, however heavy scripts can result in slow rendering of the webpage which ultimately results in poor user experience. To solve this issue, we asynchronously execute the scripts in the webpage i.e. the JavaScript is downloaded in parallel with other website elements and starts to execute as soon as it is completed. To load scripts asynchronously two popular approaches are used − Async attribute − The scripts are downloaded in parallel and start to execute as soon as downloading is complete. Defer attribute − The scripts are downloaded in ...

Read More

How to Emphasize Text in a Document using HTML5?

Jaisshree
Jaisshree
Updated on 16-Mar-2026 326 Views

Text may be emphasized in documents using a variety of HTML5 elements to highlight crucial information and make it easier for readers to identify important content. HTML5 provides both presentational and semantic elements for text emphasis, each serving different purposes in document structure and meaning. Different tags are used in HTML like , , , , , , , , and to emphasize text, add superscript and subscript formatting, and provide semantic meaning to content. Syntax Following are the syntax patterns for common text emphasis elements − bold text italic text underlined text strongly ...

Read More

How to Ensure the Readability of HTML?

Jaisshree
Jaisshree
Updated on 16-Mar-2026 475 Views

HTML is a fundamental language utilized in web development for creating web pages. The readability of HTML is of great importance, not only for developers but also for users who aim to navigate and understand a web page easily. Well-structured HTML code improves maintainability, collaboration, and accessibility while making debugging and updates more efficient. Proper Indentation How code is structured and presented is known as indentation. Appropriate indentation is crucial for enhancing the readability and comprehensibility of the code. To ensure code readability and comprehension, experts advise using a consistent indentation scheme whether it be tabs or spaces. ...

Read More

How to Escape Everything in a Block in HTML?

Jaisshree
Jaisshree
Updated on 16-Mar-2026 4K+ Views

When building HTML web pages, certain characters like , and & have special meaning to browsers. To display these characters literally without the browser interpreting them as HTML markup, you need to escape them using various techniques. What Does "Escaping" Mean in HTML? Escaping in HTML means converting special characters into a format that browsers display as text rather than interpreting as HTML code. This prevents conflicts between your content and HTML syntax. Characters That Need Escaping The most common characters requiring escaping are − Less than () − Represents the end of HTML ...

Read More

HTML DOM Input Reset name property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 200 Views

The HTML DOM Input Reset name property is used for setting or returning the value of the name attribute of a reset button. The name attribute identifies form data when submitted to the server, allowing the server to distinguish between different form elements. Syntax Following is the syntax for setting the name property − resetObject.name = name Following is the syntax for getting the name property − var name = resetObject.name Parameters name − A string that specifies the name of the reset button. This value is used to ...

Read More

How to Expand Accordion from URL in Bootstrap?

Jaisshree
Jaisshree
Updated on 16-Mar-2026 1K+ Views

Bootstrap accordion components can be expanded directly from URL parameters using hash identifiers. This technique allows users to navigate directly to specific accordion sections by including the section ID in the URL (e.g., page.html#section1). When the page loads, JavaScript detects the hash and automatically expands the corresponding accordion panel. Syntax Following is the basic syntax for creating an expandable accordion with URL hash support − Section Title Content here The href attribute contains the hash identifier that matches the id of the collapsible div. ...

Read More

HTML DOM Input Search autofocus Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 172 Views

The HTML DOM Input Search autofocus property is associated with the HTML element's autofocus attribute. This property is used for setting or returning whether the input search field should automatically be focused when the page loads. Syntax Following is the syntax for setting the autofocus property − searchObject.autofocus = true|false Following is the syntax for returning the autofocus property − searchObject.autofocus Property Values The autofocus property accepts the following boolean values − true − The search field should get focus when the page loads. false − ...

Read More
Showing 421–430 of 1,509 articles
« Prev 1 41 42 43 44 45 151 Next »
Advertisements