17
DEMYSTIFYING HTML, CSS, PHP & OTHER CRAZY STUFF

Html intro

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Html intro

DEMYSTIFYINGHTML, CSS, PHP & OTHER CRAZY STUFF

Page 2: Html intro

Coding: Why Bother? Do I have to learn programming, too?

Not in a deep way. (Unless you plan a career change.)

What’s the benefit?You’ll likely run into some basic coding using a CMS. Understand the potential for the technology.

Page 3: Html intro

Alphabet Soup: Languages of the Web HTML – HyperText Markup Language CSS – Cascading Style Sheet

Used to format web pages: Fonts, sizes, color, positioning, etc.

Php – Hypertext PreProcessorScripting language that generates web pages on the fly.

jQuery – Code library. Makes it easy to create animated effects, slideshows, drop-down menus

Page 4: Html intro

Square One: What is a Web Site? A collection of files

stored on a computer called a web server. Text files Graphical files (.jpg

or .gif, for example) Files that contain

scripts that make programs run.

Page 5: Html intro

A Peek Under the Hood Example

Page 6: Html intro

How Does Your Blog Differ? It doesn’t really. It’s a type of web site.

Blogging software automatically generates web pages.

Blogging software = CMS It’s a “rapid production tool.”

Page 7: Html intro

A Typical Web Page

Can be created using any word processor.

It’s usually written using code called HTML or “hypertext markup language.”

It’s saved with the file extension “.html” or “.htm.

Page 8: Html intro

Example Open a browser and call up a web page

View Source

This coding contains instructions to the web browser on how to display the page.

Page 9: Html intro

How Web Sites Get Created Coding typed in by hand.

(Outmoded, but some purists do it!)

Graphical editorsDreamweaver, for one…

Content Management Systems(Proprietary, other, including Wordpress, Drupal)

Page 10: Html intro

Disclaimer Programs such as

Dreamweaver are not used to produce large sites!

We’re using it as a learning/editing tool.

Large-scale web production requires a Content Management System: CMS

Page 11: Html intro

A Word About HTML Tags HTML codes usually work in pairs.

Opening tag: <tag> Closing tag: </tag>

Example: <b>Then you add some text here.</b>

Note: Some tags are formatted this way: <br />

Page 12: Html intro

Paragraph Tag HTML does not recognize blank lines. You must format breaks with a tag:

<P> </P>for paragraph, <br /> for a single line break.

<html><head><title>My Homepage</head></title>

<body> <p> Hello world. This is my text for my page. Hello world. This is my text for my

page. Hello world. This is my text for my page. Hello world. This is my text for my page. </p>

Hello world. This is my text for my page. Hello world. This is my text for my page. <br />

Hello world. This is my text for my page.

</body> </html>

Page 13: Html intro

Bulleted Lists <ul> <li>Item One</li> <li>Item Two</li> <li>Item Three</li> </ul> Try this: change “ul” to “ol”

Page 14: Html intro

Links HTML is all about linking.

You click a link to get to another page/site.

Syntax for links:

<a href=“http://www.boston.com”>Click this!</a>

<a href=“page.html”>Click this!</a>

Page 15: Html intro

How Does This Work in Your Blog? Know Basic HTML tags to get “under the

hood” and fix stuff!

Beware of “cut and paste” from MS Word. Keep it clean!

Page 16: Html intro

CSS: Cascading Style Sheets

Used to define layout, formatting of web pages.

Applies changes across the entire site.

Used in addition to HTML.

Connection to Your Blog or Web Site?

Page 17: Html intro

What Does it Look Like?