Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Demonstrates a simple login form with username and password fields.
<!DOCTYPE html>
<html>
<head>
<title>Login Form</title>
<script>
function login() {
const user=document.getElementById('username').value;
const pass=document.getElementById('password').value;
alert('Username: '+user+' Password: '+pass);
}
</script>
</head>
<body>
<h1>Login</h1>
<input id='username' placeholder='Username'/><br/>
<input id='password' type='password' placeholder='Password'/><br/>
<button onclick='login()'>Login</button>
</body>
</html>Apache Cordova is an open-source mobile development framework that enables developers to build cross-platform mobile applications using HTML, CSS, and JavaScript. It wraps web applications into native containers to run on multiple mobile platforms.
Origin & Creator
Originally created by Nitobi in 2009 as PhoneGap, it was later donated to the Apache Software Foundation and renamed Cordova. The project standardized the approach for hybrid mobile app development.
Industrial Note
Perfect for rapid development of cross-platform mobile apps where leveraging existing web development skills is critical.