Using the base Element to Set a Destination for Form Data
<!DOCTYPE HTML>
<html>
<head>
<title>Example</title>
<base href="http://yourServer"/>
</head>
<body>
<form method="post" action="/form">
<input name="fave"/>
<button>Submit Vote</button>
</form>
</body>
</html>
The base element affects all relative URLs in an HTML document, not just the form element.
Home
HTML CSS Book
HTML
HTML CSS Book
HTML
form:
- <form> to get user input
- Using the base Element to Set a Destination for Form Data
- Configuring the HTTP method Attribute for Form element
- Configuring the Form Data Encoding
- Controlling Form Completion
- Specifying a Target for the Form Response
- Setting the Name of the Form
- Adding Labels to a Form
- Automatically Focusing on an input Element
- Disabling Individual input Elements
- Form Elements Outside the Form
Related: