
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 2202 Articles for HTML

1K+ Views
When creating web pages, a common design practice is to center a background image in a div. There are several options available, and each one is useful in its area. A background image will be centered inside a div box in an article regardless of the screen size or the size of the div. Whenever the window is resized, the image in the background should remain exactly at the center. Center a Background Image Inside a div Here are some of the most effective methods to center a background image within a div. Using ... Read More

1K+ Views
In standard CSS positioning, relatively positioned elements occupy space within the normal document flow even after being offset by top, left, right, or bottom properties. This can create a gap in the layout where the element would have naturally sat, disrupting the alignment or layout of other elements around it. In this article we will position an element so that it appears relatively within the document but does not affect the design of surrounding elements, effectively making it "overlay" without creating extra space. Relatively Position an Element without It Taking Space Use a combination ... Read More

1K+ Views
In CSS, there are times when you want to stretch a child div out over its parent div, thanks to some specific characteristics of the given content. In CSS, this is usually counterproductive since a div that is larger than its parent is going to get clipped, but certain properties can be amended for it to work. Making Child div Wider than Parent div This can mainly be done in two ways, the use of the overflow property and the change of position properties. Step 1 - Use of Oveflow: This scenario wouldn’t be ... Read More

1K+ Views
In this article, we will style the label for the radio button which is currently selected. CSS also allows you to eliminate the default radio button and style the selected and unselected states of the labels. This will be accomplished with the help of the :checked pseudo class. Additionally adjacent sibling selectors will be used to achieve this effect. Styling the Selected Label of a Radio Button To begin with, we set the display property of the original circular radio button to none and it disappears from view. Next, we apply default styles to the label elements for unselected ... Read More

143 Views
To insert spaces/tabs in text using HTML and CSS, can be tricky as HTML generally doesn't recognize multiple spaces or tabs by default. If you add extra spaces in your code, they'll collapse into a single space when displayed in the browser. We will be understanding three different approaches to insert spaces in text. In this article we are having some text content, our task is to insert Spaces/Tabs in text using HTML and CSS. Approaches to Insert Spaces/Tabs in Text Using HTML Entities for Spaces Using CSS margin or ... Read More

1K+ Views
This article explains how to handle XML documents in PHP. XML (eXtensible Markup Language) is defined as a textual markup language designed for both people and computers. It is a format used for storing and moving data between applications. PHP simplexml_load_string() function provided by PHP allows us to parse XML strings with ease and this function will convert XML string into an object for us which can be examined in order to understand XML data. Usong PHP simplexml_load_string() Method PHP simplexml_load_string() function accepts an XML string and returns a SimpleXMLElement object, the object has properties and methods that will ... Read More

121 Views
In this article, we’ll learn how to create a box-shadow that appears only on the left and right sides of an element using CSS. Box shadows are popular for adding depth and dimension to web elements, but by default, shadows apply to all four sides. Here, we’ll explore a few simple methods to achieve shadows only on the sides. What is Box-Shadow in CSS? The box-shadow property in CSS adds shadow effects around an element. By adjusting values like offset, blur, and spread, you can control the size, direction, and intensity of the shadow. Key elements of a box-shadow ... Read More

2K+ Views
When designing web forms, aligning labels next to input fields can significantly improve readability and usability. This alignment enhances the form's visual structure, making it easier for users to fill out information. In this article, we’ll cover CSS techniques for aligning labels both to the right and left of their respective input fields. Aligning Labels with CSS Properties By using CSS properties like text-align, display, and margin, we can control the position and alignment of labels relative to input fields. In the examples below, we’ll show how to right-align and left-align elements next to input fields within a form. ... Read More

1K+ Views
Creating an animated clip with a slider using only HTML and CSS is a great way to display a series of images in a visually appealing and interactive way without using JavaScript in this tutorial, we'll walk you through the process of creating an animated clip effect using pure HTML and CSS, animations are displayed in a circular clip path and transition using the stylish radio buttons as bar controls slider. Project Setup You'll need to set up basic HTML and CSS to animate this image clip and make sure your images are ready and ... Read More

1K+ Views
When creating responsive images in web design, a common requirement is to make the image fill the entire container while preserving its aspect ratio. Traditionally, the background-size: cover; CSS property is used with background images to achieve this effect. However, for inline images (using the tag), there is a different approach using the object-fit property. This article will walk you through setting up this equivalent effect on an tag, along with a comparison between using an element and a background image. Approach Using object-fit: cover with Tags ... Read More