60 lines
1.1 KiB
PHP
60 lines
1.1 KiB
PHP
<!-- Below is a header -->
|
|
<h1>This is a header!</h1>
|
|
|
|
<!-- Below is a header.
|
|
It is a very important header. -->
|
|
<h1> This is still a header! </h1>
|
|
|
|
<form action="submit.php" method="post">
|
|
<!-- Text input -->
|
|
<label>Text</label>
|
|
<input type="text" name="desc">
|
|
<br><br>
|
|
|
|
<!-- Textarea -->
|
|
<label>Textarea</label>
|
|
<textarea name="desc-2"></textarea>
|
|
<br><br>
|
|
|
|
<!-- Select -->
|
|
<label>Select</label>
|
|
<select name="food">
|
|
<option value="burger">Burger</option>
|
|
<option value="pizza">Pizza</option>
|
|
<option value="pie">Pie</option>
|
|
</select>
|
|
<br><br>
|
|
|
|
<!-- Checkbox -->
|
|
<label>Checkbox</label>
|
|
<input type="checkbox" value="purple">
|
|
<br><br>
|
|
|
|
<!-- Radio button -->
|
|
<label>Radio</label>
|
|
<input type="radio" value="yes">
|
|
<br><br>
|
|
|
|
<!-- Button -->
|
|
<button type="button" onclick="alert('Hello')">Alert</button>
|
|
<br><br>
|
|
|
|
<!-- Example -->
|
|
<label>Grade</label>
|
|
<input type="text" name="grade">
|
|
<br><br>
|
|
|
|
<button type="submit">Submit</button>
|
|
|
|
</form>
|
|
|
|
<?php
|
|
|
|
# PHP comment with hashtag.
|
|
// PHP comment with two slashes.
|
|
/*
|
|
Multi-line
|
|
PHP comment
|
|
*/
|
|
|