Found 8895 Articles for Front End Technology

JavaScript Program for the Last duplicate element in a Sorted Array

Prabhdeep Singh
Updated on 30-Mar-2023 11:31:04

269 Views

In this program, we are given a sorted array with duplicate elements and we have to traverse the for loop and return the index of the last duplicate element present in the array and also the duplicate number, which is going to see in the article below. Introduction to Problem In the given problem we have to find the last duplicate element in a sorted array. Duplicate means the number is present more than one time, so here we have given a sorted array (increasing order) from which we have to find the index of the last duplicate elements and ... Read More

How to add emoji in HTML document?

Aayush Mohan Sinha
Updated on 30-Mar-2023 10:45:47

3K+ Views

Emojis are small digital images or icons that are generally used in messaging and other places to express emotions or ideas. In this article, we are going to see how we can add emojis to an HTML document. Approach By setting the charset used to display webpages in the browser to UTF-8, emojis can be added to HTML documents. We can use the tag in the head section to specify this character encoding information. Emojis can be added to HTML after the charset has been declared by utilising the p and span tags. While the emoji is inserted in ... Read More

How to add description list of an element using HTML?

Aayush Mohan Sinha
Updated on 30-Mar-2023 10:44:22

180 Views

HTML, which stands for HyperText Markup Language, is a combination of Hypertext and Markup language which we can use to structure a web page and its content. In this article we are going to take a look at how we can add a description list of an element using HTML. tag The tag is used to represent the description list. This tag is used alongside the tags and . Syntax Description List Content Approach We are going to make use of the tag alongside the and tags to add description list of an ... Read More

How to add copyright symbol to your HTML document?

Aayush Mohan Sinha
Updated on 24-Nov-2023 01:44:20

903 Views

HTML, which stands for HyperText Markup Language, is a combination of Hypertext and Markup language which we can use to structure a web page and its content. In this article, we will see how we can add the copyright symbol to our web page. Approach The copyright symbol is not present on the keyboard. Therefore, we must use another method to add this to our webpage. We are going to see three different methods − Using hexadecimal code Using HTML code Using HTML entity Method 1: Using Hexadecimal Code The hexadecimal code for the copyright symbol is © ... Read More

How to add controls to an audio in HTML5?

Aayush Mohan Sinha
Updated on 30-Mar-2023 10:40:06

412 Views

HTML5 is a combination of technologies that the user can use for creating more robust and diverse websites and web apps that support multimedia, and communicate with software interfaces, among other things. In this article, we are going to see how we can add controls to audio in HTML5. Syntax The controls attribute of the tag can be used to specify the controls of the embedded audio. It allows the user to technically embed a music player directly in the webpage. The controls attribute adds functionalities such as play, pause, and volume. ... Read More

How to add color picker in a form using HTML?

Aayush Mohan Sinha
Updated on 30-Mar-2023 10:33:57

204 Views

HTML, which stands for HyperText Markup Language, is a combination of Hypertext and Markup language which we can use to structure a web page and its content. This article will show how we can add a color picker using HTML. Syntax For Output Code pre class The tag is an interactive element in HTML whose main purpose is to take different forms of inputs from the user. The tag's type attribute specifies what kind of input the user should enter. Approach We are going to make use of the tag. To accomplish the task, we are going ... Read More

How to add an image as the list-item marker in a list using CSS?

Aayush Mohan Sinha
Updated on 30-Mar-2023 10:32:02

837 Views

CSS, the acronym for cascading style sheets, is a straightforwardly built language that makes it easier to present web pages. Applying styles to web pages is possible with CSS.  In this article we are going to see how we can use CSS to add an image as the list-item marker in a list. Approach We are going to make use of the list-style-image property to accomplish the task. The list-style-image property allows the user to set an image as the list-item marker in a list. Syntax list-style-image: none | url | initial | inherit; Example Step 1 − First ... Read More

How to Add Edit and Delete Table Row in jQuery?

Aayush Mohan Sinha
Updated on 28-Mar-2023 15:54:44

2K+ Views

In this modern age of web development, effective and efficient management of tables has become important, peculiarly when dealing with data-heavy web applications. The ability to dynamically add, edit, and delete rows from a table can significantly enhance the user experience and make the application more interactive. One effective approach to achieve this is by utilizing the prowess of jQuery. jQuery provides a number of functionalities to help the developer to perform the actions. Table Row A table row, collection of inter-related data, is represented by the element in HTML. It is used to group cells (represented by the ... Read More

How to Add Date and Time Picker using only one tag in HTML?

Aayush Mohan Sinha
Updated on 28-Mar-2023 15:50:27

831 Views

Incorporating date and time pickers into web forms is a common requirement for many web developers. While you might think that adding date and time pickers might be a complicated task and you might have to use JavaScript libraries. But to your surprise, this is a relatively easy task using tags provided by HTML. This can significantly reduce the amount of code and time required to implement date and time pickers in your web application. Syntax The tag is an interactive element in HTML whose main purpose is to take different forms of inputs from the user. ... Read More

How to define a thematic change in the content in HTML5?

Diksha Patro
Updated on 27-Mar-2023 13:02:27

171 Views

In HTML5, semantic markup elements like headings, sections, articles, and divs with particular class or ID attributes can be used to describe a thematic shift in the content. Both human readers and search engine crawlers can benefit from the structure and context that these components contribute to the material. Web designers can build a more user-friendly, understandable website that is simpler to navigate and navigate for all users by utilizing these semantic components. In this answer, we will examine a few of the various HTML5 thematic change definitions. Approaches In HTML5, there are various methods for defining a thematic ... Read More

Advertisements