HTML Properties
properties are generally described in start Tag
A property is always in the form of a name/value pair, such as:name= "value".
HTML Color
1, English word expression. Red, Green
<p style="color:red"> Red </p>
2, the system code (0-f), with "#" plus six-bit 16 code representation. For example:#cccccc(same shorthand #ccc),#000000(#000 )
<H1 style="color: #cccccc"> Grey
3, Rgba(0~255,0~255,0~255,0~1), four-digit representation. where 0~255 represents color,0~1 represents transparency.
<H1 style="Color:rgba (255,0,0,0.5) > Red
HTML path
Absolute path: Search from root, computer disk path
Columns such as: E:\workspace\0601\html
Relative path: Starting from its own position
Sibling Folder ./(Can be omitted)
Previous level folder .. /
Next Level folder ./
HTML entities
reserved characters in HTML must be replaced with character entities.
Some characters that are not found on the keyboard can also be replaced with character entities.
To show the less than sign, we must write this:< or & #60; Space:
<a> Tags
<a href= "" ></a>
<a> tags define hyperlinks to link to another page from one page.
Comes with the href attribute, which specifies the target of the link.
1. Page Jump
<a href= " url " > content </a>-----Note the integrity of the URL
<a href="http://www.baidu.com"> Baidu link </a>
Important attribute target, open mode setting, default on current page, property value:_blank jump page Open
2. Positioning
Set anchor points
in the location to which you want to navigate look for a label. Add ID attribute property value is anchor name
Click the link directly to the anchor point
<a href="#xx"> Positioning </a>... <p id=xx> Locator Content </p>
3, download. Other
<a> tags jump to the file, format browser does not open, then provide download, for example:. zip,. rar and other compressed packages
<iframe> label window frame
Place another page within the page
<iframe src="http://www.w3cschool.cc/"></iframe>
tags
The tag defines an image in an HTML page.
The tag has two required properties: SRC and alt.
src picture location, path; alt, indicates the picture size, width and height can only write one, keep the picture proportion.
<img src="123.gif" alt="Smileyface" width=" "height=">
List Labels < ol>, <ul>, <li>
<ol> and <ul> content can only be <li>, all other tags, content, need to be nested in <Li > inside.
Sequence list <ol>
<ol type= "Form" > <li> content </li> <li> content </li> <li> content </li></ol >
unordered List <ul>
<ul> <li> content </li> <li> content </li> <li> content </li></ul>
Self-learning issues:
1, Font color settings, you can use <span>, copy the Style property
<span style="color:blue"> </span>
Cannot read one line, can <br> break lines
You can nest in <p></p> when you need only a few words in a piece of text to change color
<p> content 1 <span style= "Color:blue" > Content 2 </span> content 3</p>
2, from the file name as far as possible, do not have Chinese
3, pay attention to the code format of writing, beautiful
4. Comment Symbols <!---->
HTML main tag App