Yaswanth Varma has Published 377 Articles

How to specify the language of the element's content in HTML?

Yaswanth Varma

Yaswanth Varma

Updated on 06-Sep-2022 07:21:31

409 Views

The language of an element's content can be identified using the HTML lang property. Language code, which is used to specify the language of the displayed information, is the only value for this element. Syntax Following are the examples… Example In the following example we are using lang ... Read More

How to create Definition Lists in HTML5?

Yaswanth Varma

Yaswanth Varma

Updated on 05-Sep-2022 14:10:37

2K+ Views

A description list—previously known as a definition list—offers an organised arrangement of a term and its definition. For defining a definition list, the following tags are used − − This is the list of definitions. It stores terms and their definitions as tables of rows and data. ... Read More

Check whether the content of an element is editable or not in HTML

Yaswanth Varma

Yaswanth Varma

Updated on 05-Sep-2022 14:08:41

910 Views

The contenteditable attribute indicates whether or not an element's content is editable. If the content is found to be editable, the browser will allow editing by modifying its widgets. This attribute must always take one of these two values below − true, or an empty string − indicating that ... Read More

How to use year input type in HTML?

Yaswanth Varma

Yaswanth Varma

Updated on 05-Sep-2022 13:44:45

24K+ Views

Use the placeholder attribute to let the user know that the required input format is YYYY, and the , min, and max attributes to limit the range of possibilities. To the first argument of a new Date, pass the value or valueAsNumber during the input event () Following are the ... Read More

How to add one or more header cells a cell is related to in HTML?

Yaswanth Varma

Yaswanth Varma

Updated on 05-Sep-2022 13:42:38

326 Views

The headers attribute in HTML text along with the td and th tags allows us to add one or more header cells. It holds the value header id, which specifies a list of ids for one or more header cells that the table header cell is associated to, separated by ... Read More

Execute a script when the content of the element is being cut in HTML?

Yaswanth Varma

Yaswanth Varma

Updated on 05-Sep-2022 13:41:48

231 Views

Oncut attribute triggers when the user cuts the content of an element. Although all HTML elements supported the oncut attribute, cutting content was not allowed unless the element's contenteditable attribute was set to "true." Following are the examples… Example: Cutting some text in using In the following ... Read More

How to specify a unique id for an element in HTML?

Yaswanth Varma

Yaswanth Varma

Updated on 05-Sep-2022 13:40:16

2K+ Views

For each HTML element, the id attribute specifies a special id. The id attribute's value must be distinct across the HTML content. A specific style declaration in a style sheet is referenced using the id attribute. JavaScript also uses it to access and modify the element with the given id. ... Read More

Execute a script when the content of the element is being copied in HTML?

Yaswanth Varma

Yaswanth Varma

Updated on 05-Sep-2022 13:16:47

134 Views

When a user copies the content of an element, the oncopy event takes place.When a user copies an element, such as an image made using the element, the oncopy event also takes place.The elements with type="text" are the ones that often use the oncopy event. Following are the ... Read More

How to specify that an element is not yet relevant in HTML?

Yaswanth Varma

Yaswanth Varma

Updated on 05-Sep-2022 13:14:18

212 Views

A boolean attribute makes up the hidden attribute. It indicates that an element is either not important yet or is no longer relevant when it is present. Elements that have the hidden attribute specified shouldn't be displayed by browsers.Another application of the hidden attribute is to prevent a user from ... Read More

Execute a script when the element is being double-clicked in HTML?

Yaswanth Varma

Yaswanth Varma

Updated on 05-Sep-2022 13:12:14

389 Views

The dblclick event is triggered when a pointing device button, such as the mouse's main button, is double-clicked, or when it is quickly clicked twice on the same element in a brief period of time. Following are the examples… Example: Using ondblclick attribute in HTML In the following example we ... Read More

Advertisements