HTML 语言基础
来源:互联网 发布:张龙 java 编辑:程序博客网 时间:2024/06/09 20:58
学习HTML语言,我主要参考了《HTML与CSS网站设计实践之旅》(Build Your Own Web Site the Right Way Using HTML&CSS)。
最近学习了HTML语言,现在来总结一下。其实,感觉HTML还是比较简单的,语法很容易懂,就是符号多一些。
最新版本的HTML,即XHTML。
下面是一个简单的HTML的网页:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>The Most Basic Web Page in the World</title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> </head> <body> <h1>The Most Basic Web Page in the World</h1> <p>This is a very simple web page to get you started. Hopefully you will get to see how the markup that drives the page relates to the end result that you can see on screen.</p> <p>This is another paragraph, by the way. Just to show how it works.</p> </body> </html>
以下是HTML的一个基本框架:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> </head> <body> <h1></h1> <p></p> <p></p> </body> </html>
<title></title>中的内容表示页面标题,也就是打开网页,最上面显示的内容(默认值是Untitled Document),下图所示样例中的Google即为页面标题。
<body> </body>中的内容是网页中显示的内容。
- HTML语言 第一章 HTML基础
- HTML语言基础
- HTML语言基础
- HTML 语言基础
- HTML语言基础
- HTML语言基础
- HTML语言基础
- HTML语言基础
- Html语言基础
- `html语言基础笔记
- HTML语言基础(基础东西)
- HTML语言入门基础及提高
- WEB开发基础一:HTML语言
- HTML语言和CSS基础小结
- 基础总结知识点-第三章:HTML语言
- HTML-超文本标记语言基础01
- 夯实ASP.NET的基础之了解HTML语言
- HTML开发语言基础和c++少部分知识
- C++Primer读书笔记(十)
- 3193 经典神奇打表
- windows DNS 服务器递归查询超时机制
- ios ipad 不调用 viewVillAppera 的解决办法
- C/C++ struct 对齐
- HTML 语言基础
- 智能指针和弱引用 zz .
- eclipse3.7+resin4.0集成配置小结
- 链表的选择排序
- 项目加班七宗罪
- 主键的选择
- 禁用cookie后,session还可以用吗
- 简单说说android的线程封装 zz .
- poj1226(kmp算法,后缀数组)