Skip to main content

HTML5 Interactive Forms with Code Display

HTML5 Interactive Forms with Code Display

HTML5 Interactive Forms with Code Display

1. Date Input

Code:

<label for="birthday">Birthday:</label>
<input type="date" id="birthday" name="birthday">

2. Range Input

Code:

<label for="volume">Volume:</label>
<input type="range" id="volume" name="volume" min="0" max="100" value="50">

3. Color Picker

Code:

<label for="color">Choose a color:</label>
<input type="color" id="color" name="color" value="#ff0000">

4. Email Input

Code:

<label for="email">Email:</label>
<input type="email" id="email" name="email" required>

5. Number Input

Code:

<label for="age">Age:</label>
<input type="number" id="age" name="age" min="18" max="100" required>

6. Telephone Input

Code:

<label for="phone">Phone Number:</label>
<input type="tel" id="phone" name="phone" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}" required>

7. URL Input

Code:

<label for="website">Website:</label>
<input type="url" id="website" name="website" placeholder="https://www.example.com" required>

8. File Upload

Code:

<label for="file">Choose a file:</label>
<input type="file" id="file" name="file" accept="image/*">

9. Checkbox and Radio Buttons

Choose a plan:

Code:

<label for="subscribe">Subscribe to newsletter:</label>
<input type="checkbox" id="subscribe" name="subscribe">

<fieldset>
    <legend>Choose a plan:</legend>
    <input type="radio" id="basic" name="plan" value="basic" checked>
    <label for="basic">Basic</label><br>
    <input type="radio" id="premium" name="plan" value="premium">
    <label for="premium">Premium</label>
</fieldset>

10. Search Input

Code:

<label for="search">Search:</label>
<input type="search" id="search" name="search" placeholder="Search...">

11. Time Input

Code:

<label for="appt">Select a time:</label>
<input type="time" id="appt" name="appt">

12. Textarea with Auto Resize

Code:

<label for="message">Message:</label>
<textarea id="message" name="message" rows="4" cols="50"></textarea>

13. Placeholder Text

Code:

<label for="username">Username:</label>
<input type="text" id="username" name="username" placeholder="Enter your username" required>

14. Multiple File Uploads

Code:

<label for="files">Choose multiple files:</label>
<input type="file" id="files" name="files" multiple>

15. Number Spinner

Code:

<label for="quantity">Quantity:</label>
<input type="number" id="quantity" name="quantity" min="1" max="10">

Comments

Popular posts from this blog

Resin Art: एक संपूर्ण और विस्तृत गाइड

परिचय Resin Art एक अनोखी और आकर्षक कला है, जिसमें epoxy resin और hardener का उपयोग किया जाता है। इसे सही अनुपात में मिलाकर अलग-अलग रंग, पिगमेंट, ग्लिटर और अन्य सजावटी तत्वों के साथ मिलाया जाता है, जिससे चमकदार और आकर्षक डिज़ाइन तैयार किए जाते हैं। यह गाइड आपको शुरुआत से लेकर एडवांस लेवल तक की सभी जरूरी जानकारी देगी। 1. Resin Art के लिए आवश्यक सामग्री इस कला को शुरू करने के लिए आपको निम्नलिखित सामग्री की आवश्यकता होगी: मुख्य सामग्री: ✔ Epoxy Resin और Hardener – रेज़िन को सख्त बनाने के लिए। ✔ Silicone Molds / Canvas / MDF Board – जिस पर डिज़ाइन बनाया जाएगा। ✔ Acrylic Colors / Resin Pigments – रंग जोड़ने के लिए। ✔ Mixing Cups & Wooden Sticks – मिक्सिंग के लिए। ✔ Heat Gun / Torch – एयर बबल्स हटाने के लिए। ✔ Gloves और Mask – सुरक्षा के लिए। ✔ Glitter, Stones, Gold Flakes – डेकोरेशन के लिए। ✔ Sandpaper & Polish – फिनिशिंग टच के लिए। 2. Resin Art की तैयारी कैसे करें? सुरक्षा उपाय: ✅ वेंटिलेटेड एरिया में काम करें – रेज़िन से निकलने वाली गैसों से बचने के लिए। ✅ ग्लव्स और मास्क प...

50 Viral Google Gemini Prompts for Beginners: Create Stunning AI Images

Artificial Intelligence is changing the way we create digital art. Google Gemini is one of the newest AI platforms that allows anyone to generate beautiful, creative images using just text prompts. Whether you want retro Bollywood portraits, toy-style figurines, or fantasy characters, Gemini makes it easy—even for beginners! In this guide, we’ll explain how beginners can start using Google Gemini and show 50 example prompts to create viral, eye-catching images. What is Google Gemini? Google Gemini is a multimodal AI tool that generates images from text descriptions. You simply type what you want to see, and Gemini creates a realistic, stylized, or artistic image based on your instructions. For example, you can type: "Convert my selfie into a 90s Bollywood actress in chiffon saree, soft golden glow, vintage cinematic filter" … and Gemini will produce a retro Bollywood-style portrait. No drawing skills are required—just imagination and descriptive text. How to Use Prompts ...

Business advertiser website in Angular with PHP that caters to different user roles, such as Admin, New User, and Registered User

 To create a business advertiser website in Angular with PHP that caters to different user roles, such as Admin, New User, and Registered User, you can follow these steps: 1. Set up the development environment:    - Install Node.js and npm for Angular.    - Install PHP and set up a local server like Apache or Nginx. 2. Create a new Angular project:    - Open a terminal or command prompt and run the following command:      ```      npx @angular/cli new business-advertiser-website      ``` 3. Navigate into the project directory:    ```    cd business-advertiser-website    ``` 4. Generate Angular components and services:    - Run the following commands to generate the necessary components and services:      ```      ng generate component home      ng generate component admin      ng generate component user  ...