Html intro

Preview:

DESCRIPTION

 

Citation preview

DEMYSTIFYINGHTML, CSS, PHP & OTHER CRAZY STUFF

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.

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

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.

A Peek Under the Hood Example

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.”

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.

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.

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)

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

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 />

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>

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

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>

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!

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?

What Does it Look Like?