• No results found

ART 379 Web Design. HTML, XHTML & CSS: Introduction, 1-2

N/A
N/A
Protected

Academic year: 2021

Share "ART 379 Web Design. HTML, XHTML & CSS: Introduction, 1-2"

Copied!
37
0
0

Loading.... (view fulltext now)

Full text

(1)

ART 379 Web Design

(2)

ART 379 Web Design

History:

90s browsers (netscape & internet explorer) only read their own specific set of html. made designing web pages difficult!

(3)

ART 379 Web Design

History:

90s browsers (netscape & internet explorer) only read their own specific set of html. made designing web pages difficult!

(this is why you would see disclaimers at the start of sites that said “best viewed in IE 3.0”)

W3C, the World Wide Web Consortium, pushed for standardization, first with HTML 3.2, then HTML 4 and CSS. (And now HTML 5 and CSS3!)

(4)

ART 379 Web Design

History:

90s browsers (netscape & internet explorer) only read their own specific set of html. made designing web pages difficult!

(this is why you would see disclaimers at the start of sites that said “best viewed in IE 3.0”)

W3C, the World Wide Web Consortium, pushed for standardization, first with HTML 3.2, then HTML 4 and CSS. (And now HTML 5 and CSS3!)

CSS (cascading style sheets) allows for rules to be applied to a whole site, not just to a single page. Any old formatting tags are now

(5)

ART 379 Web Design

XHTML: the mix of XML + HTML

XML is the W3Cs answer to creating a more flexible platform on

which to write pages. HTML alone doesn’t allow for easy expansion (new tags, etc).

(6)

ART 379 Web Design

XHTML: the mix of XML + HTML

XML is the W3Cs answer to creating a more flexible platform on

which to write pages. HTML alone doesn’t allow for easy expansion (new tags, etc).

Browsers aren’t all up to date with the new standards though, and in order for old sites to still be read, W3C rewrote HTML in XML. The combination = XHTML

(7)

ART 379 Web Design

XHTML: the mix of XML + HTML

XML is the W3Cs answer to creating a more flexible platform on

which to write pages. HTML alone doesn’t allow for easy expansion (new tags, etc).

Browsers aren’t all up to date with the new standards though, and in order for old sites to still be read, W3C rewrote HTML in XML. The combination = XHTML

XHTML is more strict. Remember your quotation marks. No capital letters. The standard for US accessibility regulations. Works best with the newest browsers.

(8)

ART 379 Web Design

How This Book Works:

(9)

ART 379 Web Design

Vocabulary

(10)

ART 379 Web Design

Vocabulary

Markup: information about the content of a site.

(11)

ART 379 Web Design

Vocabulary

Markup: information about the content of a site.

3 principle types: Elements, Attributes, & Values

(12)

ART 379 Web Design

Vocabulary

Markup: information about the content of a site.

3 principle types: Elements, Attributes, & Values

regular: surround text empty: no text content

(13)

ART 379 Web Design

Vocabulary

Markup: information about the content of a site.

3 principle types: Elements, Attributes, & Values

regular: surround text empty: no text content

definition of <em>ephemeral</em> <img src=”blueflax.jpg” />

opening tag

closing tag

(14)

3 principle types: Elements, Attributes, & Values

ART 379 Web Design

Vocabulary

Markup: information about the content of a site.

contain information about the data

(15)

3 principle types: Elements, Attributes, & Values

ART 379 Web Design

Vocabulary

Markup: information about the content of a site.

contain information about the data

located inside an element’s opening tag

<img src=”blueflax.jpg” width=”300” />

(16)

3 principle types: Elements, Attributes, & Values 3 principle types: Elements, Attributes, & Values

ART 379 Web Design

Vocabulary

Markup: information about the content of a site.

always in quotes numbers (pixels), percentages, lowercase predefined names

(17)

ART 379 Web Design

Identify the parts:

<link rel=”stylesheet” type=”text/css” media=”screen” href=”blueflax.css” />

(18)

ART 379 Web Design

Identify the parts:

Element

<link rel=”stylesheet” type=”text/css” media=”screen” href=”blueflax.css” />

