mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-08-15 11:14:20 +02:00
Remove extra colons
This commit is contained in:
@@ -43,7 +43,7 @@ If you want to create multiples screens for a web page, one solution would be to
|
||||
|
||||
Another approach is have only one HTML file, and define multiple [HTML templates](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template) using the `<template>` element. A template is a reusable HTML block that is not displayed by the browser, and needs to be instantiated at runtime using JavaScript.
|
||||
|
||||
### Task:
|
||||
### Task
|
||||
|
||||
We'll create a bank app with two screens: the login page and the dashboard. First, let's add in the HTML body a placeholder element that we'll use to instantiate the different screens of our app:
|
||||
|
||||
|
@@ -43,7 +43,7 @@ The `<button>` element within a form is a bit special. If you do not specify its
|
||||
- `reset`: The button resets all the form controls to their initial values.
|
||||
- `button`: Do not assign a default behavior when the button is pressed. You can then assign custom actions to it using JavaScript.
|
||||
|
||||
### Task:
|
||||
### Task
|
||||
|
||||
Let's start by adding a form to the `login` template. We'll need a *username* field and a *Login* button.
|
||||
|
||||
|
@@ -35,7 +35,7 @@ When AJAX was first introduced, the only API available to fetch data asynchronou
|
||||
|
||||
> While all modern browsers supports the `Fetch API`, if you want your web application to work on legacy or old browsers it's always a good idea to check the [compatibility table on caniuse.com](https://caniuse.com/fetch) first.
|
||||
|
||||
### Task:
|
||||
### Task
|
||||
|
||||
In [the previous lesson](../2-forms/README.md) we implented the registration form to create an account. We'll now add code to login using an existing account, and fetch its data. Open the `app.js` file and add a new `login` function:
|
||||
|
||||
|
Reference in New Issue
Block a user