Found 2202 Articles for HTML

What are the differences between MQTT and HTTP protocols?

Bhanu Priya
Updated on 17-Mar-2022 11:01:34

597 Views

Let us understand the concepts of Hypertext Transfer Protocol (HTTP) and MQ Telemetry Transport (MQTT) protocol before learning the differences between them.Hypertext Transfer Protocol (HTTP)The Hypertext Transfer Protocol, or HTTP, must be the most generally utilized Application layer convention on the planet today. It frames the premise of what a great many people comprehend the Internet to be—the World Wide Web.Its motivation is to give a lightweight convention to the recovery of Hypertext Markup Language (HTML) and different reports from Web locales all through the Internet. Each time you open a Web program to surf the Internet, you are utilizing ... Read More

Difference Between Cache and Cookies

AmitDiwan
Updated on 23-Apr-2021 06:48:33

1K+ Views

In this post, we will understand the difference between cache and cookies −CacheIt helps store the content of the website which is used frequently.The content of the website is stored in the browser.It expires manually.It consumes more space.Different types of cache are: Browser cache and proxy cache.It stores contents like HTML pages, images, JavaScript, CSS.It doesn’t send a response with a request.CookiesIt helps store the user’s choice.The contents of the cookie are stored in both the server and browser.It expires automatically.It consumes less space.Different types of cookies are: Transient cookies and persistent cookies.A cookie stores the contents such as browsing ... Read More

Difference Between HTML and CSS

AmitDiwan
Updated on 01-Nov-2023 15:45:41

848 Views

In this post, we will understand the difference between HTML and CSS HTML HTML refers to Hyper Text Markup Language. It helps create web pages and applications − It helps define structure of web page. It is a markup language. It helps create static pages as well. It helps display data. HyperText helps define link between multiple web pages. Markup Language helps define text document using tags, which gives a structure to the web page. It has less backup and support options. HTML can’t be used inside a CSS sheet. It helps annotate the text so that a system ... Read More

Difference Between GET and POST Method in HTML

AmitDiwan
Updated on 23-Mar-2021 07:30:17

4K+ Views

In this post, we will understand the difference between GET and POST methods in HTML.GET MethodThe parameters are placed inside the URL.Its main goal is to retrieve the data/documents present inside it.It has the ability to bookmark the results of the query.It is vulnerable, and not secure enough.This is because the data and credentials are present as plain text.It can be seen by anyone.The data constraint is that only ASCII characters are allowed.It can be up to 2000 characters only.It is also said to keep the length of the data to a minimum value.Data can be cached when GET method ... Read More

Difference Between Cellpadding and Cellspacing

Kiran Kumar Panigrahi
Updated on 20-Dec-2022 12:17:13

7K+ Views

In HTML, cellpadding and cellspacing are the two attributes used for formatting table cells. Both cellpadding and cellspacing are used to insert whitespaces in the table cells. The most basic difference between cellpadding and cellspacing is that the cellpadding is used to set the whitespace between cell edge and cell content, whereas cellspacing is used to set the whitespace between two cells.Read through this article to find out more about cellpadding and cellspacing and how they are different from each other. What is Cellpadding? In HTML table formatting, cellpadding is the attribute which is used to set the whitespace between ... Read More

Difference Between XML and HTML

AmitDiwan
Updated on 21-Dec-2021 07:38:09

814 Views

In this post, we will understand the difference between HTML and XML.HTMLIt refers to Hyper Text Markup Language.It helps create web pages and applications.It is a markup language.It helps create static pages as well.It helps display data.It doesn’t transport data.HyperText helps define link between multiple web pages.Markup Language helps define text document using tags, which gives a structure to the web page.It helps annotate the text so that a system can understand it and use it.It ignores minor errors.It is not case sensitive.There are specific number of tags in HTML.These tags are predefined.It doesn’t preserve white spaces.Closing tags are not ... Read More

Maintaining Aspect Ratios for HTML Videos with CSS

AmitDiwan
Updated on 26-Dec-2023 15:14:17

517 Views

By specifying padding of an element in percentage, we can maintain its Aspect Ratio. The aspect ratio is the ratio of image’s width to its height. The aspect ratio can also be maintained using the aspect-ratio property. Aspect ratio for videos with the padding-top property Use the padding-top property to set the aspect ratio of an element on a web page. Here is the CSS padding property − The padding-bottom specifies the bottom padding of an element. The padding-top specifies the top padding of an element. The padding-left specifies the left padding of an element. The padding-right specifies the ... Read More

HTML Tables with Fixed Header on Scroll in CSS

AmitDiwan
Updated on 23-Jul-2024 09:25:20

25K+ Views

We can create HTML tables with fixed header on scroll using CSS. It helps to increase readability as user doesn't have to scroll everytime to check the table header. In this article, we will learn and understand two different approaches for HTML tables with fixed header on scroll in CSS. We have a table inside a div element with class name as container. Our task is to fix HTML table header on scroll using CSS. Approaches for HTML Tables with Fixed Header on Scroll Here is a list of approaches for HTML tables with fixed header on scroll in CSS ... Read More

How to save HTML Tables data to CSV in Python

Kiran P
Updated on 10-Nov-2020 05:53:33

2K+ Views

Problem:One of the most challenging taks for a data sceintist is to collect the data. While the fact is, there is plenty of data available in the web it is just extracting the data through automation.Introduction..I wanted to extract the basic operations data which is embedded in HTML tables from https://www.tutorialspoint.com/python/python_basic_operators.htm.Hmmm, The data is scattered in many HTML tables, if there is only one HTML table obviously I can use Copy & Paste to .csv file.However, if there are more than 5 tables in a single page then obviously it is pain. Isn't it ?How to do it..1. I will ... Read More

How to simulate pressing enter in html text input with Selenium?

Debomita Bhattacharjee
Updated on 26-Oct-2020 07:33:51

776 Views

We can simulate pressing enter in the html text input box with Selenium webdriver. We shall take the help of sendKeys method and pass Keys.ENTER as an argument to the method. Besides, we can pass Keys.RETURN as an argument to the method to perform the same task.Also, we have to import org.openqa.selenium.Keys package to the code for using the Keys class. Let us press ENTER/RETURN after entering some text inside the below input box.ExampleCode Implementation with Keys.ENTER.import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.By; import org.openqa.selenium.Keys; public class PressEnter{    public static void main(String[] args) {       System.setProperty("webdriver.chrome.driver", ... Read More

Advertisements