For example this simple HTML5 form https://demoqa.com/automation-practice-form
Click Submit, then driver.findElement(By.id("firstName")).getAttribute(
driver.findElement(By.id("firstName")).getAttribute(