Time to build your first HTML page by hand

I could go on with more theory and send half of you to sleep (trust me); instead you are now going to actually build your very first web page!

One of the best ways to learn something is to actually do it, so don’t worry if things are a little foggy for you right now, as we build the web page, things will start to clear up.

Step 1: Let’s write some HTML code

Open up a text editor like Notepad on Windows and type this (or: Note: Here’s a PDF that shows you how to create html documents on Mac):

<html>
<head>
<title>Your first hand coded page</title>
</head>
<body>
<h2>Hand coding web pages is easy! </h2>
<p>I would like to thank everyone who helped me type
this page.</p>
</body>
</html>

Step 2: Save the file as an HTML document

Save your HTML file (save it to your desktop so you will be sure to find it!)

using your text editor’s ‘Save as’ function and name the file webPage.html.

You can choose any name you want, as long as you follow these four rules:

  1. Web page names cannot have spaces in them: ‘web page.html’ is no good but ‘webPage.html’ is perfect.
  2. The name has to end with either .html or .htm; by ending the file name this way you are telling the computer that this is a web page and that it should use a web page reader / browser to view it.
  3. Don’t use funny symbol like: $, %, ^, & in your page names. Stick to standard letters and numbers.
  4. In Notepad, please save the file as UTF-8.

Step 3: Marvel at your work and view your page

You should be able to now just double-click on the page or open it up with your web browser by going to its “File” menu, then select “Open file” and select your page.

You should be able to see your page in all its glory!

Ok, not too much glory, but it was your first hand-coded page after all!

If you don’t see anything, then compare what you typed with the original I gave you and just go over the process again.

You will get it if you give yourself a chance!

If you’re not sure if what you created is looking like it’s supposed to, you can check out the final page here and compare it with your own.

Conclusion

Now that we’ve built our first web page, we can now move on to building our first web site.

最新文章

  1. PHP文件操作 读取与写入
  2. android混合开发,webview的java与js互操作
  3. SpringMvc之handler深入AbstractControllerhe和MultiActionController和内部资源视图解析器
  4. keil(持续更新)
  5. Guava文档翻译之ListenableFuture
  6. ES6-个人学习笔记二--解构赋值
  7. ADT &quot;Running Android Lint&quot; has encountered a problem
  8. CheckBox和RadioButton以及RadioGroup
  9. 淘宝地址爬取及UI展示
  10. SMD 自动点料机维修
  11. UUID在Java中的实现与应用
  12. Google BreakPad使用集
  13. FIS前端集成解决方案
  14. ORM 框架简介
  15. PHP 之超级全局变量
  16. centos 7 上安装 testlink 1.9.15/1.9.16/1.9.17/1.9.18 (mysql/php/httpd)
  17. Jacob的使用出错总结
  18. bzoj 1862: [Zjoi2006]GameZ游戏排名系统 &amp; bzoj 1056: [HAOI2008]排名系统
  19. SCARA——OpenGL入门学习四(颜色)
  20. zTree学习笔记

热门文章

  1. RegExp javascript正则表达式 :
  2. Mean, Median, Mode, Range, and Standard Deviation
  3. 带入gRPC:对 RPC 方法做自定义认证
  4. Android开发学习之事件处理和Button具体解释
  5. [MST] Store Store in Local Storage
  6. swift入门-实现简单的登录界面
  7. 详细图解mongodb下载、安装、配置与使用
  8. 实体转XML XML转实体
  9. 《剑指offer》栈的压入、弹出序列
  10. UWP开发小结