G N I M M A R G O R P By Wyatt and Sam B E W - - PowerPoint PPT Presentation

g n i m m a r g o r p
SMART_READER_LITE
LIVE PREVIEW

G N I M M A R G O R P By Wyatt and Sam B E W - - PowerPoint PPT Presentation

G N I M M A R G O R P By Wyatt and Sam B E W BACKGROUND INFO: You can write any of this code on your own computer! As long as you save a file with the extension .html, you can open it with a web browser and it will show up


slide-1
SLIDE 1

W E B P R O G R A M M I N G

By Wyatt and Sam

slide-2
SLIDE 2

BACKGROUND INFO: ➢You can write any of this code on your

  • wn computer!

➢As long as you save a file with the extension .html, you can open it with a web browser and it will show up exactly how I've demoed it here.

slide-3
SLIDE 3

WHAT IS HTML?

  • HTML is a language for formatting documents.
  • It's made up of elements called "tags", which are just special words

enclosed in angle brackets.

  • Tags give formatting to everything enclosed within them. For instance,

the tag with the letter "p" inside means "everything here is a paragraph" and the letter "i" means "everything here is italic."

  • You "open" a tag by writing out the name of the tag like this: "<p>"
  • You "close" a tag by writing it out like this: "<0p>"
  • You can nest tags inside one another.
slide-4
SLIDE 4

WHAT IS HTML?

  • HTML is a language for formatting documents.
  • It's made up of elements called "tags", which are just special words

enclosed in angle brackets.

  • Tags give formatting to everything enclosed within them. For instance,

the tag with the letter "p" inside means "everything here is a paragraph" and the letter "i" means "everything here is italic."

  • You "open" a tag by writing out the name of the tag like this: "<p>"
  • You "close" a tag by writing it out like this: "<0p>"
  • You can nest tags inside one another.

<p> This is a paragraph, and <i>this is in italics<0i> but this is not. <0p>

slide-5
SLIDE 5

WHAT IS HTML?

  • HTML is a language for formatting documents.
  • It's made up of elements called "tags", which are just special words

enclosed in angle brackets.

  • Tags give formatting to everything enclosed within them. For instance,

the tag with the letter "p" inside means "everything here is a paragraph" and the letter "i" means "everything here is italic."

  • You "open" a tag by writing out the name of the tag like this: "<p>"
  • You "close" a tag by writing it out like this: "<0p>"
  • You can nest tags inside one another.

<p> This is a paragraph, and <i>this is in italics<0i> but this is not. <0p>

slide-6
SLIDE 6

WHAT IS HTML?

  • HTML is a language for formatting documents.
  • It's made up of elements called "tags", which are just special words

enclosed in angle brackets.

  • Tags give formatting to everything enclosed within them. For instance,

the tag with the letter "p" inside means "everything here is a paragraph" and the letter "i" means "everything here is italic."

  • You "open" a tag by writing out the name of the tag like this: "<p>"
  • You "close" a tag by writing it out like this: "<0p>"
  • You can nest tags inside one another.

This is a paragraph, and this is in italics but this is not. <p> This is a paragraph, and <i>this is in italics<0i> but this is not. <0p>

slide-7
SLIDE 7

A SIMPLE PAGE

This is an example of a simple webpage written in HTML:

<!DOCTYPE html> <html> <head> <title> Simple Webpage <0title> <0head> <body> <h1>This is the page header<0h1> <p>This is the body text in the webpage.<0p> <0body> <0html>

slide-8
SLIDE 8

A SIMPLE PAGE

This is an example of a simple webpage written in HTML:

<!DOCTYPE html> <html> <head> <title> Simple Webpage <0title> <0head> <body> <h1>This is the page header<0h1> <p>This is the body text in the webpage.<0p> <0body> <0html>

This lets the browser know that our document is written in HTML.

slide-9
SLIDE 9

A SIMPLE PAGE

This is an example of a simple webpage written in HTML:

<!DOCTYPE html> <html> <head> <title> Simple Webpage <0title> <0head> <body> <h1>This is the page header<0h1> <p>This is the body text in the webpage.<0p> <0body> <0html>

This tag says "hey, I'm an HTML document!" It always opens the page. This lets the browser know that our document is written in HTML.

slide-10
SLIDE 10

A SIMPLE PAGE

This is an example of a simple webpage written in HTML:

<!DOCTYPE html> <html> <head> <title> Simple Webpage <0title> <0head> <body> <h1>This is the page header<0h1> <p>This is the body text in the webpage.<0p> <0body> <0html>

