Found 2416 Articles for HTML

How to add Flash content within a webpage in HTML?

Diksha Patro
Updated on 22-Nov-2023 21:35:54

2K+ Views

Introduction In this article, we will show you how to add Flash content within a webpage using HTML. Flash content is a type of multimedia that can be used to add interactive elements such as videos, games, and animations to a webpage. However, Flash is now considered outdated technology and not recommended to use in modern web development due to security and accessibility concerns. It is recommended to use other technologies like HTML5, CSS, and JavaScript for adding multimedia content to web pages Approaches The approaches that we will be discussing to implement this are as follows − Using ... Read More

How to add a file uploads function to a webpage in HTML?

Diksha Patro
Updated on 31-Jan-2023 15:49:50

3K+ Views

Introduction In this article, we will walk you through the process of adding a file upload function to your webpage. We will show you how to create an HTML form with a file input field, as well as how to create a script that handles the file upload process. Approaches Two approaches that we can use to add a file upload function to our webpage in HTML are as follows − Using a basic HTML form with a file input field Using jQuery and ajax Let us discuss them in detail now. Approach 1: Using a basic HTML ... Read More

How to add fade-in effect using pure JavaScript?

Diksha Patro
Updated on 31-Jan-2023 15:47:20

6K+ Views

Introduction We use the fade effect to bring attention to certain parts of our website by gradually increasing or decreasing their opacity. This gradual change in opacity is called the fade-in or fade-out effect. When we gradually increase the opacity, it's known as the fade-in effect and is used to make the selected part of the page become more visible over a chosen amount of time. This creates a smooth transition and helps make our website more dynamic and engaging for our users. In this article, we will be exploring a few ways in which we can implement the fade-in ... Read More

Explain Storage Object in HTML

Shubham Vora
Updated on 05-Jan-2023 15:47:25

252 Views

As the web storage word represents, it stores the data inside the user’s browser locally. Before HTML 5, developers were using cookies to store data locally, but the cookies allow for storing a limited amount of data, such as in kilobytes. The local storage allows users to store up to 5 MB of data. Developers use the cookies to store the data in the browser and exchange it between the client and server. When we store the data in the cookies, it expires after a particular time. However, we can set the data's expiry, but it still expires after ... Read More

POST unchecked HTML checkboxes

Shubham Vora
Updated on 07-Dec-2022 10:14:03

4K+ Views

In this tutorial, we will learn to POST unchecked HTML checkboxes. To interact with a user, it is necessary to take their input or data through the website. The HTML forms are used to take input from the user. Forms are essential to take the data of the user on the website. These forms take input from the user and send data to the server using HTTP requests. There are two types of HTTP requests one is GET, and the other is POST. The POST request is the most used type because it is secure and can send a large ... Read More

How to include another HTML file in an HTML file?

Shubham Vora
Updated on 06-Sep-2023 21:51:46

51K+ Views

In this tutorial, we shall learn to include another HTML file in an HTML file. Various methods are available to include another HTML file in an HTML file. Let us quickly go through the techniques that have support on the web. Using JQuery load to include an HTML file In this section, we shall check how to use JQuery’s load method to include an HTML file. Users can follow the syntax below to use this method. Syntax $(wrapper).load(htmlfile); The wrapper appends the new HTML file that jQuery loads. Parameters wrapper − ID of the DOM element that includes ... Read More

How to add HTML and CSS to PDF?

Shubham Vora
Updated on 06-Dec-2022 11:39:20

8K+ Views

In this tutorial, we will learn how we can add HTML and CSS to PDF. The HTML and CSS construct the webpages with styles and designs. We can save that webpage as a PDF file. Creating a PDF from scratch using vanilla JavaScript makes it very difficult, and the code will be lengthy. There are many libraries created upon JavaScript that will helps us to execute our task. The libraries like html2pdf, jsPDF, etc. are well-known libraries that convert webpages into pdf. These libraries can be implemented in the project using the script we are adding to the program. So, ... Read More

The min-width and max-width declaration for Flexbox doesn't work on Safari? Why?

AmitDiwan
Updated on 24-Nov-2023 00:41:11

1K+ Views

To make the Flexbox work on all the web browsers, use the min-width and max-width equivalents of flex. For example, for this − min-width: 40%; max-width: 40%; Use the CSS Shorthand Property. It states flex-grow | flex-shrink | flex-basis as shown in the below syntax − flex: flex-grow flex-shrink flex-basis|auto; For the above, we can set the Flex as − flex: 0 0 40%; Let us now see a Flexbox example that works on all the web browsers. We have two divs inside our parent div parentBox − ... Read More

How to append to innerHTML without destroying descendants’ event listeners with JavaScript?

AmitDiwan
Updated on 06-Dec-2022 11:21:10

1K+ Views

Yes, it is possible to append to innerHTML without destroying descendants event listeners. Let us see an example. First, we will create two functions with JavaScript. Here’s the demoFunc() − function demoFunc() { alert("Hello"); } The function demoFunc() above will display an alert box and a message. With that, the start() function loads when you load the web page and displays “Two” with “One” in the div. Here’s the start() function. We have appended the text “One” from the div with the text “Two” using the innerHTML property − function start() { mydiv.innerHTML ... Read More

How to add images in select list in HTML?

AmitDiwan
Updated on 06-Dec-2022 11:07:47

11K+ Views

To add images in the select list, set the img text for the image in the tag, which is enclosed in a div − Python In the above div dropText, all the other select items is placed with the individual images. The dropText div is styled as. This also sets the background color of the select items i.e. skyblue − .dropText { display: none; position: absolute; background-color: skyblue; ... Read More

Advertisements