Tuesday, March 12, 2013

HTML Forms & HTML Structural Elements/Lesser Semantic Elements

Last week we worked more with the basic format for the wireframe/main design for our web page. This is what I came up with Thursday:

<!doctype html>
<html lang="en-US">
  <head>
     <meta charset="UTF-8">
     <title>My Website</title>
  </head>
  <body>
 <header> This is my header content
 
 </header>
 <nav> NAVIGATION: GPS-ENABLEDS 
 </nav>
 <section id="sidebar"> My Siderbar!!!!
   <!-- sidebar content goes in here -->
 </section>
 <section id="main"> SECTION NUMERO UNO
   <!-- main page content goes in here -->
 </section>

 <aside> Here's MY ASIDE
   <!-- aside content goes in here -->
 </aside>

 <footer> Contact info JBHANNAH
   <!-- footer content goes in here -->
 </footer>

</body>
</html>

<body>

The two main semantics elements is the line break <br/> should only be used to force line breaks where they are required, and never to apply more vertical spacing between paragraphs or such in a document. For a more proper format for a vertical line break, one would code that in CSS. The 2nd main semantic element is the horizontal break <hr/> which inserts into the document a line, which is described to represent a boundary between different sections of a document.  This helps appropriately format the layout for the webpage. 
Another thing we discussed was the basic frame which consisted of the header, footer, navigation, sidebars, and main content. The HTML for this is above and doesn't include much but the tags.  The other thing we discussed was HTML forms
  • number
  • range
  • date/time
  • color
  • search
  • datalist
  • tel
  • email
  • url                                                                                                                                                      The following forms are all used as tags and dictate exactly what they say. Other things discussed were the form element, action attribute, and method attribute. The action attribute tells the browser what page the form contents should be sent to when it is submitted. We also discussed the "Get" method and post method  and ID attributes.

No comments:

Post a Comment