Advertisement
Guest User

Untitled

a guest
Jun 16th, 2016
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 14.19 KB | None | 0 0
  1. <html>
  2.     <head>
  3.         <title>Compiled Notes</title>
  4.         <link rel="stylesheet" type="text/css" href="HTML-Notes-CSS.css">
  5.     </head>
  6.         <body>
  7.         <h1 id="top"><b>Compiled Notes HTML/CSS</b></h1>
  8.             <div>
  9.                 <ul id="navigationbuttons">
  10.                     <li><a href="#semantic_markup">Semantic Markups</a></li>
  11.                     <li><a href="#lists">Lists</a></li>
  12.                     <li><a href="#links">Links</a></li>
  13.                     <li><a href="#images">Images</a></li>
  14.                     <li><a href="#tables">Tables</a></li>
  15.                     <li><a href="#forms">Forms</a></li>
  16.                 </ul>
  17.             </div>
  18.             <div>
  19.             <h1 id="structual_markup"> Structural Markups and Examples</h1>
  20.                 <h3> Bold < b ></h3>
  21.                     <p>This is how you make something <b>bold</b> just add < b ></p>
  22.                 <h3> Italics < i ></h3>
  23.                     <p>This is how make something in <i>italics</i> just add < i ></p>
  24.                 <h3> superscripts < sup ></h3>
  25.                     <p>This is how you make something have something like the 4<sup>th</sup> just add < sup ></p>
  26.                 <h3>Subscripts < sub ></h3></li>
  27.                     <p>This is how you make something like sup but instead it's sub CO<sub>2</sub> just add < sub > </p>
  28.                 <h3>Breaks < br /></h3>
  29.                     <p> The breaking of a paragraph can be weird <br /> But with this <br /> It's fairly simple <br /> Just add< br /> </p>
  30.                 <h3>Line Breaks < hr > </h3>
  31.                     <p> This is getting a little tricky, adding lines and all. </p>
  32.                 <hr/>
  33.                     <p> This isn't actually all that hard to do, just add < hr  > in the middle where you want the line.</p>
  34.             </div>     
  35.             <h1 id="semantic_markup"> Semantic Markups and Examples </h1>
  36.                 <h3>Strong < strong ></h3>
  37.                     <p>Having a <strong>strong</strong> item isn't too far off of having a bold. Just add < strong ></p>
  38.                 <h3>Emphasis < em ></h3>
  39.                     <p>Adding <em>emphasis</em> is just adding italics again. Just add < em > </p>
  40.                 <h3>Blockquotes < blockquote ></h3>
  41.                     <blockquote cite="https://en.wikipedia.org/wiki/Computer_programming">
  42.                         <p>Blockquotes have their own little solitude that they enjoy. Just add < blockquote ><br /> with the beginning but then close the < p > before you end the blockquote. Check out the source of this<br /> that's what is causing this indentation</p>
  43.                     </blockquote>
  44.                 <h3>Quotations < q ></h3>
  45.                     <p>The younger brother to blockquotes are just <q>adding quotations in reality</q> rather than the having a block of its own. Just add < q ></p>
  46.                 <h3>Abbreviations and Acronyms < abbr title = "" ></h3>
  47.                     <p>Abbreviations are shortened form of a word or phrase like; <abbr title="Proffesor">Prof</abbr> or <abbr title="Doctor">Doc.</abbr> Make sure to out the phrase between the abbreviation or acronym</p>
  48.                 <h3>Citations < cite ></h3>
  49.                     <p>If I wanted to cite a paper <cite>I Pencil</cite> by Leonard Read I would use < cite >.</p>
  50.                 <h3>Definitions < dfn ></h3>
  51.                     <p>If someone doesn't know what the definition of <dfn>mellifluous</dfn> I would use the < dfn > tag.</p>
  52.                 <h3>Addresses < address ></h3>
  53.                     <address>
  54.                         <p>If I wanted to someone to e-mail me at<a href="seancl10@yahoo.com"> seancl10@yahoo.com</a> I would use the < address > tag</p>
  55.                     </address>
  56.                 <h3>Insertion < ins > and Deletion < del ></h3>
  57.                     <p>To add or subtract a set of words you will either <del>delete</del> or <ins>add</ins> a word or set of words</p>
  58.                 <h3>Slashes < s ></h3>
  59.                     <p>To put a <s>slash</s> through something is rather simple, add < s ></p>
  60.             <h1 id="lists"> Lists and Examples</h1>
  61.                 <h3>Ordered lists < ol >, < li ></h3>
  62.                     <p>For me to add numbers of some sort I would have an ordered list</p>
  63.                     <ol>
  64.                         <li>Milk</li>
  65.                         <li>Eggs</li>
  66.                         <li>Waffle mix</li>
  67.                     </ol>
  68.             <h3>Unordered Lists < ul >, < li ></h3>
  69.                 <p>For me to add bullets or dots to something I would need to use unordered list</p>
  70.                     <ul>
  71.                         <li>Milk</li>
  72.                         <li>Eggs</li>
  73.                         <li>Waffle Mix</li>
  74.                     </ul>
  75.             <h3>Definition lists < dl >, < dt >, < dd ></h3>
  76.                 <p>For me to have a long list of my favorite words and define them, I would use a definition list.</p>
  77.                     <dl>
  78.                         <dt><b>Mellifluous</b></dt>
  79.                                 <dd>Musical or sweet sounding</dd>
  80.                         <dt><b>Argy-Bargy</b></dt>
  81.                                 <dd>A vigrous argument</dd>
  82.                         <dt><b>Ossify</b></dt>
  83.                                 <dd>To turn into bone</dd>
  84.                     </dl>
  85.             <h3>Nested Lists (same as unordered lists structurally)</h3>
  86.                 <p>In order to set up child bullet points you have to have a nested list, check sorce</p>
  87.                     <ul>
  88.                         <li>Mousses</li>
  89.                         <li>Pasteries</li>
  90.                             <ul>
  91.                                 <li>Croissant</li>
  92.                                 <li>Mille-feuille</li>
  93.                                 <li>Palmier</li>
  94.                             </ul>
  95.                         <li>Tarts</li>
  96.                         <li>Other misc. items</li>
  97.                     </ul>
  98.                     <h1 id="links"> Link Examples (If ID then # if Class then . (CSS))</h1>
  99.         <h3>Linking to other sites</h3>
  100.         <p> < a href="http://www.whateversiteyouwant.com" ></p>
  101.             <ul>
  102.                 <li><a href="http://www.youtube.com">Youtube</a></li>
  103.                 <li><a href="http://www.google.com">Gooogle</a></li>
  104.                 <li><a href="http://www.twitch.tv">Twitch</a></li>
  105.             </ul>
  106.         <h3>Links to the Same Page</h3>
  107.         <p>< a href="index.html" ></p>
  108.             <ul>
  109.                 <li><a href="index.html">Home</a></li>
  110.                 <li><a href="about-us.html">About</a></li>
  111.                 <li><a href="movies.html">Movies</a></li>
  112.                 <li><a href="contact.html">Contact</a></li>
  113.             </ul>
  114.         <h3>Email Links</h3>
  115.             < a href="mailto: seancl10@yahoo.com" >
  116.                 <p><a href="mailto: seancl10@yahoo.com">Email Sean</a></p>
  117.         <h3>Openinig Links in a New Window</h3>
  118.             <p>< a href="http://www.whateversiteyouwant.com" target="blank" ></p>
  119.                 <a href="http://www.imdb.com" target="blank">Internet Movie Database</a>(IMDB)
  120.     <h1 id="images">Images and Examples</h1>
  121.         <h3>Putting an Image In  < img src="whatever/image/you/want.jpg ></h3><br><br>
  122.         <img src="Images/colosseum.jpg" alt="The Colosseum or Coliseum also known as the Flavian Amphitheatre is an oval amphitheatre in the centre of the city of Rome." width="600" height="400" /><hr>
  123.         Let's say I wanted to put a picture between my text, I would just put the code right about <img src="Images/random image.jpg" alt="There's supposed to be an image here" width="100" height="100"> here<hr>
  124.         <img src="images/colosseum.jpg" /> <br>
  125.         <figcaption>The Colosseum or Coliseum also known as the Flavian Amphitheatre is an oval amphitheatre in the centre of the city of Rome.</figcaption>
  126.         <p>This caption above was accomplished by adding < figcaption ></p><br><br><br>
  127.     <h1 id="tables">Tables</h1>
  128.         <h3>Basic Tables < table > < tr > < td ></h3>
  129.             <table>
  130.                 <tr>
  131.                     <td>15</td>
  132.                     <td>30</td>
  133.                     <td>45</td>
  134.                 </tr>
  135.                 <tr>
  136.                     <td>60</td>
  137.                     <td>75</td>
  138.                     <td>90</td>
  139.                 </tr>
  140.                 <tr>
  141.                     <td>30</td>
  142.                     <td>15</td>
  143.                     <td>45</td>
  144.                 </tr>
  145.             </table>
  146.         <h3>Table Headings < table > < th > < th scope="col" > < th scope="row" ></h3>
  147.         <table>
  148.             <tr>
  149.                 <th></th>
  150.                 <th scope="col">Saturday</th>
  151.                 <th scope="col">Sunday</th>
  152.             </tr>
  153.             <tr>
  154.                 <th scope="row">Tickets Sold:</th>
  155.                 <td>150</td>
  156.                 <td>140</td>
  157.             </tr>
  158.             <tr>
  159.                 <th scope="row">Total Sales:</th>
  160.                 <td>$600</td>
  161.                 <td>$550</td>
  162.             </tr>
  163.         </table>
  164.         <h3>Spacing Columns < table > < tr > < th > < colspan="#" ></h3>
  165.         <table>
  166.             <tr>
  167.                 <th></th>
  168.                 <th>9am</th>
  169.                 <th>10am</th>
  170.                 <th>11am</th>
  171.                 <th>12pm</th>
  172.             </tr>
  173.             <tr>
  174.                 <th>Monday</th>
  175.                 <td colspan="2">Geography</td>
  176.                 <td>Math</td>
  177.                 <td>Art</td>
  178.             </tr>
  179.             <tr>
  180.                 <th>Tuesday</th>
  181.                 <td colspan="3">Gym</td>
  182.                 <td>Home Ec</td>
  183.             </tr>
  184.         </table>
  185.         <h3>Spanning Rows < table > < tr > < th > < rowspan="#"></h3>
  186.         <table>
  187.             <tr>
  188.                 <th></th>
  189.                 <th>ABC</th>
  190.                 <th>BBC</th>
  191.                 <th>CNN</th>
  192.             </tr>
  193.             <tr>
  194.                 <th>6pm - 7pm</th>
  195.                 <td rowspan="2">Movie</td>
  196.                 <td>Comedy</td>
  197.                 <td>News</td>
  198.             </tr>
  199.             <tr>
  200.                 <th>7pm - 8pm</th>
  201.                 <td>Sport</td>
  202.                 <td>Current Affairs</td>
  203.             </tr>
  204.         </table>
  205.         <h3>Long Tables < table > < thead > < tr > < tbody > < tr > < tfoot ></h3>
  206.         <table>
  207.             <thead>
  208.                 <tr>
  209.                     <th>Date</th>
  210.                     <th>Income</th>
  211.                     <th>Expenditure</th>
  212.                 </tr>
  213.             </thead>
  214.             <tbody>
  215.                 <tr>
  216.                     <th>1st January</th>
  217.                     <td>250</td>
  218.                     <td>36</td>
  219.                 </tr>
  220.                 <tr>
  221.                     <th>31st January</th>
  222.                     <td>129</td>
  223.                     <td>63</td>
  224.                 </tr>
  225.             </tbody>
  226.             <tfoot>
  227.                 <tr>
  228.                     <td></td>
  229.                     <td>379</td>
  230.                     <td>99</td>
  231.                 </tr>
  232.             </tfoot>
  233.         </table>
  234.         <h3>Width and Spacing < td width="#" >  cellpadding="#" >  Cellspacing="#"></h3>
  235.         <table width="400" cellpadding="10" cellspacing="5">
  236.             <tr>
  237.                 <th width="150"></th>
  238.                 <th>Withdrawn</th>
  239.                 <th>Credit</th>
  240.                 <th width="150">Balance</th>
  241.             </tr>
  242.             <tr>
  243.                 <th>January</th>
  244.                 <td>250.00</td>
  245.                 <td>660.50</td>
  246.                 <td>410.50</td>
  247.             </tr>
  248.             <tr>
  249.                 <th>February</th>
  250.                 <td>135.55</td>
  251.                 <td>895.20</td>
  252.                 <td>1170.15</td>
  253.             </tr>
  254.         </table>
  255.         <h3>Border and Background < border > < bgcolor="" > </h3>
  256.         <table border="2" bgcolor="#efefef">
  257.             <tr>
  258.                 <th width="150"></th>
  259.                 <th>Withdrawl</th>
  260.                 <th>Credit</th>
  261.                 <th width="150" bgcolor="#cccccc">Balance</th>
  262.             </tr>
  263.             <tr>
  264.                 <th>January</th>
  265.                 <td>250.00</td>
  266.                 <td>660.50</td>
  267.                 <td bgcolor="cccccc">410.50</td>
  268.             </tr>
  269.             <tr>
  270.                 <th>February</th>
  271.                 <td>135/55</td>
  272.                 <td>895.20</td>
  273.                 <td bgcolor="cccccc">1170.15</td>
  274.             </tr>
  275.         </table><br>
  276.     <h1 id="forms">Forms</h1>
  277.     <h3>Basic Form Structure</h3>
  278.         <form action="www.example.com/subsribe.php" method="get">
  279.             <p>< form action="www.example.com/subscribe.php"method="get"</p>
  280.         </form>
  281.         <h3>Text Input <... type="text" ></h3>
  282.         <form action="http://www.example.com/login.php">
  283.             <p>Username:
  284.                 <input type="text" name="username" size="15" maxlength="30" /></p>
  285.         </form>
  286.         <h3>Password Input</h3>
  287.         <form action="http://www.example.com/login.php">
  288.         <p>Username:
  289.             <input type="text" name="username" size="15" maxlength=" 30" /></p>
  290.             <p>Password:
  291.                 <input type="password" name="password" size="15" maxlength="30" /></p>
  292.             </form>
  293.         <h3>Text Area < textarea cols="#" rows="#"></h3>
  294.         <form action="http://www.example.com/comments.php">
  295.             <p>What did you think of this gig?</p>
  296.             <textarea name="comments" cols="20" rows="4">Enter your comments...</textarea>
  297.         </form>
  298.         <h3>Radio Button <... type="radio"</h3>
  299.         <form action="http://www.example.com/profile.php">
  300.             <p>Please select your favorite genre:
  301.                 <br>
  302.                 <input type="radio" name="genre" value="rock" checked="checked" />Rock
  303.                 <input type="radio" name="genre" value="pop" />Pop
  304.                 <input type="radio" name="genre" value="jazz" />Jazz
  305.             </p>
  306.         </form>
  307.         <h3>Checkbox <... type="checkbox" ></h3>
  308.         <form action="http://www.example.com/profile.php">
  309.             <p>Please select your favorite service(s)
  310.                 <br>
  311.                 <input type="checkbox" name="service" value="itunes" checked="unchecked" /> iTunes
  312.                 <input type="checkbox" name="service" value="Spotify" checked="unchecked" /> Spotify
  313.                 <input type="checkbox" name="service" value="lastfm" checked="unchecked" /> Last.fm
  314.             </p>
  315.         </form>
  316.         <h3>Drop Down List box < option value="..." /option></h3>
  317.         <form action="http://www.example.com/profile.php">
  318.             <p>What service do you listen to music on?</p>
  319.             <select name="devices">
  320.                 <option value="ipod">iPod</option>
  321.                 <option value="radio">Radio</option>
  322.                 <option value="computer">Computer</option>
  323.             </select>
  324.         </form>
  325.         <h3>Multiple Select Box <... multiple ></h3>
  326.         <form action="http://www.example.com/profile.php">
  327.             <p>Do you play any of the following instruments? (You can select more than one option by holding down control on a PC or command key on a Mac while selection different options.)</p>
  328.             <select name="instruments" size="4" multiple="multiple">
  329.                 <option value="guitar" selected="selected">Guitar</option>
  330.                 <option value="drums">Drums</option>
  331.                 <option value="keyboard" selected="selected">Keyboard</option>
  332.                 <option value="bass" value="bass">Bass</option>
  333.             </select>
  334.         </form>
  335.         <h3>File Input Box <... type="file"</h3>
  336.         <form action="http://www.example.com/upload.php" method="post">
  337.             <p>Upload your song in MP3 format:</p>
  338.             <input type="file" name="user-song"><br>
  339.             <input type="submit" value="upload">
  340.         </form>
  341.         <h3>Submit Button <... type="submit"</h3>
  342.         <form action="http://www.example.com/subscribe.php">
  343.             <p>Subscribe to our email list:</p>
  344.             <input type="text" name="email">
  345.             <input type="submit" name="subscribe" value="subscribed">
  346.         </form>
  347.         <h3>Image Button < type="image" src="images/location" size ></h3>
  348.         <form action="http://www.example.com/subscribe.php">
  349.             <p>Subscribe to our email list:</p>
  350.             <input type="text" name="email">
  351.             <input type="image" src="images/subscribe.jpg" width="100" height="20">
  352.         </form>
  353.         <h3>Button and Hidden Controls <... type="hidden"</h3>
  354.         <form action="http:www.example.com/add.php">
  355.             <button><img src="Images/Up-Arrow.jpg" alt="add" width="10" height="10">upload</button>
  356.             <input type="hidden" name="bookmark" value="lyrics">
  357.         </form>
  358.         <h3>Labeling Form Controls</h3>
  359.         <label>Age:<input type="text" name="age"></label>
  360.         <br>
  361.         Gender:
  362.         <input id="female" type="radio" name="gender" value="f">
  363.         <label for="female">Female</label>
  364.         <input id="male" type="radio" name="gender" value="m">
  365.         <label for="male">Male</label>
  366.         <h3>Grouping Form Elements</h3>
  367.         <FIELDSET>
  368.             <legend>Contact details</legend>
  369.             <label>Email:<br>
  370.             <input type="text" name="email"></label><br>
  371.             <label>Mobile:<br>
  372.             <input type="text" name="mobile"></label><br>
  373.             <label>Telephone:<br>
  374.             <input type="text" name="telephone"></label>
  375.         </FIELDSET>
  376.         <h3>HTML5 Form Validation < required="required" ></h3>
  377.         <form action="http://www.example.com/login/" method="post">
  378.             <lable for="username">Username</lable><br>
  379.             <input type="text" name="username" required="required"><br>
  380.             <lable for="password">Password</lable><br>
  381.             <input type="password" name="password" required="required"><br>
  382.             <input type="submit" value="submit">
  383.         </form>
  384.         <h3>HTML5: Date Input</h3>
  385.         <form action="http://www.example.com/bookings/" method="post">
  386.             <label for="depart">Departure date:</label>
  387.             <input type="date" name="depart">
  388.             <input type="submit" name="submit">
  389.         </form>
  390. <a href="#top">Top</a>
  391. <p id="verybottom"></p>
  392. </body>
  393. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement