Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TOP HTML Elements Used
- COMMENT OUT
- <!-- you can use the [CMD /] hot key! -->
- <!--<!DOCTYPE html>-->
- <html>
- <head>
- <meta charset="utf-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <title>Title Here</title>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" type="text/css" media="screen" href="main.css" />
- <script src="main.js"></script>
- </head>
- <body>
- </body>
- </html>
- <ul>
- <li></li>
- <li></li>
- <li></li>
- <ul>
- <li></li>
- <li></li>
- <li></li>
- </ul>
- </ul>
- LINE BREAK
- <hr>
- example: ----------------------------------------------------
- and
- HTML5 Break
- <br>
- INSERT IMAGE
- <img src="path" alt="" width="" height="">
- ANCHOR TEXT
- <a href="path">TEXT HERe</a>
- or
- Wrap element in <a>Tage</a>
- example:
- <a href="PATH OF FILE (EX: TEST/INDEX.HTML)">
- <h1>TEXT HERE</h1><!--SPACE TO LOOK NEATER AND READABLE-->
- </a>
- INPUT FORMS===============
- Text input:
- to send form that does not display in [plain text] in url:
- <form method="POST"">
- </form>
- INPUT TEXT BOX:
- <form method="POST">
- First name: <input type="text" name="firstname"><br>
- Last name: <input type="text" name="lastname"><br>
- Email: <input type="email" name="email"required><br>
- Birthday: <input type="date" name="birthday"><br>
- <input type="submit" value="Register!">
- <input type="reset">
- </form>
- Password:
- <form method="POST">
- <input type="password" min="5">
- </form>
- Radio buttons:
- <form method="POST">
- <input type="Radio" name="gender" value="male">Male<br>
- <input type="Radio" name="gender" value="female">Female<br>
- <input type="Radio" name="gender" value="other">Other<br>
- <input type="submit" value="Register!">
- <input type="reset">
- </form>
- Checkboxes:
- <form method="POST">
- <input type="checkbox" name="cat"> cat<br>
- <input type="checkbox" name="dog"> dog<br>
- </form>
- Dropdown:
- <form method="POST"<!--Select options can be added like (multiple)-->
- <select name="cars">
- <option value="volvo" name="volvo">Volvo</option>
- <option value="Audi" name="audi">Audi</option>
- <option value="Chevy" name="chevy">Chevy</option>
- <option value="Mercedes" name="mercedes">Mercedes</option>
- </select>
- </form>
- Also there are multipple attributes with the <select></select> tag. Google them!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement