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