2016 - 1 -19 初学HTML5 第一天
1.HTML COMMANDS
MHTL commands called elements.Usually, an element has a start tag and an end tag
e.g. <p>.....</p>
2.HMTL PAGE STRUCTURE
<!DOCTYPE html>
<html>
<head>---------Here is head section,and it is basically some kind of information that u don't see on the web page.
....head elements here
</head>
<body> ----------- The body section is more things u see on the web page !
..... the main web page content goes here
</body>
</html>
3.A VERY SIMPLE WEB PAGE
<!DOCTYPE html>
<html>
<head>
<title>A Simple Web Page</title>
<meta name = "author" content = "David Rossiter">
</head>
<body>
<h1>My Web Page</h1>------<h1> means level 1 heading
<p>This web page is so awesome!</p>--------<p>means paragraph
</body>
</html>
4.CODE THAT GOES IN HEAD
<title>A Simple Web Page</title>
<meta name = "author" content = "David Rossiter">
4.1 Anything in <head> is information about the web page , and does not usually get shown in the page.
So,the two lines state the title and the author.
4.2 All the information is told to the browers!
5.ATTRIBUTES
1.U need to use speech marks for any HMTL arributes,also the doule speech mark and the single speech mark are fine for browers.
e.g. <meta name = "author" content = "David Rossiter"> or
<meta name = 'author' content = 'David Rossiter'>
最新文章
- java 开发中经常问到得懒汉模式 (单利模式)
- Docker Dockerfile详解
- python3 入门 (三) 函数与lambda表达式、闭包
- javascript中json解密
- Android仿计算器界面
- [NYOJ 536] 开心的mdd
- 33个优秀的HTML5应用演示 (转)
- 用数据库管理SERV-U的用户时,如何修改密码及原理
- 武汉科技大学ACM:1007: 文本编辑器
- 【UVA 11997 K Smallest Sums】优先级队列
- Java核心技术,让计算机";一芯多用";的多线程技术
- Windows phone 8 学习笔记(1) 触控输入
- ASP.NET弹出提示点击确定之后再跳转页面的方法
- Inno Setup入门(十二)&mdash;&mdash;Pascal脚本(1)
- 腾讯实习面经(offer)
- 9 C. Hexadecimal&#39;s Numbers
- IE下iframe跨域session和cookie失效问题的解决方案
- redis的数据持久化方案
- Django 中间件版登录验证
- C# 密封类使用sealed修饰