In a computer system, a port provides an interface to connect a peripheral device to the computer system. Thus, ports in the computer hardware are the jacks or sockets through which the peripheral devices are attached to the computer system. These ports are standardized for each purpose. There are several types of ports available in the computer system such as USB ports, Ethernet ports, display ports, serial ports, parallel ports, etc. Through these ports, we connect different hardware devices such as monitor, keyboard, mouse, etc. to the computer. Read through this article to find out more about Serial ... Read More
As we know that testing is the most important stage in the process of delivery of any application or software. Testing not only validates the quality of an application but also provides an opportunity to the developer to improve its product. Every application is being developed in some high or low level language which means some code has been written for its development so on the basis of execution of code written for the application there is classification of testing namely static testing and dynamic testing. In this article, we will discuss all the important differences between static ... Read More
This article will teach you how to add the value of the element in HTML. We have a basic idea about the value attribute in HTML and the situations where we use the value attribute Let’s look forward to a better understanding of the HTML value attribute. In HTML, the value property is used to describe the value of the element that it is used with. For various HTML components, it has a varied meaning. Usage− It can be put to use with the , , , , , , and , elements. − When the value attribute is ... Read More
In this article, we are going to learn about how do we set the type of element in HTML as we are familiar with type in HTML. For elements, the HTML type Attribute is used to define the type of button. The type of input to display is also specified using it in the element. The Internet Media Type is used for embed elements including link, object, script, source, and style. Let’s dive one by one into the examples. The type attribute can be used to the following elements Element Attribute type ... Read More
In this article we are going to learn about execute a script when there have been changes to the anchor part of the URL in HTML. The onhashchange attribute in HTML definition states that it activates once the anchor portion of the current URL has changed. The present URL's '#' sign introduces the anchor portion. A single value script for this attribute executes when the onhashchange event attribute is activated. This attribute only applies to the tag. Let’s dive into the following examples to understand more about executing a script when there have been changes to the anchor part ... Read More
The task we are going to perform in this article is execute a script before the document is printed in HTML. When a page is about to be printed, the HTML onbeforeprint attribute is used. And before the print dialogue box appears, the alert message is displayed. Together with the onafterprint attribute, the onbeforeprint attribute is utilised. This is a part of event attribute. Let’s dive into the following examples to understand more about to execute a script before the document is printed in HTML. Example 1 In the following examples we are using HTML onbeforeprint attribute. ... Read More
In this article, we are going to execute a script when the user pastes content into an element in HTML. When a user pastes content into an element, the onpaste event is triggered. Although all HTML elements accept the onpaste event, you cannot actually paste information into a element, unless the element has set contenteditable to "true." Most components with type="text" employ the onpaste event.Let’s dive into the following examples to get better understanding on executing a script when the user pastes some content in an element in HTML. Example 1 In the following examples we are using ... Read More
The task we are going to perform in this article is set the number of columns to span in HTML. When utilizing the element, this is accomplished by using the colspan attribute. As a result, a single table cell can now span multiple columns or cells in width. Let’s jump into the article to know more about colspan attribute. Colspan Attribute The number of columns that a cell should span in HTML is specified by the colspan attribute. It enables a single table cell to stretch across many columns or cells. It offers the same features as a ... Read More
In this article we are going to learn about is it possible to have an HTML canvas element in the background of my page. You might try adding a CSS style with a position: fixed (or absolute, if applicable) to the canvas so that any material that comes after it will sit on top of it. To get better understanding on is it possible to have an HTML canvas element in the background of my page, let’s look into the following examples… Example 1 In the following example we are using the position: absolute to apply CSS style to the ... Read More
The task we are going to perform in this article is about HTML5 canvas drawings like lines are looking blurry. We observe blurry effects because different device’s pixel ratios are varied. The browser or device using to view the canvas frequently affects how blurry the image is. The gadget Pixel Ratio of Window interface returns the proportion of the display device's physical pixels to its CSS pixels for resolution. This number can also be understood as the proportion of physical to CSS pixels, or the size of one pixel to another pixel. Let’s dive into the following examples to ... Read More