This tag says "hey, I'm an HTML document!" It always opens the page. This lets the browser know that our document is written in HTML. This tag contains the page title, and sometimes other information for the browser.

slide-11
SLIDE 11

A SIMPLE PAGE

This is an example of a simple webpage written in HTML:

<!DOCTYPE html> <html> <head> <title> Simple Webpage <0title> <0head> <body> <h1>This is the page header<0h1> <p>This is the body text in the webpage.<0p> <0body> <0html>

This tag says "hey, I'm an HTML document!" It always opens the page. This lets the browser know that our document is written in HTML. This tag contains the page title, and sometimes other information for the browser. The title tag determine what shows up on the tab bar in your browser.

slide-12
SLIDE 12

A SIMPLE PAGE

This is an example of a simple webpage written in HTML:

<!DOCTYPE html> <html> <head> <title> Simple Webpage <0title> <0head> <body> <h1>This is the page header<0h1> <p>This is the body text in the webpage.<0p> <0body> <0html>

This tag says "hey, I'm an HTML document!" It always opens the page. This lets the browser know that our document is written in HTML. This tag contains the page title, and sometimes other information for the browser. The title tag determine what shows up on the tab bar in your browser. All of the other content in your webpage is inside of the body tags.

slide-13
SLIDE 13

A SIMPLE PAGE

This is an example of a simple webpage written in HTML:

<!DOCTYPE html> <html> <head> <title> Simple Webpage <0title> <0head> <body> <h1>This is the page header<0h1> <p>This is the body text in the webpage.<0p> <0body> <0html>

This tag says "hey, I'm an HTML document!" It always opens the page. This lets the browser know that our document is written in HTML. This tag contains the page title, and sometimes other information for the browser. The title tag determine what shows up on the tab bar in your browser. All of the other content in your webpage is inside of the body tags. H1 is the largest size of title.

slide-14
SLIDE 14

A SIMPLE PAGE

This is an example of a simple webpage written in HTML:

<!DOCTYPE html> <html> <head> <title> Simple Webpage <0title> <0head> <body> <h1>This is the page header<0h1> <p>This is the body text in the webpage.<0p> <0body> <0html>

This tag says "hey, I'm an HTML document!" It always opens the page. This lets the browser know that our document is written in HTML. This tag contains the page title, and sometimes other information for the browser. The title tag determine what shows up on the tab bar in your browser. All of the other content in your webpage is inside of the body tags. H1 is the largest size of title. P is paragraph.

slide-15
SLIDE 15

A SIMPLE PAGE

This is an example of a simple webpage written in HTML:

<!DOCTYPE html> <html> <head> <title> Simple Webpage <0title> <0head> <body> <h1>This is the page header<0h1> <p>This is the body text in the webpage.<0p> <0body> <0html>

