Skip to the content.

Read: 01 - Introductory HTML and JavaScript

HTML & CSS - Jon Duckett

Chapter 1: Structure

Tags introduced * Headers h1-h6, p, body, html, title, footer

Atributes

“Attributes provide additional information about the contents of an element. They appear on the opening tag of the element and are made up of two parts: a name and a value, separated by an equals sign.” - Duckett

book example: no spaces in tags

<p lang=”en-us”>Paragraph in English /p>

Chapter 8: Extra Markup

Comments

<!– (text goes here) –>

It is good to use to keep track of steps while learning, like a written outline partnered with a wireframe.

Also good way to organize content if on group work, or seperate content by content as well.

ID Attribute

Example:

<p id=”attribute name”> Content that I want in this attribute. </p>

Class Attribute

Block Elements

Examples are h1, p, ul, li tags

Inline Elements

Examples are <a> <b> <em> <img>

Group Text & Elements In a Block

<div>

The div element allows you to group a set of elements together in one block-level box.

Advice given to use a html to state what the div is for.

Grouping Text & Elements Inline

<span>

Reasons for span per book: Direct Quotes

  1. Contain a section of text where there is no other suitable element to differentiate it from its surrounding text
  2. Contain a number of inline elements

The most common reason why people use <span> elements is so that they can control the appearance of the content of these elements using CSS. You will usually see that a class or id attribute is used with <span> elements:

●To explain the purpose of this <span> element

●So that CSS styles can be applied to elements that have specific values for these attributes

IFRAMES

<iframe>

“iframe is like a little window that has been cut into your page — and in that window you can see another page. The term iframe is an abbreviation of inline frame.”

Example Code Provided:

<iframe width=”450” height=”350” src=”https://maps.google.co.uk/maps?q=moma+new+york&output=embed”> </iframe>

Information About Your Pages

<meta>

“The <meta> element lives inside the <head> element and contains information about that web page. It is not visible to users but fulfills a number of purposes such as telling search engines about your page, who created it, and whether or not it is time sensitive. The <meta> element is an empty element so it does not have a closing tag. It uses attributes to carry the information.”

Escape Characters:

To write an element and attribute into your page so that the code is shown to the user rather than being processed by the browser you need to escape the angled brackets and quotation marks.

Example < is written as amperstand,lt; From https://www.htmlandcssbook.com/extras/html-escape-codes/

Chapter 17:

Chapter 18:

Javascript and JQuery - Jon Duckett

Intro

Chapter 1:

Things I want to know more about