Reading Notes
Visual Hierarchy most users do not read entire web pages. Using contrast can help focus a users attention.
Grouping and Similarity visually grouping items of related content through similar element styles
Navigation a good design allows users to better find and understand your content
HTML (Hypertext Markup Language) describes the structure of a webpage
HTML Elements *usually made up of two tags inside angle brackets <example></example>
Attributes provide more information and instruciton in a tag, consist of two parts: name and value seperated by “=”
<p lang="en-us">Paragraph in English</p>
lang
= name"en-us"
= attribute valueList of Tags
<body></body>
everything in this element is shown in the browser window<head></head>
contains information about the page<title></title>
title above the window tabView Source in browser allows you to see the code for the current page, this can be useful in figuring out how to achieve certain structures
HTML 5 introduced new tags that are more specific for the structure of the page
Common Structural Tags
<header>
used at the top of a page or the top of a section to hold the descriptive info for that section<footer>
at the bottom of a page to contain info like copyright or at the bottom of a section<nav>
used to contain the major navigational blocks<article>
used to contain any section that could potentially stand alone<aside>
when used nested inside an article it should convery secondary information like a quote, when outside of an article acts as container for info relating to the entire page<section>
element groups related content to gether<hgroup>
used to contain a title and subtitle within an element<figure>
used to contain any content that is referenced from a main article, the article should still make sense even if the figure is moved to another location<figurecaption>
provides a text caption of the figure<div>
contains related elements<a href="url">
allows whole sections to be treated as a link if nested insde the <a></a>
Older browsers may need to be updated or have extra JavaScript added to function properly.
## Read: 04 HTML & CSS Textbook Chapter 8
Doctypes tells the browser what kind of HTML it is using
<!DOCTYPE html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3org/TR/html14/loose.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?xml version="1.0" ?>
Comments in HTML
<!--Comment-->
allows coder to place notes in the code ignored by the computer
ID Attribute *every html element can have an id attribute used to individually name it.
<p id="idname">
Class Attribute *allows multiple elements to be given the same label
<p class="exampleclassname">
Block Elements will always appear to start on a new line
- <h1>
- <p>
- <ul>
- <li>
Inline Elements always appear to continue on the same line as their neighboring elements
- <a>
- <b>
- <em>
- <img>
Span acts like an inline equivalent of the <div>
tag.
<span class="classname">Text that is spanned</span>
IFrames short for inline frame, holds a seperate window within your window
<iframe width="desiredwidth" height="desiredheight" src="url"></iframe>
Meta provides information about your page
<head>
element<meta name="description" content="Descriptionofpage" />
<meta name="robots" content="noindex" />
*do not add to search results<meta name="robots" content="nofollow" />
add this page to search results but do not follow any linksEscape characters allow the coder to add characters to the page that would otherwise be operands in html
©
= copyright symbol