Exécuter
❯
Exécuter le code
Ctrl+Alt+R
Sauvegarder le code
Ctrl+Alt+A
Changer d'orientation
Ctrl+Alt+O
Changer de thème
Ctrl+Alt+D
<!DOCTYPE html> <html> <body> <h1>L'attribut formtarget</h1> <form action="https://www.w3schools.com/action_page.php"> <label for="fname">Prénom :</label> <input type="text" id="fname" name="fname"><br><br> <label for="lname">Nom de famille :</label> <input type="text" id="lname" name="lname"><br><br> <input type="submit" value="Submit as normal"> <input type="submit" formtarget="_blank" value="Submit to a new window/tab"> </form> </body> </html>