(19)

ART 379 Web Design

Identify the parts:

Attribute

<link rel=”stylesheet” type=”text/css” media=”screen” href=”blueflax.css” />

(20)

ART 379 Web Design

Identify the parts:

Value

<link rel=”stylesheet” type=”text/css” media=”screen” href=”blueflax.css” />

(21)

ART 379 Web Design

Identify the parts:

Element Attribute

<link rel=”stylesheet” type=”text/css” media=”screen” href=”blueflax.css” />

(22)

ART 379 Web Design

Block vs. Inline

Elements can be block or inline.

Block: will begin on a new line on your site. Inline: will only affect text or other inline elements. Will not start on a new line.

(23)

ART 379 Web Design

Block vs. Inline

(24)

ART 379 Web Design

Parents and Children

If one element contains another, it is considered to be a parent of the enclosed, or child element.

Any elements contained in the child element are considered descendants of the parent element.

This differentiation will become much more important later, when you start using CSS to style your websites. For now, just be aware of the distinction.

(25)

ART 379 Web Design

Nesting

the most important thing to remember is to keep nested elements in the correct order:

(26)

ART 379 Web Design

Nesting

keep nested elements in the correct order:

<p>...of <em>ephemeral</em></p>

<p>...of <em>ephemeral</p></em>

(27)

ART 379 Web Design

Translations!

the default structure of a site is: in the order you write it!

(28)

ART 379 Web Design

Translations!

(29)

ART 379 Web Design

Links, Images, other non-text Content

you store this data elsewhere, and reference it in your XHTML.

(30)

ART 379 Web Design

Absolute vs. Relative URLs

there are two ways to reference a link: either from files you have uploaded yourself OR from a site elsewhere.

<img src=”www.flowers.com/blueflax.jpg” width=”300” /> the example above is an absolute link.

(31)

ART 379 Web Design

Absolute vs. Relative URLs

there are two ways to reference a link: either from files you have uploaded yourself OR from a site elsewhere.

<img src=”/blueflax.jpg” width=”300” /> the example above is a relative link.

(32)

ART 379 Web Design

Absolute vs. Relative URLs

there are two ways to reference a link: either from files you have uploaded yourself OR from a site elsewhere.

<img src=”/blueflax.jpg” width=”300” /> the example above is a relative link.

what does that mean?

what does the / mean in the code? why would you use this?

what would my code be if my images were in a folder named “images”?

(33)

ART 379 Web Design

Organizing Files

Organization is going to be key as your web site grows Create a folder on your desktop mywebsite

(34)

ART 379 Web Design

General Rules

•use only lowercase letters for the names of files and folders

•use the proper extension for each page: .html

•review that you have closed all open tags and “quotes”

when you find you have a problem.

(35)

ART 379 Web Design

Review:

How do you upload your html file to be viewed online? What must your homepage be named?

(36)

ART 379 Web Design

Quick Site!

(37)

ART 379 Web Design

Practice

Continue with the html basics on the W3 schools basics website. You can find the link on our tumblr site:

References

Related documents

■ AirWatch. This rapidly growing startup with 1,500 employees began life as a mobile device management vendor to help companies manage apps, data, and security on smartphones and

ELN enables researchers to capture, process, save, and search data in a completely digital, networked environment?. It facilitates access to commonly-used software programs

In this prospective study, the author aimed to test real-time in-plane ultrasound-guided supraclavicular subclavian vein cannulation technique during elective cardiac surgical

Personal precautions Wear protective clothing as described in Section 8 of this safety data

Your enrollment in IML’s Behavioral Life Coaching Certification Course comes with everything you will need to host your own DISC training event.. By charging only $57 per

Of particular relevance is the United States (U.S.) Department of Education’s response in the “Analysis of Comments and Changes” section of the federal regulations. The

difficile isolates in Korea, to characterize the ribotype 027 isolates, and to determine the clinical severity of CDI in patients infected with these isolates.. Methods: A total

The prototypes investigate the opportunities for a fashion designer to design for long life garments through scripting sustainable clothing use practices within the garment