PWA (Progressive Web Application) Example
How to create my First Progressive Web Application (PWA)
STEP # 1: Create index.html Page
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>My Hello World Page</title>
<link rel="stylesheet" type="text/css" href="hello-world.css" media="all">
</head>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>My Hello World Page</title>
<link rel="stylesheet" type="text/css" href="hello-world.css" media="all">
</head>
<body>
<h1 class="vertical-container">Hello World</h1>
</body>
<h1 class="vertical-container">Hello World</h1>
</body>
</html>
STEP # 2: Create hello-world.css Style Sheet
body {
background-color: #FF9800;
color: black;
}
.vertical-container {
height: 300px;
display: -webkit-flex;
display: flex;
-webkit-align-items: center;
align-items: center;
-webkit-justify-content: center;
justify-content: center;
}
h1.vertical-container {
font-size: 275%;
}
0 Response to "PWA (Progressive Web Application) Example"
Post a Comment