Found 2202 Articles for HTML

HTML width/height Attribute vs CSS width/height Property

Mohit Panchasara
Updated on 26-Jul-2023 12:40:47

488 Views

While developing web pages, many times, developers require to manage the size of different HTML elements such as image, div element, span element, etc. Developers can use the width and height CSS properties or HTML attributes to manipulate the dimensions of a particular element. In this tutorial, we will see the difference between the width/height HTML attribute and CSS properties. Width and Height HTML Attributes The width/height attributes in HTML are used for the presentation. It takes the width and height values in the ‘px’, ‘%’, etc. units but not in ‘rem’ units. Also, if we don’t define the unit ... Read More

How to prevent dragging of ghost image?

Mohit Panchasara
Updated on 26-Jul-2023 12:12:29

1K+ Views

By default, we can drag all the HTML elements by clicking on them. However, users should not be able to drag the non-draggable element. Otherwise, they can’t be able to differentiate between the draggable and non-draggable elements, as all elements are draggable. The images are also draggable on the web page. In this tutorial, we will learn various ways to prevent the dragging of ghost images. Example 1 (Dragging the Image) In this example, we added the image to the web page. Also, we set the dimensions for the image using the CSS. In the output, users can try to ... Read More

How to prevent browser to remember password in HTML?

Mohit Panchasara
Updated on 26-Jul-2023 12:10:36

1K+ Views

Have you ever observed that filling the form data on any web page suggests the previous input values? Now, the question is where the browser is finding that particular value? The browser stores the data in the cookie storage and fetches it from there. It also stores the login credentials in the cookie storage to suggest to users when they visit the login page again. It is a good practice to suggest data while filling out the contact form or any other form but not while filling out the login or sign form. Now, think about the scenario in which ... Read More

How to place Font Awesome icon to input field?

Mohit Panchasara
Updated on 26-Jul-2023 11:56:33

4K+ Views

In many cases, developers require to place an icon inside the text input or particular HTML element. For example, we are creating a form containing multiple inputs. If we put the icon related to the form input field inside the input, we can create a better UI and attractive design for the application. In this tutorial, we will use the font-awesome library to add the icon on the web page. Also, we will manipulate the CSS code to place the icon inside the input field. Syntax Users can follow the syntax below to place an icon inside the input field. ... Read More

How to perform a real time search and filter on a HTML table?

Mohit Panchasara
Updated on 26-Jul-2023 11:35:12

2K+ Views

When developers develop a real-time web application, they need to deal with a large amount of data. For example, we have listed 1000 product data in the table format on the web page. If users want to find any particular product from the table, they need to scan the whole table by scrolling through it, which is a very bad user experience. So, it is necessary to add a search functionality to the table to allow users to search for any specific data in the table. Here, we will learn to add search functionality to the table using JavaScript and ... Read More

How to make Vertical selects using jQuery Mobile?

Way2Class
Updated on 24-Jul-2023 15:56:07

172 Views

Jquery is a popular JavaScript library that is very useful to combine the fluent working of HTML and JavaScript. Jquery provides more features and efficiency to webpages, and this could be beneficial to build dynamic content for making required and useful website. Jquery comes integrated with some major systems like JS questions on StackOverflow and WordPress. Users of Jquery library get advantages when they use various JS functions. Jquery became famous among users because it provides short and clean syntax and in Jquery you can save a lot on development time. One of the main function of Jquery is its ... Read More

How to Move Image in HTML?

Way2Class
Updated on 24-Jul-2023 15:48:43

19K+ Views

An image can be included in a web page using the HTML img> tag. The tag has no ending tag, is empty, and simply includes attributes. A web page can have scrollable text or images from left to right or vice versa, or from top to bottom or vice versa, by using the HTML container tag "marquee" . The new HTML version, HTML 5.1, however, deprecates the use of this tag. We can also use simple html properties for the same. We will look on more ways to move the image using the CSS properties as well as various ... Read More

How to select all text in HTML text input when clicked using JavaScript?

Rohan Singh
Updated on 18-Jul-2023 18:28:25

7K+ Views

In web development, it is often necessary to provide users with an intuitive and convenient way to select all text within an HTML text input field when they click on it. This feature can greatly enhance user experience, especially when dealing with lengthy or pre−filled input fields. In this article, we will explore how to achieve this functionality using JavaScript. What does Selecting all text in HTML text input means? When a user clicks on an HTML text input field, we want the entire text within that field to be automatically selected, allowing the user to easily modify or ... Read More

How to Search the Parse Tree using BeautifulSoup?

Tapas Kumar Ghosh
Updated on 17-Jul-2023 17:30:05

237 Views

Finding the tag and the HTML tree's content indicates searching the parse tree using BeautifulSoup. There are other ways to accomplish this, but the find() and find_all() methods are the most popular for searching the parse tree. We can use BeautifulSoup to parse the HTML tree with the help of these techniques. One benefit of applying Beautiful Soup is that even when we are moving from another language, it is simple for beginners to learn. It provides excellent, thorough documentation that makes it easier for us to pick things up quickly. Syntax The following syntax is used in the examples ... Read More

How to design mobile touch slider using Swiper.js Plugin?

Aayush Mohan Sinha
Updated on 13-Jul-2023 17:23:48

609 Views

The widespread use of mobile gadgets has transformed the way we interact with online information, thus making it increasingly vital for web developers to devise mobile touch sliders that enable engaging and effortless user interaction. The Swiper.js Plugin is an influential and adaptable JavaScript library that empowers developers to devise mobile touch sliders that are not only aesthetically appealing but also extremely practical. By utilizing the expansive customization features presented by Swiper.js Plugin, developers can fashion sliders that are precisely aligned with the specific requisites of their web-based applications. The present document will expound on the systematic methodology for designing ... Read More

Advertisements