Saturday, June 30, 2012

WebDesign Challenge CSS 1



Cascading Style Sheet
Internal CSS: In the "head" section

Here's what it does:

All header 1 text will be red

  1. All list item 1 text will be blue
  2. All list item 2 text will be blue
  3. All list item 3 text will be blue
All text in paragraphs will be purple.
Here is the CSS code:
<style type="text/css">
h1 {color:red;}
li {color:blue;}
p {color:purple;}
</style>

1. COPY and PASTE the html code in blue (and red) on a new Notepad page.
2. SAVE as “(firstname)css1.htm”.
3. VIEW in your browser!


<!DOCTYPE html>
<html>

<head>
<title> CSS 1</title>

<style type="text/css">
h1 {color:red;}
li {color:blue;}
p {color:purple;}
</style>

</head>

<body>
<h1>All Header 1 text will be red</h1>
<ol>
     <li>All list item 1 text will be blue</li>
     <li>All list item 2 text will be blue</li> 
     <li>All list item 3 text will be blue</li> 
</ol>
<p>All text in paragraphs will be purple.</p>
</body>

</html>

Sunday, June 24, 2012

WebDesign CHALLENGE #3


 1. OPEN your “WebDesign” folder on your memory stick.

 2. CREATE a new folder in “WebDesign” and name it “images”.
     This is the file where you will store all your photos (.jpg, .gif,    
      etc.).

3. FILL-IN this outline of your opening web page and linked pages:

          I. “index.htm” My Topic: _______________________________________

                    A. “page1.htm” Sub-topic: _________________________________

        B. “page2.htm” Sub-topic: _________________________________

        C. “page3.htm” Sub-topic: _________________________________

4. OPEN your current “HTML Template” using “Notepad” .

5. COPY and PASTE your “HTML Template” to a new blank Notepad page.

6. SAVE it in your “WebDesign” folder as
“index.htm”

7. REPEAT steps 5 + 6 three more times, but save the files as
          “page1.htm”
          “page2.htm”
          “page3.htm”

WebDesign CHALLENGE #2



1. OPEN  your current “HTML Template” using  “Notepad”  so you can edit it.

