HTML Articles

Page 51 of 151

How to create bullets using li elements?

Jaisshree
Jaisshree
Updated on 16-Mar-2026 313 Views

The element is used to define list items within an ordered list () or an unordered list (). The element stands for "list item". Bullets are most commonly used with unordered lists to create visual markers for each item, making content easier to read and organize. Syntax Following is the basic syntax for creating bulleted lists using elements − First item Second item Third item The CSS list-style-type property controls the bullet appearance − ul { ...

Read More

HTML DOM Textarea name Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 173 Views

The HTML DOM Textarea name property returns or sets the value of the name attribute of a textarea element. The name attribute is used to identify the textarea when form data is submitted to the server. Syntax Following is the syntax for returning the name property − textareaObject.name Following is the syntax for setting the name property − textareaObject.name = "nameValue" Return Value The property returns a string representing the name attribute of the textarea element. If no name attribute is set, it returns an empty string. Getting ...

Read More

HTML DOM Textarea readOnly Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 271 Views

The HTML DOM Textarea readOnly property sets or returns whether a textarea element is read-only. When set to true, users cannot modify the textarea content, but they can still select and copy the text. This property is useful for displaying non-editable content in textarea format while preserving the element's visual appearance. Syntax Following is the syntax for getting the readOnly property − textareaObject.readOnly Following is the syntax for setting the readOnly property − textareaObject.readOnly = true | false Return Value The property returns a boolean value − ...

Read More

HTML DOM Textarea form Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 249 Views

The HTML DOM Textarea form property is a read-only property that returns a reference to the form element that contains the textarea. If the textarea is not enclosed within a form, this property returns null. Syntax Following is the syntax for the textarea form property − textareaObject.form Return Value The property returns a reference to the form element that contains the textarea, or null if the textarea is not inside a form. Example − Getting Form Reference Following example demonstrates how to get the form reference of a textarea element − ...

Read More

HTML DOM Textarea required Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 180 Views

The HTML DOM Textarea required property sets or returns whether a textarea field must be filled out before submitting a form. When set to true, the textarea becomes a mandatory field, and the browser will prevent form submission if it's empty. Syntax Following is the syntax for returning the required property − textareaObject.required Following is the syntax for setting the required property − textareaObject.required = true | false Property Values The required property accepts the following values − true − The textarea field is required and must ...

Read More

HTML DOM Textarea maxLength Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 247 Views

The HTML DOM Textarea maxLength property allows you to get or set the maximum number of characters that can be entered in a textarea element. This property corresponds to the maxlength attribute in HTML and helps control user input length. Syntax Following is the syntax to return the maxLength value − object.maxLength Following is the syntax to set the maxLength value − object.maxLength = number Here, object refers to the textarea element, and number is a positive integer representing the maximum allowed characters. Return Value The maxLength property ...

Read More

How to adjust the width and height of an iframe to fit with content in it HTML?

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 104K+ Views

We can adjust the width and height of an iframe to fit its content using CSS properties, HTML attributes, or JavaScript. An iframe (inline frame) allows you to embed another HTML document within the current page, and controlling its dimensions is essential for proper layout and user experience. The main challenge with iframe sizing is that the browser cannot automatically determine the content dimensions, especially for cross-origin content due to security restrictions. However, there are several effective approaches to handle iframe sizing. Syntax Following is the basic syntax for an iframe element − ...

Read More

HTML DOM Textarea select() Method

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 202 Views

The HTML DOM Textarea select() Method selects all the content within a textarea element programmatically. This method is commonly used to highlight text for copying or to provide a convenient way for users to select all text at once. Syntax Following is the syntax for the textarea select() method − textareaObject.select() Parameters The select() method does not take any parameters. Return Value The select() method does not return any value. It simply selects all the text content within the textarea element. Example − Basic Textarea Selection Following example demonstrates ...

Read More

HTML reserved Attribute

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 436 Views

The HTML reversed attribute defines that the list order in ol HTML element should be descending in an HTML document. When this attribute is present, the ordered list numbers count down from a higher number to a lower number instead of the default ascending order. Syntax Following is the syntax for the reversed attribute − Item 1 Item 2 Item 3 The reversed attribute is a boolean attribute, meaning its presence indicates the list should be reversed. No value is needed. How the Reversed Attribute ...

Read More

How to include another HTML file in an HTML file?

Shubham Vora
Shubham Vora
Updated on 16-Mar-2026 68K+ Views

In this tutorial, we will learn different methods to include another HTML file within an existing HTML file. This technique is useful for creating reusable components, headers, footers, or content sections that can be shared across multiple pages. Several methods are available to include external HTML files, each with its own advantages and use cases. Let us explore the most effective techniques that have proper web browser support. Using jQuery Load Method The jQuery load() method is one of the most popular approaches for dynamically including HTML content. It fetches content from an external file and inserts ...

Read More
Showing 501–510 of 1,509 articles
« Prev 1 49 50 51 52 53 151 Next »
Advertisements