
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 8591 Articles for Front End Technology

552 Views
To copy text to the clipboard, we will use the HTMLInputElement methods, select() and setSelectionRange(). With that, we have also used the document execCommand() method to copy. Create an Input Text We will create an input text. This will the text that we will copy to the clipboard Set a Button We will click this button to copy the clipboard text − Copy text You can also style the button accordingly − button { border: none; outline: none; background-color: rgb(191, 187, 255); ... Read More

2K+ Views
To clear an input field, first create an input filed. To clear, use the onfocus attribute. Let us see with two examples. Create an Input Field First, use the input type to create an input field in a form on a web page − Clear the Input Field on Focus To clear the input field, use the onfocus attribute. Clear an Input Field on Focus The following is the code to clear an input field on focus − Clearing an input field on focus example Click on the above field to clear its value Clear Input Fields Let us see an ... Read More

3K+ Views
A responsive inline form is a form in which all the elements are inline, aligned on the left, with the specific labels. To display the responsiveness i.e., when the web browser is resized, we have set the inline form to stack all the input fields on top of each other. This concept works on smaller screens. Let us see how to create a responsiveness inline form with CSS. Create a form To create a form, use the element. We have set two input fields and a button in our form − Email: ... Read More

5K+ Views
To create a responsive form with CSS, we will be using HTML form elements such as HTML input tag with type attribute and label. We will design the created form using CSS properties and make it responsive using media queries. We will be undersatanding stepwise process of creating responsive form with css. In this article, we are having form elements and our task is to create a responsive form with CSS. Steps To Create a Responsive Form We will be following below mentioned steps to create a responsive form. Creating Structure of Form Using ... Read More

1K+ Views
In a stacked form, the input fields, labels and buttons are stacked on top of each other. When the web page with a form is opened on different devices, then it stacks. A form is created on a web page using the element. Let us see how to create a stacked form with CSS. Create a form The form on a web page is created using the element. The input fields include input type text, password, and repeat password. With that, the signin and register buttons are also positioned − Email ... Read More

219 Views
A form that includes the details to subscribe to an email newsletter, includes the name and email-address input fields. With that, a checkbox to subscribe for the daily newsletter can also be created for the users. Also, a button to subscribe to the newsletter can also be seen. We will see here how to design an email newsletter form with HTML and CSS. Create a form and set the input fields A form is created using the . The name, email address, and checkbox fields are set in the form. Also, the submit button is also set inside the form ... Read More

740 Views
Following is the code to create a form with icons −Example Live Demo body { font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; } * { box-sizing: border-box; } h1 { text-align: center; } form { max-width: 500px; margin: auto; } .fieldContainer { display: flex; width: 100%; margin-bottom: 15px; } .icon { font-size: 30px; padding: 10px; background: rgb(11, 9, 116); color: white; min-width: 50px; text-align: center; } .field { font-size: 20px; width: 100%; padding: 10px; outline: none; } .field:focus { border: 2px solid dodgerblue; } .btn { font-size: 24px; background-color: rgb(20, 60, 170); color: white; padding: 15px 20px; border: none; cursor: pointer; width: 100%; opacity: 0.9; border-radius: 8px; } .btn:hover { opacity: 1; } Register Form Example Register OutputThis will produce the following output −

5K+ Views
To create a register form with CSS, we will be using HTML forms. A registration form includes name, email, password, contact and other type of information collected from a user. It consists of input fields, buttons and other form elements which can be easily created using form tag. In this article, we will be discussing and understanding the complete process of how to create a register form with CSS with stepwise explanation and complete example code. Steps to Create a Register Form with CSS We will be following below mentioned steps to create a register form with CSS. ... Read More

1K+ Views
On a login page, you must have seen login form enter the username and password to login. However, nowadays, social media buttons are also visible to login using Facebook, Twitter, Gmail, etc. We can easily design such forms using CSS. For that, you need to also set the social media icons. Let us see how to create a social media login form with CSS. Set the CDN for the social media icons To add the icons on our web page, we have used the Font Awesome Icons. Include it on a web page using the element − ... Read More

486 Views
Following is the code to create a contact form using CSS −Example Live Demo * {box-sizing: border-box;} body{ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } label{ font-size: 15px; } input[type=text],textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; margin-top: 6px; margin-bottom: 16px; } input[type=submit] { background-color: #4CAF50; color: white; padding: 12px 20px; border: none; border-radius: 4px; cursor: pointer; } input[type=submit]:hover { background-color: #45a049; } form { border-radius: 5px; background-color: #feffc6; padding: 20px; } Contact Form First Name Last Name Email Id Contact OutputThis will produce the following output −