Reading notes for Code Fellows!
When designing a successful website several things must be considered:
Several strategies exist for designing websites. One possible progression is:
Prior to HTML5, web page authors mostly used <div>
elements when creating all of the different sections of web page. HTML5 brings semantic tags into use which indicate the kind of content you will find in them. These work better with readers as well. Examples of these are:
<header>
- header of either the page , or sometimes articles or sections within<footer>
- footer of either the page , or sometimes articles or sections within<nav>
- navigation<article>
- a section of the page that could stand alone<aside>
- contains content related to the entire page<section>
- groups related content togetherComments - Used to add a comment to your code that will not display in the browser. <!-- comment-->
ID Attribute - Every HTML element can carry an id attribute to uniquely identify it. The value should start with a letter or underscore and must be unique. Added to the opening tag. id="value"
Class Attribute - Every HTML element can carry an class attribute to identify it, often as part of a group of elements. Several elements can carry the same class attribute. Added to the opening tag. class="value"
Some elements will always appear in blocks and others will appear “inline”. There are also ways to group text and elements in a manner to appear either as blocks or inline.
<h1>
<p>
<ul>
<li>
<div>
element allows the grouping of a set of elements together into one block-level box.<a>
<b>
<em>
<img>
<span>
element is the inline equivalent of the <div>
.