PHP self-learning path-HTML (First Day)

Source: Internet
Author: User
Document directory
  • 4 characters
  • 7 Table
  • 9 frame set

1
HTML: Hypertext Markup Language (HTML)
Markup Language) is a markup language used to describe Web documents. Images, text, and videos can be displayed.

<Input type = "text" name = "XXXX">

☞Mark = Element

2. Basic Framework

<HTML>

<Head>

<Body> </body>

</Html>

 

3
How HTML runs

1,
Run locally

Open in a browser

2,
Remote Operation

Set up Apache server to access the page.

 

4 characters

5 links

<A href ="news:alt.html"> HTML newsgroup </a>

6 images

Width = "200px" style = "border: 3px solid red" alt = "my images"/> </BR>

First exercise:

<! -- HTML annotation I am an HTML file --> <HTML> 

Exercise 2:

<HTML> 

:

 

7 Table
<! Doctype HTML public "-// W3C // dtd html 4.01 transitional // en" "http://www.w3.org/TR/html4/loose.dtd"> <HTML> 

Display Effect:

 

8 liebiao

<HTML> 

Effect:

9 frame set

By using the framework, you can display more than one page in the same browser window

Divided into: vertical frame Cols = "30 #, *"; horizontal frame rows = "25%, 50%, 25%"> % is the percentage of pages.

The following are examples:

<! --Frameset.html --> <HTML> 

The above feameset.html is used to display other pages. Pay attention to the description in the code.

<! --A1.html --> <body bgcolor = "prnk"> <! -- Target indicates the page on which the link is clicked. --> <a href = "1.html" target = "frame2"> Project 1 </a> <br/> <a href = "2.html" target = "frame2"> Project 2 </a> <br/> <body>

Note: four target attributes: 1 and _ BLACK indicate that a new page is opened.

2. _ Self indicates replacing this page. 3. The _ Top 4 \ _ parent file directly corresponds to the character frame2.a2.html in this example.
<Body> this project is a secondary development for the company's system products </body>

Page effect:

10 inline framework
<HTML> <body> <IFRAME src = "http://www.baidu.com/" width = "500px" Height = "300px"> </iframe> <p> some old Browsers Do not support IFRAME. </P> <p> IFRAME is invisible if not supported. </P> </body> 

By default, all hyperlink settings are opened in the new window and the following statement is added. <base target = "_ blank">

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.