The first day of the PHP course

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.