Coding!!
Coding!!
Open TextEdit
2. Convert fill to Plain Text (Format>Make Plain Text). This will allow you to design the
code by hand. If you choose "HTML" from the format menu, you are not working with
the html code, you are simply using the text editor to write your HTML for you.
3. Save as mywebpage.html This will allow the text document to be read as a web
page by a web browser.
<html>
</html>
<body>
</body>
This is where everything that will be visible on the web page will be placed (until we
start developing CSS code for the page)
<p>
Hello!
</p>
7. Save the file and open using your web browser. You have built your first web page by
hand!
8. Notice that at the top of the web page the name is "untitled".
Go to your html document and type in the following between the <html> and <body>
tag:
<head>
<title>My Web Page</title>
</head>
9. Save and preview your document. The web page has a name.
10. To add in a picture. within the body tag type:
<img src="images/main-page-veyron.jpg">
12. Let's add in some page properties. In HTML we can give the page some design
properties. WIthin the body tag type:
<body bgcolor="#000000">
13. Save and view your web page. We can't read the text any more so add into the
same tag:
14. properties in the body tag define the defaults for the web page but we can change
the color on a local level. After the image type:
<p>
<font color="#ffffff">This is some brighter text</font>
</p>
15. We can even change the standard body copy from roman to italic.
add in <em> before the word brighter and </em> after the word brighter.
16. There are other ways to format text in a web page. Above the "Hello" type:
18. Below the text at the bottom of the page type in:
<p>I would like to share something fun about me: I like to brew beer and even though it
tastes worse than ABC-branded beer I enjoy drinking it. I think I will have a lot of fun
when I start to understand what I am doing. </p>
22. Double-click the file. It opens as a web page. In order to get the text back to
workable. Right-click the file and open in Dreamweaver. Switch to Code View and copy
the text. Create new TextEdit file and set it to Plain Text. Paste in to TextEdit file.