First, HTML overview
HTML, Hypertext Markup Language, Hyper Text markup language, for creating Web pages.
1) noun explanation
- Hypertext: More powerful than normal text, can describe the text font, color, can show pictures and hyperlinks
- Tags: tags, using different tags to show different types of content, such as using <p> tags to show paragraphs, using display pictures
- Language: is a markup language, not a programming language
2) Writing Specifications
- The suffix name of the file is. html or. htm
- Tags must be tagged with < > tag name, e.g. <p>,
- The notation of the property: key= "Value"
- Notation:<!--Comments--
- HTML is case insensitive, lowercase is recommended
3) Note
- Place all content in
- General labels have start and end tags, no end tags called empty labels
- tags must be properly nested and closed (empty label use/close in start tag)
4) Example
<! DOCTYPE html>
- <body>: Body tag, storing the content of the page to be displayed
<meta charset= "Utf-8" > Set up the character set of the webpage to solve the Chinese garbled problem.
Second, common label 1) titleFormat:
Description
A.
B. There is a built-in font size, text bold, occupy a line
Property:
Align alignment, left-aligned, center center, right-aligned
2) FontFormat:<font> Text </font>
Description
A. Deprecated, not recommended
B. You can set the font, size, and color of text
Property:
Face font
Size, value range 1~7, default value 3
Color colors
3) ParagraphFormat:<p> paragraph text </p>
4) Formatting text
- Bold Body:<b></b>
- Italic:<i></i>
- Emphasizing:<strong></strong>
5) Empty Label
- Horizontal:
- Line break:<br/>
6) ImageFormat:
Property:
src Picture Path
ALT replaces text
Title The text displayed when the mouse hovers
Width widths
Height altitude
7) List
- Sequence list <ol>
- The Type property value is set in the order of types, which are desirable values: 1 for the number, a for the English letter, I I for the Roman alphabet
- Unordered list <ul>
- The Type property value sets the kind of symbol, which is desirable: circle,disc,circle
<ol type= "A" > <li>Java</li> <li>Python</li> <li>javascript</ Li></ol><ul type= "Circle" > <li>A</li> <li>T</li> <li>b </li></ul>
8) HyperlinksFormat: <a href= "" > Text or pictures </a>
Property:
The address of the href jump
Target how to open a link
_self this tab opens
_blank new Tab Opens
FrameName open in the specified frame
Java web series---HTML