Today is the first day of the PHP course, with the excitement of the complex mood, write down what you learned today.
The first is three nouns. That is, Http,hypertext transfor protoca Hypertext Transfer Protocol, HTTP usually occurs on top of TCP/IP connection, default port 80. Url,uniform resorce Locaor, Uniform Resource Locator (URL). Html,hypertext Marked Language, Hyper-text markup language. Css,cascading style sheets, cascading style sheets. Then it is the simplest code that starts writing the most basic. The first is the basic format, as follows
<!--head Labels--
<!---->
<meta charset= "UTF8" >
<!--title Tags--
<title></title>
<!--body Labels--
<body>
</body>
<!----> is a comment on the content, written in two--in the middle of the other two. <meta charset=> is the code used in the input and text conversion instructions, two title is the title of the Web page, two body between the specific content, two head between the content of the format. Note
Then there are some basic operations.
I made two colored squares on the page I wrote and gave them a long width, as follows.
Heml>
<!--head Labels--
<!---->
<meta charset= "UTF8" >
<!--title Tags--
<title> First </title>
<style>
#a {width:200px;height:200px;background-color: #FF0000;}
#b {width:200px;height:200px;background-color: #00FF00;}
</style>
<!--body Labels--
<body>
<div id= "A" > Lao Liu drinking Assam Tea </div>
<div id= "B" ></div>
</body>
Add Float:both/right/left after the code that represents the color to adjust the upper and lower order of the two graphs.
You can also use <div class= "clean" ></div> to adjust. (Note: id=#,class=.) As follows.
<!--head Labels--
<!---->
<meta charset= "UTF8" >
<!--title Tags--
<title> First </title>
<style>
#a {width:200px;height:200px;background-color: #FF0000; float:left;}
. Clean{clear:both;}
#b {width:200px;height:200px;background-color: #ca952c; float:left;}
</style>
<!--body Labels--
<body>
<div id= "A" > Lao Liu drinking Assam Tea </div>
<div class= "clean" ></div>
<div id= "B" ></div>
</body>
If you want to convert multiple squares from horizontal to upper, you need to do the following. I made four squares.
<!--head Labels--
<!---->
<meta charset= "UTF8" >
<!--title Tags--
<title> First </title>
<style>
div{width:200px;
height:200px;}
#a {background-color: #FF0000; float:left;}
#b {background-color: #ca952c; float:left;}
#c {background-color: #FF0000; float:left;}
#d {background-color: #FF0000; float:left;}
. Clean{width:0px;height:0px;clear:left;}
</style>
<!--body Labels--
<body>
<div id= "A" > Lao Liu drinking Assam Tea </div>
<div id= "B" ></div>
<div class= "clean" ></div>
<div id= "C" ></div>
<div id= "D" ></div>
</body>
Above is I as a small white novice learning PHP first day of the harvest, please the great god advice!
The first day of the PHP course