Advertisement
Guest User

Untitled

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