reading-notes

Reading notes for Code Fellows!


Project maintained by William-Moreno Hosted on GitHub Pages — Theme by mattgraham

Structuring webpages with HTML

Process

When designing a successful website several things must be considered:

Design

Several strategies exist for designing websites. One possible progression is:

HTML5 Layout Elements

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:

Extra Markup

Comments - 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"

Block & Inline Elements

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.

Block Element Examples

Block Element Examples

Back to Main