python-html summary

1, html title tags 
<h1> a title </ h1 of>
<H2> subheadings </ H2>
<H3> three title </ H3>
<H4> four title </ H4>
<H5> five The title </ H5>
<H6> six title </ H6>
2, HTML paragraph tags, wrapping the label and character entity
<p> paragraph </ P>
<br /> # linefeed
& nbsp; # space
& gt;>
& lt; <
. 3, blocks of html tags, labels containing style
html block tags
<div> block tag indicating a content, there is no specific semantic </ div>
<span> inline element represents a short preview of a row, no specific semantic
containing style and semantic tags
<em> inline elements, expressed in tone to emphasize the word
<i> inline elements, represents the professional vocabulary
<b> inline elements, representing the document in the product name or keyword
<strong>Inline elements, represents a very important element of
semantic labels
in the layout of such a multi-use semantic tags, search engines may know this side label crawl when the understanding of the document
structure, convenient collection of websites
. 4, html tag images, absolute and relative paths
html image tag
<img> tag may be inserted into an image on the page, which label is used independently, it is common attributes
src attribute refers to the address defined image
alt attribute definition image failure to load display text, search engines will use the text included pictures,
blind screen reader software reads the text so that the blind recognize pictures, so the property is very important
<img src = "images / 002.jpg " alt = " fruits picture "/>
absolute Road King:
relative path: ./ ../ may omit the current directory parent directory
5, html link tags
<a> tag to define a link address on a web page, it's commonly used attributes:
href: definition of jump forwarding addresses
title: pop defining a hover box
target: Custom link window open position
target = '_ self' default values, the new page replace the original page, open in the original position
target = '_ blank' new page will open in a new browser window is opened
  example:
<a href="006图片.html" title="123" target="_blank"> go to the page </
<a href="https://www.baidu.com/" title="百度" target="_blank"> <IMG the src = "Images / bd_logo1.png"> </a>
<A the href = "#" > default link </a> # will link to the top of the page
6, html tag list
ordered list
<h1> An ordered list </ h1>
<OL>
<li> HTML </ li>
<li> CSS </ li>
<li> JavaScript </ li>
</ OL>

unordered list
<ul>
<li> News title 1 </ li>
<li> News headlines 2 </ li>
<li> News headlines 3 </ li>
</ ul>

<ul>
<li> <a href='#'> headlines 1 </ A> </ Li>
<Li> <a href='#'> headlines </a> 2 </ Li>
<Li> <a href='#'> headlines 3 </a> </ li >
</ UL>
definition list
<dl>
<dt> html </ dt>
structure <dd> is responsible for the page </ dd>
<dt> CSS </ dt>
<dd> is responsible for page performance </ dd>
<dt> JavaScript </ dt>
<dd> responsible behavior page </ dd>
</ DL>
. 7, a form HTML
form for searching for different types of user input, a form composed of different types of labels, tags and attributes associated usage is as follows:
. 1, <form> tag defines the overall form region
data submitted action attribute defines the form address
mode method attribute defined in the form submission, generally get method and post embodiment
2, <label> tag to form element defines text annotation
3, <input> tag defines general form element
type attribute
type = 'text' define single-line text input
type = 'password' defined password input box
type = 'radio' defined radio box
type = 'checkbox 'definition of box
type =' file 'is defined to upload files
type = 'submit' defined submit button
type = 'reset' defined reset button
type = 'image' is defined as a submit button image defined by image address src attribute
type = 'hidden' define a hidden form fields, used to store the value of
value attribute defines the form element value of
name attribute defined in the form element, this name is the key for the time of filing data
4, <textarea> tag defines a multi-line text input box
5, <select> tag defines the pull-down form element
6, <option > tag and <select> tag with the defined drop down menu elements option


8, html table
1, <table>: declare a table that common properties as follows:
border: the definition table borders, the set value is a numerical
cellpadding: definition unit from cell contents and the frame, the set value is a numerical value
dellspacing: defines the distance between the cells and the cell, the set value is a numerical
align: table integrally disposed with respect to the horizontal alignment of the browser window, set values are: left | center | right
2, <TR>: the definition of a table row
3, <td> and <th>:Definition of a cell in a row, th representatives header cell, td representative of normal cells
align Sets cell contents horizontal alignment setting values are: left | Center | right
valign set cell content vertical alignment, provided values are: Top | Middle | Botton
colspan set cell levels were combined, the set value is a numerical
rowspan The combined cell disposed vertically, the set value is a numerical value

Guess you like

Origin www.cnblogs.com/fuyouqiang/p/11790504.html