码迷,mamicode.com
首页 > Web开发 > 详细

2016 - 1 -19 初学HTML5 第一天

时间:2016-01-20 00:58:58      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:

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‘>

 

2016 - 1 -19 初学HTML5 第一天

标签:

原文地址:http://www.cnblogs.com/BJTUzhengli/p/5143811.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!