HTML one, what is html1.1 html?
The Hypertext Markup Language (hypertext Markup language,html) marks individual parts of the page to be displayed in a label language. A set of rules that the browser knows about the rules.
The browser renders the Web page files sequentially , from top to bottom, from left to in order, and then interprets and displays the content according to the marker, noting that for different browsers, the same label may be interpreted differently (compatibility)
static Web page file extension :. html or. htm
1.2 HTML is not what?
HTML is not a programming language, but a markup language
HTML uses tag tags to describe web pages
1.3 HTML structure
<! DOCTYPE Html> tells the browser what HTML or XHTML to use to parse the HTML document
The
The text between <body></body> is visible to the main content of the page.
1.4 HTML Tag Format
Syntax for Tags:
< Tag Name Property 1 = "Property value 1" Property 2 = "Property value 2" ......> content section </tag name >
< Tag Name Property 1 = "Property value 1" Property 2 = "Property value 2" ......../>
second, commonly used labels2.1 <! Doctype> Label
<! The doctype> declaration is located in the first position in the document, before the
Function: Declares the parsing type (document.compatmode) of the document, avoiding the bizarre mode of the browser.
Document.compatmode:
1.BackCompat: Weird mode, the browser uses its own weird mode to parse the rendered page.
2.css1compat: Standard mode, browser uses the standard resolution rendering page.
This property will be recognized and used by the browser, but if your page does not have a DOCTYPE declaration, the Compamode default is Backcompat
2.2 tags in common<meta> Tags
Meta Introduction
The <meta> element provides meta-information about the page (meta-information), a description of the search engine and the frequency of updates, and keywords.
The <meta> tag is located in the header of the document and does not contain any content.
The information provided by <meta> is not visible to the user
Meta tag composition: Meta tags have two attributes, which are the Http-equiv property and the Name property, and different properties have different parameter values, these different parameter values to achieve a different page function.
(1) Name attribute: Mainly used to describe the Web page, the corresponding property value of content,content content is mainly for the search engine to find information and classification information.
<meta name="keywords" content="IT Training, meta-summary, HTML Meta,meta properties " ><meta name="description" content=" old boy training agency was created by a very old boy ">
(2) Http-equiv property: equivalent to HTTP file header function, it can send back some useful information to the browser to help correctly display the content of the Web page, the corresponding property value of Content,content is actually the variable value of each parameter .
<meta http-equiv="Refresh"Content="3;http://www.baidu.com">#page Jumps (note the following quotation marks, respectively, before the number of seconds and after the URL)<meta http-equiv="Content-type"charset="UTF-8">#Content Type<meta http-equiv="x-ua-compatible"Content="ie=edge,chrome=1">#Browser compatibility mode
non-<meta> tags
<title>karinameimei</title> # title <link rel="icon" href="//www.jd.com/favicon.ico"> # page Icons
2.3<body>tags in common
<body> tags in common
Basic tags (block-level labels and inline tags)
" " " "
Common tags: hn p br
Label Category:
1 Block level tag------BLOCK: Exclusive line HN P BR Div
2 Inline label------Inline: Sub sup span based on content
<div> and the <span>
<div></div>:<div> is just a block-level element that has no practical meaning. The main style of CSS is to give it different performance.
<span></span>:<span> represents inline lines (inline elements), and with practical meanings, mainly through CSS styles give them different performance
The difference between a block-level element and an in-line element:
The so-called block element, which is the element that begins to render on a different line, does not require another line, and if the two elements are inserted separately in the page, the page has no effect.
These two elements are specifically designed to define CSS styles.
2.4Graphic Labels
" " src: The path of the picture to be displayed. alt: The picture does not prompt when it is loaded successfully. Title: Tip Information when hovering the mouse. Width: The height of the picture: high (width height two attributes only one will be automatically scaled.) ""
2.5 Hyperlink Tag (anchor label):<a> </a>
What is a hyperlink?
A hyperlink is a link from a Web page to a target, which can be another page, a different location on the same page, a picture, an e-mail address, a file, or even an application.
" " <a href= "" target= "_blank" >click</a>href property specifies the destination page address. The address can have several types: absolute URL-point to another site (such as href= "http://www.jd.com) relative URL-refers to the exact path in the current site (href=" index.htm ") anchor URL- Point to the anchor in the page (href= "#top")
2.6List Label
List Tags: unordered list, ordered list, definition list
Sequence list: Order list
Unordered lists: Unorder list
Definition list: Define List
" " <ul>: Unordered list [type attribute: disc (solid dot) (default), Circle (Hollow Circle), Square (solid square)]<ol>: Sequence table <li>: Each item in the list. <dl> Define list <dt> list title <dd> list item '
2.7Table Labels:<table>
Tabular Concepts
A table is a two-dimensional data space, a table consists of several rows, a row and a number of cells, cells can contain text, lists, patterns, forms, digital symbols, preset text and other tables and other content.
The most important purpose of the table is to display the table class data. Tabular data refers to data that best fits into a tabular format, which is organized by rows and columns.
The basic structure of the table:
<table> <tr> <td> title </td> <td> title </td> </tr> < tr> <td> content </td> <td> content </td> </tr></table>
Property:
" " <tr>: Table row #单元行 <th>: Table head cell #单元头部 <td>: Table Data cell #单元格列属性: border: Table border. cellpadding: Margin cellspacing: margin. Can be set to 0 width: pixel percentage. (preferably with CSS to set the length-width) rowspan: How many rows the cell spans vertically colspan : How many columns the cell spans (that is, merged cells) align= "Center" center "
Example:
Python--html