当前位置:网站首页>Web page basic label
Web page basic label
2022-07-26 07:32:00 【Mourning】
Speaking of the front end , I guess you must have a headache about the memory of labels when you first learn , Today, I'll give you a summary of the label instructions commonly used in front-end web page production .
- Title Tag (header1~header5)
<h1> First level label </h1> <h2> Secondary label </h2> <h3> Three level label </h3> <h4> Level 4 labels </h4> <h5> Five labels </h5>
2. Paragraph Tags (paragraph)
<p></p>Without paragraph labels :
Run fast Run fast
One has no tail One has no eyes It's strange. It's strange. 
When there is a paragraph label :
<p> Run fast Run fast </p>
<p> One has no tail One has no eyes It's strange. It's strange. </p>
3. Line wrap label (break)
<br/>The specific usage is consistent with that of paragraph labels .
4. Horizontal label (horizontal)
<hr/>
5. Bold style labels
- In bold :strong
- Italics :em(emphasis)
bold : <strong>i love</strong> Italics :<em>i love</em>
6. Notes and special symbols
- notes :Ctrl+/
- Space : (non breaking space)
- Greater than :>(greater than)
- Less than :<(less than)
- Copyright :©(copyright)
7. Image tag
src: Picture path
alt: The text message displayed when the picture is not displayed
<img src="" alt="">About .../ and ./
.../: Upper level directory , Parent directory
./: Current directory
8. Hyperlinks
herf: Link address
target: Where does the link window open
- -balck: Open in new window
- -self: Open... In the current window
<a href=""target="_blank"> Click me to jump </a><br/>
<a href="https://www.baidu.com"target="-_blank"> Click me to jump to Baidu </a>
<a href="mailto:[email protected]"> Click contact me </a>9. Anchor link
Use a Label plus name attribute
name: Set anchor name
<a name="top"> Top </a>- Use link jumps to specify anchors
href: You need to jump to the anchor name ,# Followed by the anchor name
<a href="#top"> Back to the top </a>- Use the link to jump to the specified anchor of the specified page
<a href="https://www.baidu.com"target="-_blank"> Click me to jump to Baidu </a>10. Functional links
Email links
stay href Property mailto Followed by specific email
<a href="mailto:[email protected]"> Click contact me </a>QQ Extension
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2::53" alt=" Add me , Click me to get the little movie " title=" Add me , Click me to get the little movie "/></a>11. About block elements and column elements
A block element : Whatever the content , Monopolize one line
Inline elements : The width depends on the size of the content , Left and right are elements in a row, which can be arranged in one line
12. list
- Ordered list
<ol> <li>java</li> <li> front end </li> <li> Back end </li> </ol>
Unordered list
<ul>
<li>java</li>
<li> front end </li>
<li> Back end </li>
</ul>- Custom list
dl: label
dt: List name
dd: List content
<dl>
<dt> Discipline </dt>
<dd>java</dd>
<dd>c</dd>
<dd>c++</dd>
<dt> City </dt>
<dd> Xi'an </dd>
<dd> Chongqing </dd>
<dd>c++</dd>
</dl> 
13. Form and content
table: label
tr: That's ok
td: Column
- colspan: Cross column properties
- rowspan: Cross line properties
<table border="1px">
<tr>
<td colspan="3"> Student achievement </td>
</tr>
<tr><td rowspan="2"> Liu Ziwen </td>
<td> Chinese language and literature </td>
<td>100</td>
</tr>
<tr>
<td> mathematics </td>
<td>100</td>
</tr>
<tr>
<td rowspan="2"> Liu Fei </td>
<td> Chinese language and literature </td>
<td>100</td>
</tr>
<tr>
<td> mathematics </td>
<td>90</td>
</tr>
</table> 
14. Media elements
src : File path
controls : Control
autoplay : Auto play
loop : Loop Playback
video :
<video src="../"controls autoplay></video>Audio :
<audio src="../"controls autoplay></audio>15.iframe Inline framework
Inline framework is to embed another web page in one web page
src : Pages displayed in the default inline frame
frameborder : Whether the frame displays a border (1 or 0)
width : Set the frame width
height : Set the frame height
name : Set the name of the frame , Can be used to set a Labeled target attribute , send a The page with the label jump is displayed in the inline frame
<iframe src="http://www.baidu.com" name="hello" farmeborder="0" width="1000px" height="800px" ></iframe>16. Forms
action : Where to submit the form data
method : How to submit data
- get : We can submit URL See the information we submitted in , unsafe , But efficient
- post : Can't see the information we submitted , But it's safe , Can transfer large files
input : input label
type : input Tags are based on tag properties type Different values of can have different presentation forms
- text : Text type input box
- password : Password type input box
- submit : Submit type input box
name : Every input Identification of the label
<input type="radio" value="boy" name="sex"/> male
<input type="radio" value="girl" name="sex"/> Woman <h1> register </h1>
<form action="" method="get"></form> post It's safer
<p> name :<input type="text" name="username" value=" Miss Zou " maxlength="8" size="30"></p>
<p> password :<input type="password" name="pwd"></p>17. Radio button
Set up input Labeled type The attribute is radio
checked : Selected by default
Be careful : Radio buttons have the concept of groups , That's more than one type by radio Radio buttons of their name Attribute values need to be the same , Only one can be selected in this way , Otherwise, you can choose more
<input type="radio" value="boy" name="sex"/> male
<input type="radio" value="girl" name="sex"/> Woman 18. Selected by default
checked : Selected by default
Set up input Labeled type The attribute is checkbox, Multiple buttons in the same button group need to be set name Property values are the same
<p> hobby :
<input type="checkbox" value="sleep" name="hobby"> sleep
<input type="checkbox" value="chat" name="hobby"> Chat
<input type="checkbox" value="game" name="hobby"> game
<input type="checkbox" value="code" name="hobby" checked> Knock on the code
<input type="checkbox" value="girl" name="hobby"> The girl
</p>19. Other buttons
When input Labeled type When the attribute value is
button: General buttonsubmit: Submit button ( Submit form data )reset: Reset button ( Reset form data )image: Picture button ( The picture is a button )
<P> Button :
<input type="button" name="btn1" value=" Click the side length ">
</P>
<p>
<input type="submit">
<input type="reset" value=" Empty the form ">
</p>20. A drop-down box
name : Set the name of the drop-down box
value : Set the sub element value of the drop-down box
selected : Default choice
<p> Country :
<select name=" List name ">
<option value="zg"> China </option>
<option value="us"> The United States </option>
<option value="en"> The British </option>
<option value="jn"> Japan </option>
<option value="cx"> North Korea </option>
</select>
</p>21. Text domain
name : The name of the text field
id : Text field id
cols : The width of the text field ( The number of columns )
rows : The height of the text field ( The number of lines )
<p> feedback :
<textarea name="textarea" id="" cols="30" rows="10"> Text content </textarea>
</p>22. File domain
Set up input Labeled type The property value is file when , input The tag will be displayed as a file upload button style
name : Set the name of the uploaded file ( This is not the real name of the file , It's our own definition )
<p>
<input type="file" name="files">
<input type="button" value=" Upload " name="upload">
</p>23.input Simple verification
<p> mailbox :
<input type="email" name="email">
</p>
<p>URL:
<input type="url" namr="url">
</p>
<p> Digital Verification :
<input type="number" name="number" max="100" min="0" step="10">
</p>
<p> Slider label :
<input type="range" name="voice" min="0" max="100">
</p>
<p> Search for :
<input type="search" name="search">
</p>边栏推荐
- Taishan Office Technology Lecture: how to calculate page blank (margin)
- Regular expression rules and common regular expressions
- Sort: merge sort and quick sort
- Anaconda 中安装 百度飞浆Paddle 深度学习框架 教程
- 6、组合数据类型
- 0动态规划 LeetCode1567. 乘积为正数的最长子数组长度
- Kdd2022 | uncover the mystery of Kwai short video recommendation re ranking, and recommend the new SOTA
- DADNN: Multi-Scene CTR Prediction via Domain-Aware Deep Neural Network
- [daily question 1] 919. Complete binary tree inserter
- 0 dynamic programming leetcode1567. Length of the longest subarray with positive product
猜你喜欢

System architecture & microservices

元宇宙基础设施:WEB 3.0 chain33 优势分析

NFT数字藏品开发:数字藏品与NFT的六大区别

:app:checkDebugAarMetadata 2 issues were found when checking AAR metadata: 2 issues were found when

Interview question set

Installation of Baidu flying paste deep learning framework tutorial in Anaconda

The analysis, solution and development of the problem of router dropping frequently

Learning Efficient Convolutional Networks Through Network Slimming

Comparison and difference between dependence and Association

The interface automation test with a monthly salary of 12k+ takes you to get started in 3 minutes
随机推荐
hot100 哈希
WCF 入门教程二
NFT digital collection system development: digital collections give new vitality to brands
以太网交换安全
In July, glassnode data showed that the open position of eth perpetual futures contract on deribit had just reached a one month high of $237959827.
如何关闭高位端口
力扣(LeetCode)206. 反转链表(2022.07.25)
此章节用于补充
Network trimming: a data driven neuron pruning approach towards efficient deep architectures paper translation / Notes
TensorFlow学习日记之tflearn
4、数据的完整性
Model pruning 3: learning structured sparsity in deep neural networks
Fang Wenshan, Jay Chou's best partner, will officially announce "Hualiu yuancosmos" on July 25
MySQL syntax (2) (pure syntax)
Vscode cannot start the problem solving idea
Redis系列之什么是布隆过滤器?
6、MySQL数据库的备份与恢复
基于Thinkphp的开源管理系统
LeetCode剑指offer专项(一)整数
【推荐系统经典论文(十)】阿里SDM模型

