Advertisement
gagan93

First Login Form (Websters,TSG)

Feb 15th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.13 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <!--
  3.     This declares the document type to be html,  optional but recommended -->
  4.     <html>
  5. <!--
  6.     Root tag of an HTML page, the entire html code and other html tags come here  -->
  7.     <head>
  8.     <!--
  9.     Head tag, we declare title tag, link tag and other tags here. There are many more tags inside head tag described here, http://www.w3schools.com/tags/tag_head.asp -->
  10.     <title>Login Page</title>
  11.     <!-- Title of the page -->
  12.     <link rel="stylesheet" type="text/css" href="a.css">
  13.     <!--
  14.     This is the link to CSS file, which contains the styling for this html page. We can also put the entire CSS code inside a special HTML tag known as style tag. Type "style" and press TAB to get complete tag [opening and closing tag] with attributes. For eg.
  15.  
  16.     <style type="text/css">
  17.     .main
  18.     {
  19.         /* properties for main div  */
  20.     }
  21.     .anotherDiv
  22.     {
  23.         /* properties              */
  24.     }
  25.     </style>
  26.  
  27.     We can link any no. of css files with a single HTML page. They are downloaded when a website is loaded, from top to bottom. So if you declare some properties for a particular element (div/span/input/etc) in two CSS files, the properties of the CSS file appearing lower in sequence override any similar property of a file apearing upper in a sequence
  28. -->
  29.  
  30. <link href='http://fonts.googleapis.com/css?family=Open+Sans'>
  31.     <!--
  32.     This line of code is used to include a "web font", which is nothing but a normal font refered from another website (google's website, here). This is similar to including a header file in C or including a package in Java, i.e. we will be 'using' this Font in CSS file
  33. -->
  34. </head>
  35. <body>
  36.     <!--
  37.     This tag contains those elements which are displayed on screen.
  38.     Notice the structure of HTML form carefully
  39. -->
  40. <div class="main">
  41.     <!--
  42.     "main" div. Holds the entire form and "Sign In" text
  43. -->
  44. <div class="upperPane">
  45. <img class="lockIcon"src="http://i62.tinypic.com/2j1pqmc.png">
  46.     <!-- "img" tag is used to include an image/icon in a HTML webpage. Here we either enter the path of image (For eg. lock.png) or we write the complete URL (if image is available online, like here the image was uploaded on tinypic) -->
  47.  
  48.     <span class="signin">Sign In</span>    
  49.             <!--A simple piece of text, but put inside span to style it
  50.         -->    
  51.     </div>
  52.     <!-- End of upper pane, main form starts now -->
  53.     <form class="lowerPane">
  54.  
  55.         <div class="email">E-mail address</div>
  56.         <!-- Another piece of text -->
  57.         <input type="text" class="textbox" placeholder="mail@address.com">
  58.         <!-- Input type with 3 attributes, explained in GeekWeek sessions -->
  59.  
  60.         <div class="pass">Password</div>
  61.         <input type="password" class="textbox" placeholder="&#8226;&#8226;&#8226;&#8226;&#8226;&#8226;&#8226;&#8226;&#8226;&#8226;&#8226;">
  62.             <!--
  63.             Dont panic, 8226 is just hashcode for "bullet" and hashcode in text is prefixed by "&#" to differentiate it from normal text.We did this because, by default we have '*' in password field, and we had to made it "bullet". You can google hashcodes for popular special characters like Copyright, etc-->
  64.             <input type="button" value="Sign In" class="submit">
  65.             <!-- Simple button -->
  66.         </form>
  67.     </div>
  68. </body>
  69. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement