Constitute the page: text, images, hyperlinks, audio, video and flash like
Web page code needed by the browser to parse and render
1.IE browser
3. Firefox
4.safari browser
5.Opear browser
Skeleton html tags page: Structure
Style: css styles make the page look more beautiful
Behavior: javascript js let referred pages can have dynamic effects, you can also interact with data and server-side
Also known as the front page of three layers: a structural layer, layer styles, layer behavior
1. On the desktop, or right-click a file in Notepad to create a new folder index.txt
2. Double-click to open the Notepad file
3. Write the basic content of this document
4. modify this file index.txt as index.html, this time will find this plain text file into a html page
5. Double-click this html page, you can open the view in a browser
5. coded website
Internationally accepted is "UTF-8" includes almost all the literal language of the world
Domestic general is generally "GBK", "GB2312" to resolve the country more friendly text
Remember: let us find unity after use "UTF-8" encoding format on this
DW
sublime
webstorm
HBuilder
vscode current base class stage is vscode use this editor plug-in is very easy to use, open source, free
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> </body> </html>
h Series title tag is generally used to set the content
h1 general for the biggest title or logo, a page can have only one h1
h series of labels only h1 --- h6
Page tag for the tag segment is p, which is a ditag, pairs exist
If you want a sentence, paragraph, line feed may also be added in<br/>
<br />
<hr />
< Body > < P > This is a paragraph tag </ P > </ body >
2. The relationship between the two side by side at the same level label is tied
<head></head> <body></body>
Double label
<head></head> <body></body>
Single-label
<br/> <hr/>
Text formatting tags are generally used in the modification of the page, such as displaying a sprite
< B > </ B > < strong > </ strong > may be shown in bold text < I > </ I > < EM > </ EM > the text shown in italics < S > </ S > < del > </ del > the underlined text is added or deleted line < U > </ U > < INS > </ INS > the text underline
Inline elements: a plurality of one row may be displayed for example: b, strong, em, s, span a
Inline block elements: input button img
-
-
While allowing the browser or web crawler can be well resolved, in order to better analyze its contents
-
Using semantic tags will have a better search engine optimization
Two important but there is no semantic tags:
a label used to jump to another page, not only can jump to any page in the network, you can also jump to any one of us in this project page
The basic grammatical structure:
< A href = "to jump to target the URL of" target = "_ Self" > link content </ A >
target attribute default values are: _selft there is another attribute _blank open in a new page
< IMG the src = "path picture address" Alt = "image description when loading failed" title = "Description of ordinary image" >
alt: failed to load images only when the content will be displayed, if the picture is displayed correctly, then the content will not display alt
title: Regardless of the picture failed to load or not, will display the contents of title
Relative path because of the position change .html file changes
Absolute path:
Benefits absolute path is regardless of the position change .html file, will display pictures
ctrl + c to copy the current content
ctrl + x Cut current content
ctrl + v to paste the current content
ctrl + / annotation piece of content
ctrl + z undo this operation
ctrl + shift + d copy the contents of the current line to the next line
vscode common plug-ins
1. Auto Close Tage automatic closing HTML / XML tags
2. Auto Rename Tag rename automatically paired HTML / XML tags
3. AutoFileName file path tips
4. EaseServer let's open a file opened with http prefix location, rather than a file shortcuts: ctrl + shift + enter
5. open in brower open in the browser, right-click will open in browser option in the left pane after installation
6. Path Autocomplete path Done Tip
7. Path Intellisense file path Smart Tips
8. Sublime Material Theme sublime theme style
9. Sublime Text Keymap and Settings Importer similar sublime keyboard shortcut set
10. vscode-icons file icon
11. Material Icon Theme vscode icon theme, support the replacement of different color icon