Labels in
<Base> set the base URL < Html >
< Head >
< Base Href = "Www.baidu.com" Target = "_ Self" >
< Title > Baidu </ Title >
</ Head >
< Body >
< A Href = "Index" > Baidu </ A >
Baidu
</ Body >
</ Html > A file can only have one <base> tag, which must be included in the header file.
<Base href = "file path" target = "target window">
Href is used to set the URL of a webpage file.
<Basefont> set the baseline text
<Basefont face = "font" size = "font size" color = "font color">
<Meta> define metadata
Defines some information on the page, which will not appear on the page, but will be displayed in the source file
<Meta http-equiv = "HTTP title domain" name = "metadata format" content = "metadata content">
Content in <body>:
<Body bgcolor = "background color">
<Body topmargin/leftmargin/rightmargin/bottommargin = value> set the page margin
<Body text = "body color">
Text and paragraph:
Note: The comment statement can appear in any part of the page.
<! -- Comment content>
<Comment> comment content </comment>
& Nbsp: Space
<Strike> added strikethrough text </strike>
<Font> edit the webpage text style
<Font face = "font" size = "font" color = "font color"> text <font>
Simple text modifier:
<B> bold text </B>
<I> italic text </I>
<U> underlined text </u>
Upper and lower labels:
<Sup> upload content </sup>
<Sub> subscript content </sub>
Section: <p> A paragraph </P>
Press Enter: <br>
<Center> text displayed in the center </center>
<BLOCKQUOTE> paragraph indent content </BLOCKQUOTE>
Set the horizontal line:
<HR width = "width" size = "height" noshade = "shadow" color = "color" align = "align">
List:
Hyperlink:
Three paths are provided in the HTML file: absolute path, relative path, and root path.
Absolute path: the complete path of the file, including the file transfer protocol HTTP, FTP, etc., is generally used for external links of the website, such as: http://www.baidu.cm ftp: // 219.153.41.160
Relative Path: the path relative to the current file, including the path from the current file to the target file.
Root path: Generally, the root path is not used.
Hyperlinks are usually created using the href Property marked with <A>.
<A href = http://www.baidu.com/index> link content </a>
In HTML files, Hyperlinks can be divided into internal links and external links.
Internal link: links between files within the website. Use relative paths
External link: the files in the website are linked to files outside the site content. Use absolute path
Set image ing:
Click an image to go to the corresponding webpage.
Instance:
Image ing
<! Instance code >
< Html >
< Head >
< Title > Set image ing </ Title >
</ Head >
< Body >
< IMG SRC = "6-4.jpg" Width = "150" Height = "50" Border = "0" Usemap = "# Map" >
< Map Name = "Map" >
< Area Shape = "Rect" Coords = "2,9, 149,40" Href = "Http://www.baidu.com" >
</ Body >
</ Html > Basic Syntax:
</img>
<Map Name = "Map Name">
<Area shap = "ing area shape" cords = "coordinates of the sensing area" href = "Path of the linked file">
</Map>