Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
HTML target Attribute
The target attribute of the element specifies where to display the response received after submitting the form. It controls whether the form response opens in the same window, a new tab, a specific frame, or the parent window. Syntax Following is the syntax for the target attribute − Target Attribute Values The target attribute accepts the following predefined values − _blank − Opens the form response in a new window or tab. _self − Opens the form response in the same frame (default behavior). _parent − Opens the form ...
Read MoreHow do we use radio buttons in HTML forms?
Radio buttons in HTML forms allow users to select only one option from a group of choices. They are created using the tag with type="radio" and are ideal for mutually exclusive selections like gender, age group, or preferences. Syntax Following is the basic syntax for creating radio buttons in HTML − Label Text For proper accessibility and functionality, use labels with radio buttons − Label Text Radio Button Attributes The following table shows the key attributes used with radio buttons − Attribute Description ...
Read MoreHow to include an alternate text when the original element fails to display in HTML?
The alt attribute provides alternative text for images when they cannot be displayed due to loading issues, broken links, or slow connections. This attribute is essential for accessibility, helping screen readers describe images to visually impaired users, and improves SEO by providing context to search engines. Syntax Following is the syntax for the alt attribute − The alt attribute accepts a text string that describes the image content or function. Keep the description concise but meaningful. Basic Alt Attribute Usage Example Following example shows how to use the alt attribute ...
Read MoreWhat is the difference between SVG and HTML5 Canvas?
The SVG (Scalable Vector Graphics) and HTML5 Canvas are both technologies for creating graphics on web pages, but they work in fundamentally different ways. SVG is a vector-based markup language that uses XML to define graphics, while Canvas is a bitmap-based drawing surface that uses JavaScript for creating graphics programmatically. What is SVG? SVG stands for Scalable Vector Graphics and is an XML-based markup language for describing 2D graphics. SVG graphics are composed of shapes, paths, text, and other elements defined through XML tags. The browser renders these elements as vector graphics, making them infinitely scalable without quality ...
Read MoreImage button with HTML5
In HTML5, we can create image buttons that combine visual images with button functionality. An image button allows users to click on an image to submit forms or trigger JavaScript actions, providing a more visually appealing alternative to standard text buttons. What is an Image Button An image button is a clickable interface element that uses an image instead of text as the button's visual representation. When clicked, it can submit forms, trigger JavaScript functions, or navigate to different pages. There are two main approaches to create image buttons in HTML5 − Using − Creates ...
Read MoreHow do we set the alignment according to surrounding elements in HTML?
The align attribute was used in older HTML versions to set the alignment of elements according to their surrounding content. However, this attribute is deprecated in HTML5, and CSS should be used instead for modern web development. Note − The align attribute is deprecated in HTML5. Use CSS text-align, margin, or flexbox properties for alignment instead. Legacy Align Attribute Syntax The deprecated align attribute had the following syntax − Content Where value could be: left − Aligns content to the left right − Aligns content to the right center − Centers ...
Read MoreConvert HTML5 into standalone Android App
Converting an HTML5 application into a standalone Android app allows you to distribute your web-based content through the Google Play Store. This process involves creating a WebView-based Android application that loads and displays your HTML5 content locally. A WebView acts as a browser component within your Android app, providing the ability to display web content without requiring an internet connection when files are stored locally. Prerequisites Before starting the conversion process, ensure you have the following − Android Studio − The official IDE for Android development HTML5 files − Your complete web application including HTML, ...
Read MoreHTML target Attribute
The target attribute of the element specifies where to open the linked document when a clickable area within an image map is activated. It determines whether the link opens in the current window, a new window, or a specific frame. Syntax Following is the syntax for the target attribute − Target Attribute Values The target attribute accepts the following values − _blank − Opens the linked document in a new window or tab. _self − Opens the linked document in the same frame or window (default ...
Read MoreHow do we take password input in HTML forms?
We use the tag with the type="password" attribute to create password input fields in HTML forms. This input type automatically masks the characters with dots or asterisks as the user types, providing basic visual security for sensitive information. Syntax Following is the basic syntax for creating a password input field − The password input can also include additional attributes − Basic Password Input Example Following example demonstrates a simple login form with username and password fields − ...
Read MoreHow to specify where to send the form-data when a form is submitted in HTML?
The action attribute in HTML forms specifies where to send the form data when the form is submitted. This attribute defines the destination URL, file path, or email address that will process the submitted form data. Syntax Following is the syntax for the action attribute − Where destination can be a URL, file path, or email address, and method_type is typically GET or POST. Common Action Attribute Values The action attribute accepts different types of destinations − Server URL − Points to a server-side ...
Read More