In CSS, min-content and max-content are intrinsic sizing keywords that determine an element's size based on its content rather than explicit dimensions. The min-content value makes an element as narrow as possible without overflowing its content, while max-content makes it as wide as needed to display all content on a single line without wrapping. These keywords are particularly useful for responsive design, where you want elements to size themselves naturally based on their content rather than fixed dimensions. CSS min-content The min-content keyword represents the smallest size an element can be without causing content overflow. For text ... Read More
The HTML DOM Input URL placeholder property sets or returns a string that provides hints to users about the expected format of the URL input field. The placeholder text appears as grayed-out text inside the input field and disappears when the user starts typing. Syntax Following is the syntax for getting the placeholder value − inputURLObject.placeholder Following is the syntax for setting the placeholder value − inputURLObject.placeholder = stringValue Parameters stringValue − A string that specifies the placeholder text to display in the URL input field. This should ... Read More
The HTML DOM Anchor rel property returns or sets the rel attribute of an anchor element. The rel attribute specifies the relationship between the current document and the linked document, providing semantic meaning to links for browsers, search engines, and assistive technologies. Syntax Following is the syntax to return the rel property − anchorObject.rel Following is the syntax to set the rel property − anchorObject.rel = "value" Parameters The value parameter accepts a string containing one or more space-separated link types. Common values include − nofollow − ... Read More
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
The HTML DOM Input URL readOnly property sets or returns whether a URL input field can be modified by the user. When set to true, the input becomes read-only and cannot be edited, though its value can still be accessed and copied programmatically. Syntax Following is the syntax for getting the readOnly property value − inputURLObject.readOnly Following is the syntax for setting the readOnly property − inputURLObject.readOnly = booleanValue Parameters The booleanValue parameter can be one of the following − Value Description ... Read More
The HTML DOM Anchor search property returns or sets the query string part of an anchor element's href attribute. The query string is the portion of a URL that comes after the question mark (?) and contains parameters passed to the server, typically used in GET requests. Syntax Following is the syntax for returning the search property − anchorObject.search Following is the syntax for setting the search property − anchorObject.search = querystring Parameters querystring − A string representing the query string portion of the URL, including the ... Read More
The HTML DOM Table deleteTHead() method removes the element and its content from a table. This method is useful for dynamically manipulating table headers in web applications. Syntax Following is the syntax for the deleteTHead() method − table.deleteTHead() Parameters This method does not accept any parameters. Return Value The method returns undefined. It simply removes the element from the table if it exists. Example Following example demonstrates how to use the deleteTHead() method to remove a table header − ... Read More
The HTML DOM Video seeking property returns a boolean value indicating whether the user is currently seeking (moving the playback position) in the video. It returns true during the seeking process and false when not seeking. Syntax Following is the syntax for accessing the seeking property − videoObject.seeking Return Value The seeking property returns a boolean value − true − When the user is actively seeking (dragging the progress bar or using seek controls) false − When the video is playing normally or paused without seeking How It Works ... Read More
To create a download link with HTML, you use the tag with the download attribute. This attribute forces the browser to download the linked file instead of navigating to it. The download attribute works for same-origin URLs and can specify a custom filename for the downloaded file. Syntax Following is the basic syntax for creating a download link − Download Text To specify a custom filename for the download − Download Text Basic Download Link The simplest download link uses just the download attribute without a value. The ... Read More
The HTML DOM anchor target property specifies where to open the linked document when a user clicks on an anchor element. This property corresponds to the target attribute in HTML and can be accessed or modified using JavaScript. The target property can have the following values − _blank − Opens the linked document in a new window or tab. _self − Opens the linked document in the same frame (this is the default). _parent − Opens the linked document in the parent frame. _top − Opens the linked document in the full body of the window. framename ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Economics & Finance