+ All Categories
Home > Documents > Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is...

Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is...

Date post: 22-Dec-2015
Category:
View: 218 times
Download: 1 times
Share this document with a friend
Popular Tags:
24
Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution- Noncommercial-Share Alike 3.0 License.
Transcript
Page 1: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

Creating an HTML page

Skills: edit and debug HTML pages

IT concepts: text editor

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Page 2: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

Where does this topic fit?

• Internet concepts– Applications– Technology– Implications

• Internet skills– Application development– Content creation

Page 3: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

There are tools for creating Web sites that generate HTML for you – why learn HTML?

• Users– To be able to modify pages – for example adding a

feature to a blog– To understand how the technology works in order to

feel empowered and in control

• Developers– To be able to write programs that generate HTML

Page 4: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

Use a text editor, not a word processer or HTML editor to do your assignments.

Page 5: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

Notepad, a text editor

Word, a word processor

Page 6: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

Extra information in a .doc file

A Web client would not understand this.

Page 7: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

The Notepad text editor

Notepad is included with Windows.

Start > All programs > Accessories > Notepad

Page 8: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

First, enter the text

Page 9: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

Add the basic HTML tags

Page 10: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

Save the file on your hard drive

Page 11: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

Naming your HTML file

Use the extension htm or html.

Be careful to select All Files as the type.

Page 12: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

Check to see the file was saved in the directory you selected

Be sure the file has the extension .htm, not .txt.

Page 13: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

Display the page with a Web client

The content is correct, but not the presentation. Web clients run everything together.

(Double click on the file name or use the File > Open command in the Web client).

Page 14: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

Add the <h2> and <p> tags

Page 15: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

Save it on your hard drive then refresh using the Web client

Page 16: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

Note that it re-wraps the text if the window is re-sized

Page 17: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

Four tips

Page 18: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

Notepad and a Web client side by side

Simple debugging -- change the HTML, save it, and refresh the client.

Page 19: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

HTML source for the Classes page on my Web site

The browser View > Source command

Page 20: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

The HTML <br> tags are missing

The composed page has line breaks

HTML editors may be approximate

Page 21: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

Before starting, turn off Windows extension hiding

tools > folder options ... > view

uncheck

You only have to do this one time.

Page 22: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

A few questions

Page 23: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

What difference would it make in our example if you accidently left of the paragraph closing tag </p>?

What difference does it make if you add extra blank lines between two lines of text?

Page 24: Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-

Creating an HTML page

Skills: edit and debug HTML pages

IT concepts: text editor

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.


Recommended