- The relationship between HTML and CSS
1) HTML is a vector of text and pictures above the Web page.
2) CSS is style, text font, color, border
3) JavaScript is a special effect, pop-up fade in
1)
2) The contents of each part of the webpage must be placed in the label to display
3) Labels are case-insensitive and are generally lowercase
- Structure of the HTML file
<HTML> Root Tags
< Head>
< head>
< title>......</title> displayed in the browser's title bar
< script>......</script>
< style>.......</style>
< link>
<meta>
The
<body> ....</body> inside is the main content of the webpage,
</HTML>
<!--comment text--
The following study should pay attention to two aspects of learning: the use of tags, tags in the browser default style
Grammar:<p> paragraph text </p>, a text with a <p></p> tag, if there are three paragraphs of text, with three <p></p> tags
Purpose: To add a title to the page, a total of 6, H1,H2,H3,H4,H5,H6,H1 is the highest level
Syntax:
Style:<body>
</body>
- < strong> in bold to indicate,<em> in italics
Grammar:<em> Text to emphasize </em> < strong> to emphasize text </strong>
- <span> need to set a single style for something, add a tag to the head, set the style, use it in the body
span{
Color:blue;
}
< body>
< p> in pursuit of his <span> American dream </span> he moved into a bay near New York. </p>
</body>
- <q>, short text quote, a word, a poem
Syntax:<q> reference </q> the quoted text does not need double quotes, and the browser automatically adds double quotes
- <blockquote>, long text references, a large paragraph of words
Syntax:<blockquote> reference text </blockquote> the quoted text does not need double quotes, and the browser automatically adds double quotes
- <br> Branch display text, function equivalent to carriage return line, is an empty label, only start tag, no end tag
Syntax: <br/>, add in where you need to enter a newline
Grammar:
Syntax:
- < Address>, email address, document author, address, displayed on the page is italic
Syntax:<address> contact address information </address>
- <code> display programming code in a Web page, a piece of code
Syntax:<code> code language </code>
- <pre> Add a large segment of code to a Web page
Syntax:<pre> code </pre>
- < Ul><li> Add a list of news listings display, each with a dot before Li
Grammar:
<ul>
< li> information </li>
</ul>
- <ol> Add book sales leaderboard, default starting from 1
Grammar:
<ol>
<li> Information </li>
</ol>
- <div> split the code of Independent logic
Grammar:<div>......</div>
Syntax: <div id = "Version name" >....</div>
- Table label, four elements: Table,tbody,tr line, TH table header, TD column
- Caption, add a title to the table, display in the page, summary, add a summary for the table, do not show it;
Syntax: <table summary= "Table Introduction Text" >
eg
<table summary= "This table records 2012 to 2013 inventory records, including USB flash drive and headset inventory" >
< caption>2012 year to 2013 inventory records </caption>
</table>
Grammar:
<a href= "Destination url" title= "mouse over displayed text" > link displayed text </a>
eg
<a href= "www.baidu.com" title = "Baidu" > Baidu </a>
Note: The default is open in the current browser window, if you need to open in a new window,
<a href= "Destination url" target= "_blank" >click here!</a>
<a href= "Destination url" title= "mouse over displayed text" target= "_blank" > link displayed text </a>
- mailto link the email address in the Web page, the next time there are multiple parameters, the first parameter to? At the beginning, each of the following parameters is separated by &
Grammar:
<a href = "mailto:[email protected]?" subject= topic &body= message content > Send </a>
- IMG, inserting pictures for web pages
Grammar:
SRC is the location of the identity image, alt specifies the image of the descriptive file, when the image is not visible when the text is displayed, title mouse over the text displayed in the picture, image support GIF, PNG, JPEG
- Recognize the label to an adjourned.
Dragon Boat Festival small holiday--front-End Basics 01