Html CSS Myers Final

Total Page:16

File Type:pdf, Size:1020Kb

Html CSS Myers Final

Html_CSS_myers_final.doc

March 15, 2016 http://www.asmarterwaytolearn.com/htmlcss/index-of-exercises.html

I have completed reading the book. I stopped doing the exercises a some point before getting half way through the book. While I was doing the exercises I kept notes in Html_CSS_myers.doc. I am going to edit those notes to keep some parts similar to what I intend to type in for the rest of the book.

I will then review the rest of the book, adding some notes to this memo and typing and running css and html code to test my understanding of anything that I feel would be of value, especially if I have any questions about the possible results of particular code.

This final review and note taking is taking a lot of time. I have considered that I could put my notes on the web and be able to access them. However, there are already probably better notes on the web that are easily accessible ( see web_dev_general_resources_1.doc). However, I think it is a good exercise for me to do, so I will continue for now.

Installed “Brackets.io” code editor (Brackets.1.6.Extract.msi)

Tags : note use of /, not \,

Hello

Headings

….

, should have at least one, and only one,

headings

Can user
tags inside headings to set breaks/carriage returns


tags do not need
tags, can be used for single carriage return vs double for

Link to .css file: sample

CSS: p -> indicates font style for a paragraph: e.g.

p { font-family: Georgia, "Times New Roman", Times,serif; }

h1 { font-family:sans-serif; }

Above list four fonts, last is a “generic” font available on all systems (alt sans-serif )

Web safe fonts = high probability of being available on user’s computer. See http://abt.cm/O7bwre

Font-size: 2em; even in heading this is a multiple of the default text size for the containing element.

Font-size could also be in percentages, pixels or points. CSS Classes p.important { font-size: 1.5em; } in HTML to use a css class :

Default font size: normally 1em = default browser size. But this can be over-ridden by any container. The default size will be the last size to have over-ridden prior sizes.

Comments in CSS files /* this would be a comment */

Comments in HTML file

  • Sun
  • Moon

  1. Wash
  2. rinse
  3. repeat

Use css styles to format lists

CSS Selector : everything on the first line the precedes the { page 107

Examples:

p p.important { .important { p#important { #important {

combine selectors to create a new selector p h1 { This selector would only impact h1 headers inside a

section

div + p { impacts only the first paragraph following any

di#main > div { impacts only the first level within div with id of main

resource: http://www.w3schools.com/CSSref/trysel.asp

Tables: page 109

Row 1,column 1 Row 1, column 2
Row 2, column 1 Row 2, column 2

Headings a col Heading

Row Heading

Borders, Spanning rows and columns, spacing, Aligning text, background color,

Forms: input parts are called “controls” page 135

Use labels to (a) make item prompt (e.g. “Google” below) clickable, and read out-loud by reader.

last name:


How did you find us?

Friend

How would you describe our site?
Wondeful Brilliant

Your State:
>/fieldset>

Message"


will group controls and draw a box around them

Layout : Nested boxes: pg 169

Everything is inside something. This can be thought of as boxes inside boxes. The biggest box we can deal with is the one created by the tags. Whatever styles are set for an outer container, including he default ones not explicitly set by the creator of the page, are inherited by the boxes immediately inside it. This rule of inheritance continues in the nesting hierarchy. The default styles for the tags are set by the browser.

I discovered that centering an image requires using display: block;

div#main { width:60%; margin: 0 auto 0 auto; } img { display: block; margin-left: auto; margin-right: auto; }

Float: allows text to either side of an image In spite of what the books says, my text did not wrap with “float” until I put in the “display: block” setting;

img { display:block; float: right; }

Note: the book goes into some detail about the layout of a header. Options covered include putting a graphic in the header, having a non scrolling header, and have a header, or other element, in a fixed position. The fixed position required additional HTML code to keep one element from being on top of another.

Div#header { Position: fixed; top: 0; left 0; }

After about 30 minutes of working with it I was unable to get the combination of fixed header and scrolling text to work so that the the header did not overlay the text when it scrolled. I note that I have not noticed this being used in web pages. I don’t plan to spend any more time on it.

Navigation bars:

Pages 159 throgh 218 dealt with navigation bars. I will study this when I need it. The basic idea is to make the list of clickable items look like buttons, either horizontally or vertically listed.

Background Images: page 219

body#main { background-image: url(“images/emu.jpg”); }

The background-image style line can also be followed by “background-repeat: repeat-x; or “repeat-y, or if you want to repeat both x and y then leave the repeat out and an images small enough to be repeated will be repeated. If you don’t want a smaller background image to repeat put in

background-repeat: no-repeat;

IFRAMES:

An iframe permits inserting a window in a page such that another web page is displayed in that window.

This is supposed to put boppers.net in the middle of the page

Practice

This is some text to begin the page

The slow emu

This is supposed to put boppers.net in the middle of the page

Embedding videos page 225

This section deals with embedding youtube videos and vimeo videos.

Embedding Audio: page 231

The

Hail Blessed Morn"

Recommended publications