2. OPEN your browser to HTML4Kids (http://htmlbasics4kids.blogspot.com)

3. READ the “Update Your HTML Master Template” June 22 blog post and follow the directions written in it:
  • ·         HIGHLIGHT the html code (blue text) and COPY (CTRL+C).
  • ·         HIGHLIGHT (CTRL+A) all of your old HTML Template code on Notepad.
  • ·         PASTE (CTRL+V) the new code to replace the old.
  • ·         SAVE with the same name.

WebDesign CHALLENGE #1


1. OPEN  a “Notepad”  blank page.
2. TYPE the html code below. Fill-in the “??????” with your own lists.
3. SAVE this on your memory stick in your WebDesign folder as:  
   “yourfirstnameChallenge1.htm “ e.g. “TomChallenge1.htm”
4. OPEN this file on your browser (IE, Safari or Firefox).
5. PRINT and CIRCLE all new HTML code that is new today.

<!DOCTYPE html>
<html>
<head>
<title>Challenge1</title>

<style type="text/css">
h1 {color:red;}
li {color:blue;}
p {color:purple;}
</style>

</head>

<body style="background-color:skyblue;" text="#000000">
<h1 align="middle">Challenge #1</h1>
<p align="right"><b>This is my first web page.
<br/>There's more to come.</b>
<hr align="middle" width="50%">

<p>I am learning how to use inline and internal CSS, the horizontal rule,
<br/>headline, paragraph and line break tags.
<br/>Writing HTML isn't as hard as it appears.
<br>Here's a list of items I like about school using bullets:
<ul>
<li>??????</li>
<li>??????</li>
<li>??????</li>
<li>But most of all--????????</li>
</ul>

<p>I can also create a list of my favorite ??????? using numbers:</p>
<ol>
<li>??????</li>
<li>??????</li>
<li>??????</li>
<li>??????</li>
<li>??????</li>
</ol>

</body>
</html>

Friday, June 22, 2012

HTML Master Template: Update 3


HOW TO UPDATE YOUR CURRENT HTML TEMPLATE
  • HIGHLIGHT the html code (blue text) below and COPY (CTRL+C).
  • OPEN your current HTML (master) template file in Notepad (or another text editor) and
  • HIGHLIGHT (CTRL+A) all of your old HTML Template code and
  • PASTE (CTRL+V) the new code to replace the old.
  • SAVE with the same name.
Now you have an updated HTML Master Template to use for starting new web pages!

<!DOCTYPE html>
<html>

<head>

<title>HTMLTemplate</title>

<style type="text/css">
h1 {color:red;}
h2 {color:blue;}
p {color:purple;}
</style>

</head>

<body style="background-color:lightblue;" text="#000000">
<h1 align="middle">HTML Template</h1>
<p align="middle">
<h3 align="middle">This is my HTML master template for new web pages.
<br/>Update: 3</h3>
</p>
<br/>

<hr align="middle" width="75%">

<p><b>"JavaScript" TAG: CLICK "View Source" and COPY/PASTE to insert the JavaScript

tag into the "body" section of your web page.</b>
<br/><script type="text/javascript">document.write('The "script" tag allows you to place a

script within your HTML documents.');
</script>
</p>
<br/>

<p><b>"CSS" TAG: CLICK <q>View Source</q> and COPY/PASTE to insert CSS into the

"head" section of your web page.</b>
<br/>The CSS tag in the "head" section is an internal CSS function, which controls all tags

in your web page (e.g. "h1") with one line of code.</p>
<br/>

<p><b>"UL" TAG: Here is how to make a list of items using the "ul" or "Unordered List

(bullets)" tag:</b>
<ul>
<li>chocolate</li>
<li>vanilla</li>
<li>raspberry</li>
<li>kiwi</li>
<li>cookies n' cream</li>
</ul>
</p>
<br/>

<p><b>"OL" TAG: Here is how to make a list of items using the "ol" or "Ordered List

(numbers)" tag:</b>
<ol>
<li>Giants</li>
<li>A's</li>
<li>Cubs</li>
<li>Dodgers</li>
<li>Angels</li>
</ol>
<br/>

<p><b>EXPLORE & LEARN MORE TAGS: Click these HTML resource links to learn other

fun tags: </b></p>
<p>
<a href="http://www.w3schools.com">w3schools</a>...tutorials and  tags!
<br/>
<a href="http://www.htmlbasics4kids.blogspot.com">HTML4Kids</a>...HTML Master

Template and more!  
<br/>
<a href="http://www.quackit.com/html/codes/html_marquee_code.cfm">Quackit Scrolling

Marquee</a>...very cool tags!
<br/>
<a href="http://www.images.google.com">Google Images</a>...internet photos!
</p>
<br/>


<p><b>GO TO NEW PAGE: Here is the tag for a link to another web page stored in your

"WebDesign" folder:</b>
<br/>
<a href="../WebDesign/filename.htm">pagename</a>
</p>
<br/>

<p><b>MY PHOTO: Here is the tag to insert a photo on my web page stored in my

"WebDesign>images folder":
<br/>
<img src="w3schools.jpg" alt="My Photo" width="--" height="--" />
</b></p>
<br/>

<p><b>INTERNET PHOTO: Here is the tag to insert a photo on my web page stored on an

internet website (outside of my "WebDesign>images" folder):
<br/>
<img src="http://www.deshow.net/d/file/animal/2009-07/wild-lions-645-2.jpg" alt="Internet

Photo" align="middle"  width="50%" height="50%" />
</b></p>

</body>
</html>


Saturday, February 11, 2012

HTML Help / Cheat sheet from Quackit.com

Need HTML help? You've come to the right place.

Copy/Paste HTML Codes

Below you will find HTML codes that you can copy and paste right into your website or MySpace page etc.
DescriptionCodeResult
Text
Headings

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
Paragraphs Normal paragraph text.
Line Break I feel a line break coming...
...up.
Bold Text Bold text.
Italic Text Italic text.
Color Text
Color text.
Text Size
Text size using points.
Text size using pixels.
Text size using relative sizes.
Font Family
Preferred serif font.
Preformatted Text
Preformatted text displays just as you type it...
  ...line breaks, spaces and all! 
Teletype Text Teletype text - sometimes referred to as typewriter text.
Citation Text Citation text.
Emphasized Text Emphasized text.
Code Text Code text.
Big Text Big text.
Small Text Small text.
Blockquote The label says:
Contents should not be swallowed. This is due to the enormous amount of harmful chemicals that has gone into this burger.
Deleted Text
Delete this text.
Inserted Text
Insert this text.
Keyboard Text Keyboard text - text to be entered by the user.
Quotation Text Quotation text.
Sample Text Sample text (output from a computer program).
Variable Text Variable text.
Definition Definition.: To define the meaning of a word, phrase or term.
Images
Image Milford Sound in New Zealand
Image with Border Milford Sound in New Zealand
Linked Image Milford Sound in New Zealand
Linked Image with no Border Milford Sound in New Zealand
Tables
Basic Table
Table cell 1Table cell 2
Table with cellpadding, cellspacing, and width attributes
Table cell 1Table cell 2
Table with a Header Row
Table headerTable header
Table cell 1Table cell 2
Table with colspan Applied
Table header
Table cell 1Table cell 2
Table with rowspan Applied
Table headerTable cell 1
Table cell 2
Table with CSS Applied
Table headerTable header
Table cell 1Table cell 2
Forms
Basic Form Tags (insert all form elements between these tags)
(Insert form elements here)
Text Input
Text Area
Radio Buttons Option 1 Option 2
Checkboxes Option 1 Option 2
Select List
Submit Button
Image Button
Lists
Ordered list (numbered list)
  1. List item 1
  2. List item 2
  3. List item 3
Unordered list (unnumbered list)
  • List item 1
  • List item 2
  • List item 3
Definition list
Term 1
Definition of term 1
Term 2
Definition of term 2
Frames
Inline Frame &lt;!--This bit is only viewed by browsers that don't support inline frames --&gt; Your browser doesn't support inline frames.
Frames The frameset (frame_example_frameset_1.html):
The left frame (frame_example_left.html):
The right frame (frame_example_right.html):
View the result

Need More HTML Help?

In the following table, the left column contains an HTML topic, the right column provides links to where you can find help about that topic.
For this...do this...
HTML help with tables
HTML help with images
Help with hyperlinks
Help with image maps
Help with fonts
Help with embedding music/audio/sound
Help with color
Help with numbered (ordered) lists
Help with unnumbered (unordered) lists
Help with definition lists
Help with forms
Help with frames
Help with inline frames
Help with metadata
Help with HTML redirects
Help with adding JavaScript to a web page
Help with event handlers/intrinsic events

Tuesday, February 7, 2012

Links (Hyperlinks)


Links (Hyperlinks)
A hyperlink (or link) is a word, group of words, or image that you can click on to jump to a new document or a new section within the current document.
When you move the cursor over a link in a Web page, the arrow will turn into a little hand.
Links are specified in HTML using the <a> tag.
The <a> tag can be used in two ways:
1.     To create a link to another document, by using the href attribute
2.     To create a bookmark inside a document, by using the name attribute

HTML Link Syntax
The HTML code for a link is simple. It looks like this:
<a href="url">Link text</a>
The href attribute specifies the destination of a link.
Example
<a href="http://www.w3schools.com/">Visit W3Schools</a>
which will display like this: Visit W3Schools
Clicking on this hyperlink will send the user to W3Schools' homepage.
Tip: The "Link text" doesn't have to be text. It can be an image or any other HTML element.

HTML Links - The target Attribute
The target attribute specifies where to open the linked document.
The example below will open the linked document in a new browser window or a new tab:
Example
<a href="http://www.w3schools.com/" target="_blank">Visit W3Schools!</a>




HTML Links - The name Attribute
The name attribute specifies the name of an anchor.
The name attribute is used to create a bookmark inside an HTML document.
Note: The upcoming HTML5 standard suggests using the id attribute instead of the name attribute for specifying the name of an anchor. Using the id attribute actually works also for HTML4 in all modern browsers.
Bookmarks are not displayed in any special way. They are invisible to the reader.
Example
A named anchor inside an HTML document:  <a name="tips">Useful Tips Section</a>

Create a link to the "Useful Tips Section" inside the same document:                                                              <a href="#tips">Visit the Useful Tips Section</a>

Or, create a link to the "Useful Tips Section" from another page:                                                                      <a href="http://www.w3schools.com/html_links.htm#tips">

Graphics


GRAPHICS                                                 
A note about copyright
You should never use any graphics, images, text or photos without permission. There are several sites available on the Web where you can receive free images. But under no circumstances should you ever copy material unless the site says you can or you personally have received permission. It's just better to create your own stuff or ask (and get an okay) before you use someone else's stuff. Don't be a cheater!

File Formats
Two file formats have been developed to help keep files small, while maintain a high level of quality:
.gif files: graphic interchange format – 256 colors
.jpg files: joint photographic experts group – millions of colors

The Image tag
To place an image onto a Web page you will need to use the image tag. There are two very important things to remember about the image tag:
1.   It’s an empty tag (remember, that means there’s no closing tag, only a beginning).
2.   It requires attributes to be effective.
The image tag The image tag <img> has several attributes:
src--identifies the image and tells the browser where to get the image
alt—gives alternative text for those who are not viewing their pages as images.
height & width—tells the browser the size of the graphic (speeds up the downloading process
Let’s go through each one of the attributes in more detail.
SRC attribute
To help the browser identify and find an image, you use the following command:
<img src="../foldername/filename.gif">
Alt attribute
The alt attribute lets the user know what’s in the picture by providing descriptive text. It also has an added feature with the latest versions of Internet Explorer and Netscape Navigator. When the cursor arrow passes over artwork or a photo, a little rectangular box pops up that contains the alt copy. It’s a great way to add interest to your page or even give instructions to the user.
When things go wrong with your code, 
you need to do some detective work!

The image tag for this graphic looks like this:
<img src="mystery.jpg" alt="Detective at work!">
Height & Width attribute
When placing your images onto the screen, the browser looks for the height and width of your images. This is an excellent feature because it allows the browsers to set the space size aside while laying out the balance of the page. If you do not specify the size, the browser will stretch it or reduce it to fit.
Height and width are listed in pixels--those little dots that make up an image on a computer screen.

The code for this image is like this:
<img src="masks.jpg" width="149" height="140" alt="You can determine how large your images are by opening them in Navigator.">
Align Attribute
When you place a graphic on a page it will always appear to the left (that's the default or the standard for the browser). 



 However, you can place it to the right just by adding the align attribute to the image tag. And the code looks like this:
<img src="masks.jpg" align="right" width="149" height="140" alt="This is an example of a right-aligned image.">

And here's the code:
<p align="center"><img src="masks.jpg" align="center" width="149" height="140" alt="This is an example of a centered image."></p>


Learning Links