This tag says "hey, I'm an HTML document!" It always opens the page. This lets the browser know that our document is written in HTML. This tag contains the page title, and sometimes other information for the browser. The title tag determine what shows up on the tab bar in your browser. All of the other content in your webpage is inside of the body tags. H1 is the largest size of title. P is paragraph. Remember to close all your tags at the end! (HTML is actually pretty forgiving if you forget, but it's good style to do so).

slide-16
SLIDE 16

This page shows up like this in a browser :

<!DOCTYPE html> <html>

<head> <title> Simple Webpage <0title> <0head> <body> <h1>This is the page header<0h1> <p>This is the body text in the webpage.<0p> <0body>

<0html>

slide-17
SLIDE 17

This page shows up like this in a browser :

<!DOCTYPE html> <html>

<head> <title> Simple Webpage <0title> <0head> <body> <h1>This is the page header<0h1> <p>This is the body text in the webpage.<0p> <0body>

<0html>

slide-18
SLIDE 18

This page shows up like this in a browser :

<!DOCTYPE html> <html>

<head> <title> Simple Webpage <0title> <0head> <body> <h1>This is the page header<0h1> <p>This is the body text in the webpage.<0p> <0body>

<0html>

slide-19
SLIDE 19

This page shows up like this in a browser :

<!DOCTYPE html> <html>

<head> <title> Simple Webpage <0title> <0head> <body> <h1>This is the page header<0h1> <p>This is the body text in the webpage.<0p> <0body>

<0html>

slide-20
SLIDE 20

➢ To change the color of something, you can customize certain "attributes" of HTML tags. This is additional information that you type into the opening tag. ➢ You set the color of an element (as well as other styles) using the style attribute. ➢ For example, to create blue text:

<p style="color: blue;">This is blue text<0p>

And that shows up like this:

COLORS

slide-21
SLIDE 21

EMBEDDING STUFF

Let’s say that you want to embed a picture in your website. What do you do? It’s actually very simple. It only requires very little code, and you don’t even need a closing tag! Simply type this code: <img src=“http:/0wwx.example.com/image.gif” /?

slide-22
SLIDE 22

EMBEDDING STUFF

Let’s say that you want to embed a picture in your website. What do you do? It’s actually very simple. It only requires very little code, and you don’t even need a closing tag! Simply type this code: <img src=“http:/0wwx.example.com/image.gif” /? Image tag and source attribute

slide-23
SLIDE 23

EMBEDDING STUFF

Let’s say that you want to embed a picture in your website. What do you do? It’s actually very simple. It only requires very little code, and you don’t even need a closing tag! Simply type this code: <img src=“http:/0wwx.example.com/image.gif” /? Image tag and source attribute Webpage address

slide-24
SLIDE 24

EMBEDDING STUFF

Let’s say that you want to embed a picture in your website. What do you do? It’s actually very simple. It only requires very little code, and you don’t even need a closing tag! Simply type this code: <img src=“http:/0wwx.example.com/image.gif” /? Image tag and source attribute This file must be a picture file- .jpg, .gif, etc. Not .htm, .html, etc. Webpage address

slide-25
SLIDE 25

EMBEDDING STUFF

Let’s say that you want to embed a picture in your website. What do you do? It’s actually very simple. It only requires very little code, and you don’t even need a closing tag! Simply type this code: <img src=“http:/0wwx.example.com/image.gif” /? Image tag and source attribute This file must be a picture file- .jpg, .gif, etc. Not .htm, .html, etc. Webpage address

To define the height and width of an image, we'll use style again!

<img src=“http:/0wwx.example.com/image.gif” style="width: 100px; height: 100px;" /?

slide-26
SLIDE 26

EMBEDDING STUFF

Let’s say that you want to embed a picture in your website. What do you do? It’s actually very simple. It only requires very little code, and you don’t even need a closing tag! Simply type this code: <img src=“http:/0wwx.example.com/image.gif” /? Image tag and source attribute This file must be a picture file- .jpg, .gif, etc. Not .htm, .html, etc. Webpage address

To define the height and width of an image, we'll use style again!

<img src=“http:/0wwx.example.com/image.gif” style="width: 100px; height: 100px;" /?

"px" is a unit of measurement that computers use. 1 px = 1 pixel

  • n your screen.
slide-27
SLIDE 27

CHANGING FONTS ☺

slide-28
SLIDE 28

CHANGING FONTS ☺

style to the rescue again!

slide-29
SLIDE 29

CHANGING FONTS ☺

style to the rescue again! To change font, add font-family to your style attribute:

slide-30
SLIDE 30

CHANGING FONTS ☺

style to the rescue again! To change font, add font-family to your style attribute:

<p style="font-family: 'Arial';">Text in Arial<0p>

slide-31
SLIDE 31

CHANGING FONTS ☺

style to the rescue again! To change font, add font-family to your style attribute:

<p style="font-family: 'Arial';">Text in Arial<0p> Notice that the font name is in single quotes, so it doesn't conflict with the double quotes of the style attribute.

slide-32
SLIDE 32

MORE ON STYLE

You can combine style attributes to create tags styled however you want! Suppose you want a centered paragraph, with blue text, 24 pixels tall, and in Comic Sans: <p style="font-family: 'Comic Sans MS'; text-align: center; color: blue; font-size: 24px;">Look at me!<0p>

slide-33
SLIDE 33

MORE ON STYLE

You can combine style attributes to create tags styled however you want! Suppose you want a centered paragraph, with blue text, 24 pixels tall, and in Comic Sans: <p style="font-family: 'Comic Sans MS'; text-align: center; color: blue; font-size: 24px;">Look at me!<0p>

slide-34
SLIDE 34

AN INFINITE ASSORTMENT OF TAGS

slide-35
SLIDE 35

AN INFINITE ASSORTMENT OF TAGS

Included in HTML are a myriad of different tags. Some examples are:

slide-36
SLIDE 36

AN INFINITE ASSORTMENT OF TAGS

Included in HTML are a myriad of different tags. Some examples are:

<a href=http:/0wwx.google.com”>Link to Google!<0a> - This tag creates a link to

another page (or another website!)

slide-37
SLIDE 37

AN INFINITE ASSORTMENT OF TAGS

Included in HTML are a myriad of different tags. Some examples are:

<a href=http:/0wwx.google.com”>Link to Google!<0a> - This tag creates a link to

another page (or another website!)

<h1>, <h2>, <h3>, etc. – These tags define the header on the web page. The

higher the number, the smaller the font size.

slide-38
SLIDE 38

AN INFINITE ASSORTMENT OF TAGS

Included in HTML are a myriad of different tags. Some examples are:

<a href=http:/0wwx.google.com”>Link to Google!<0a> - This tag creates a link to

another page (or another website!)

<h1>, <h2>, <h3>, etc. – These tags define the header on the web page. The

higher the number, the smaller the font size.

<p> - This tag defines a paragraph, which makes up the majority of the text on the

webpage.

slide-39
SLIDE 39

AN INFINITE ASSORTMENT OF TAGS

Included in HTML are a myriad of different tags. Some examples are:

<a href=http:/0wwx.google.com”>Link to Google!<0a> - This tag creates a link to

another page (or another website!)

<h1>, <h2>, <h3>, etc. – These tags define the header on the web page. The

higher the number, the smaller the font size.

<p> - This tag defines a paragraph, which makes up the majority of the text on the

webpage. <span>Some inline text<0span> - This is like the <p> tag, except it doesn't create a new line when you use it. It's good for when you want to style certain parts of a paragraph in a specific way without affecting the entire paragraph.

slide-40
SLIDE 40

AN INFINITE ASSORTMENT OF TAGS

Included in HTML are a myriad of different tags. Some examples are:

<a href=http:/0wwx.google.com”>Link to Google!<0a> - This tag creates a link to

another page (or another website!)

<h1>, <h2>, <h3>, etc. – These tags define the header on the web page. The

higher the number, the smaller the font size.

<p> - This tag defines a paragraph, which makes up the majority of the text on the

webpage. <span>Some inline text<0span> - This is like the <p> tag, except it doesn't create a new line when you use it. It's good for when you want to style certain parts of a paragraph in a specific way without affecting the entire paragraph.

<image src=“image.jpg” /? - This tag defines an image. You can define height and

width, along with lots of other attributes.*

slide-41
SLIDE 41

AN INFINITE ASSORTMENT OF TAGS

Included in HTML are a myriad of different tags. Some examples are:

<a href=http:/0wwx.google.com”>Link to Google!<0a> - This tag creates a link to

another page (or another website!)

<h1>, <h2>, <h3>, etc. – These tags define the header on the web page. The

higher the number, the smaller the font size.

<p> - This tag defines a paragraph, which makes up the majority of the text on the

webpage. <span>Some inline text<0span> - This is like the <p> tag, except it doesn't create a new line when you use it. It's good for when you want to style certain parts of a paragraph in a specific way without affecting the entire paragraph.

<image src=“image.jpg” /? - This tag defines an image. You can define height and

width, along with lots of other attributes.* <b>Be boundless!<0b> - will show up bolded

slide-42
SLIDE 42

AN INFINITE ASSORTMENT OF TAGS

Included in HTML are a myriad of different tags. Some examples are:

<a href=http:/0wwx.google.com”>Link to Google!<0a> - This tag creates a link to

another page (or another website!)

<h1>, <h2>, <h3>, etc. – These tags define the header on the web page. The

higher the number, the smaller the font size.

<p> - This tag defines a paragraph, which makes up the majority of the text on the

webpage. <span>Some inline text<0span> - This is like the <p> tag, except it doesn't create a new line when you use it. It's good for when you want to style certain parts of a paragraph in a specific way without affecting the entire paragraph.

<image src=“image.jpg” /? - This tag defines an image. You can define height and

width, along with lots of other attributes.* <b>Be boundless!<0b> - will show up bolded <i>Wow!<0i> - will be italicized

slide-43
SLIDE 43

AN INFINITE ASSORTMENT OF TAGS

Included in HTML are a myriad of different tags. Some examples are:

<a href=http:/0wwx.google.com”>Link to Google!<0a> - This tag creates a link to

another page (or another website!)

<h1>, <h2>, <h3>, etc. – These tags define the header on the web page. The

higher the number, the smaller the font size.

<p> - This tag defines a paragraph, which makes up the majority of the text on the

webpage. <span>Some inline text<0span> - This is like the <p> tag, except it doesn't create a new line when you use it. It's good for when you want to style certain parts of a paragraph in a specific way without affecting the entire paragraph.

<image src=“image.jpg” /? - This tag defines an image. You can define height and

width, along with lots of other attributes.* <b>Be boundless!<0b> - will show up bolded <i>Wow!<0i> - will be italicized * are self-closing tags – you don’t need a closing tag!

slide-44
SLIDE 44

Demo