Tuesday, March 26, 2013

Menus & Nav and Validating HTML

Last week we went over Navigation and Navigating HTML 5. The <nav> should only be used for the main user navigation of a web page, not for advertising links down the bottom of the page, or for a secondary navigation relating to a small part of the page.

Also, using a list for menu items can better help organize and maintain proper structure of your page. An example would be:

<nav>
 <ul>
   <li><a href="about.html">About</a></li>
   <li><a href="news.html">News</a></li>
   <li><a href="contact.html">Contact</a></li>
 </ul>
</nav>
  
You can also nest the lists within the<nav> tag so it helps screen readers and helps differentiate the content. By using lists, one can create more functional and organized webpages.

Because technology is always advancing, it's helpful to validate your HTML.  Validation is your early-warning system about introducing bugs into your markup that can manifest in interesting and hard-to-determine ways. By validating, you can check to see if your website is compatible with updating browsers and for accessibility issues as well as a variety of other things. This is turn, allows you to have the best functioning website you could.

 

Tuesday, March 19, 2013

Spring Break Week

Went to Cali, had some fun. Caught a Lakers game, went to Universal Studios and went out with friends. Good times! Test Thursday!!

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.