A Pen by Akash Wamanrao Gudadhe on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Validation using css | |
elementName:invalid{ | |
//action to be performed | |
} | |
2. Validation using HTML5 pattern attribute | |
It uses regular expression | |
3. minlenght, maxlength parameter or using javascript setCustomValidity() method |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- :invalid demo in css --> | |
<html> | |
<head> | |
<title>Invalid Input</title> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
</head> | |
<body> | |
<form action="#"> | |
<input type="text" id="username" name="username" required> | |
<input type="submit" value="Submit"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Front End for Tic Tac Toe game--> | |
<html> | |
<head> | |
<title>Tic Tac Toe Board</title> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
</head> | |
<body> | |
<table> | |
<tr> | |
<td></td> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
FOR INSTALLING OFFICIAL MYSQL DRIVER | |
npm install mysql | |
*/ | |
var mysql = require('mysql'); | |
//For Configuration | |
var connection = mysql.createConnection({ | |
host: "localhost", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
DOWNLOAD OFFICIAL MONGODB DRIVER USING | |
npm install mongodb | |
*/ | |
var MongoClient = require('mongodb').MongoClient; | |
var url = "mongodb://localhost:27017"; | |
MongoClient.connect(url, function(err, db) { | |
if (err) throw err; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.android.akashgudadhe.dreamproject; | |
import java.util.ArrayList; | |
import com.android.akashgudadhe.dreamproject.MainClass; | |
import sun.applet.Main; | |
public class Pattern1 { | |
public static void displaySession2() | |
{ |
(This guide is meant for beginners. If you have solved 100+ problems and are looking for guidance on how to solve problems involving algorithms and data structures, this document is not for you.)
Competitive Programming is an interesting activity which mixes problem solving with programming. It is not only enjoyable but also very demanded in placements. Competitive programming will make you very good at writing efficient programs quickly.
NewerOlder