HTML Articles

Page 48 of 151

How to use week input type in HTML?

Sai Subramanyam
Sai Subramanyam
Updated on 11-Mar-2026 510 Views

The week input type is used in HTML using the . Using this, allow users to select a week and year. A date picker popup is visible whenever you will give a user input to the week input type. Note − The input type week is not supported in Firefox and Internet Explorer. It works on Google Chrome. You can try to run the following code to learn how to use week input type in HTML. It will show both week and year. Example HTML input week Details: Student Name Training week

Read More

How do we specify whether a header cell is a header for a column, row, or group of columns or rows in HTML?

Ankitha Reddy
Ankitha Reddy
Updated on 11-Mar-2026 137 Views

Use the scope attribute to implement whether a header cell is a header for a column, row, or group of columns or rows in HTML − Example table, th, td { border: 1px solid black; } Cricketers Indian Cricketers Name 1 Sachin Tendulkar 2 Virat Kohli

Read More

Set the width of the element in HTML

Sravani S
Sravani S
Updated on 11-Mar-2026 327 Views

Use the width attribute in HTML to set the width of an element. You can use the attribute with the following elements − , , , , , etc.ExampleYou can try to run the following code to implement width attribute in HTML −                                        Your browser does not support the video element.           Output

Read More

Execute a script each time the playback rate changes in HTML?

vanithasree
vanithasree
Updated on 11-Mar-2026 169 Views

Use the onratechange attribute to execute a script each time the playback rate changes in HTML in HTML.ExampleYou can try to run the following code to implement onratechange attribute −                                        Your browser does not support the video element.             Change the speed of the video                      function display() {             document.getElementById("test").innerHTML = "Speed: " + document.getElementById("myid").playbackRate;          }          function update(ob) {             document.getElementById("myid").playbackRate = ob.value;          }           Output

Read More

Usage of CSS grid-auto-flow property

radhakrishna
radhakrishna
Updated on 11-Mar-2026 127 Views

Use the grid-auto-flow property to include auto-placed items in the grid.ExampleYou can try to run the following code to implement the grid-auto-flow property with CSS −                    .container {             display: grid;             grid-auto-columns: 50px;             grid-auto-flow: column;             grid-gap: 10px;             background-color: red;             padding: 10px;          }          .container>div {             background-color: yellow;             text-align: center;             padding:10px 0;             font-size: 20px;          }                              1          2          3          4          5          6          

Read More

HTML DOM Anchor origin Property

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 168 Views

The HTML DOM Anchor origin property returns the protocol, hostname and port number of the href attribute value, for example, https://www.demo.com:6064  Following is the syntax−anchorObj.originLet us now see an example to implement the DOM Anchor origin property −Example Company Products Display href Part Display origin Display hreflang function display() {    var a = document.getElementById("mylink").href;       document.getElementById("myid").innerHTML = a;    }    function display2() {       var a = document.getElementById("mylink").origin;       document.getElementById("myid").innerHTML = a;    }    function display3() {       var a = document.getElementById("mylink").hreflang;       document.getElementById("myid").innerHTML = a;    } OutputClick on the “Display origin” button−

Read More

Adding default search text to search box in HTML with JavaScript?

Vivek Verma
Vivek Verma
Updated on 28-Aug-2025 595 Views

A default search text is a text that provides suggestions or a hint of what to search for in the search (input) box. Following is an illustration of a search box, where you can observe a default search text "Search your favorite tutorials…" : The above default search text will suggest to visitors that they can search for their favorite tutorial, which they want to read or open on the website. Adding Default Search Text to Search Box Using JavaScript In HTML, the text (i.e., search text) that appears inside a search box or input field before the user ...

Read More

How to use Python Regular expression to extract URL from an HTML link?

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 26-May-2025 3K+ Views

In this article, we are going to learn how to extract a URL from an HTML link using Python regular expressions. URL is an acronym for Uniform Resource Locator; it is used to identify the location resource on the Internet. URL consists of a domain name, path, port number, etc. The URL can be parsed and processed by using a Regular Expression. Therefore, if we want to use a Regular Expression, we have to use the "re" library in Python. Following is an example of a URL - URL: https://www.tutorialspoint.com/courses If we parse the above URL we can find ...

Read More

How do we add a table row in HTML?

Alshifa Hasnain
Alshifa Hasnain
Updated on 19-Feb-2025 938 Views

In this article, we will learn to add a table row in HTML. Tables are a fundamental part of web development, used to display structured data in rows and columns. In HTML, you can add table rows using the (table row) element inside a structure. Attributes The HTML tag also supports the following additional attributes − Attribute Value ...

Read More

Tic Tac Toe Game with HTML, CSS, and JavaScript

Souvik Chakraborty
Souvik Chakraborty
Updated on 30-Jan-2025 2K+ Views

Tic Tac Toe is well-known two square board game in which two players have to put their mark on certain spaces in turns. The player that gets three of their marks in a row either in a horizontal, vertical, or diagonal manner wins that game. If all turns are used and no player gets the line, then the draw is the end of the game. In this article, we will see how to build a Tic Tac Toe game in plain HTML, CSS, and JavaScript. The code allows a two-player mode game and additional features including the Reset button, an ...

Read More
Showing 471–480 of 1,508 articles
« Prev 1 46 47 48 49 50 151 Next »
Advertisements