HTML标签超详细的图文演示再来一波~~~
如果还没有看过昨天的福利的,那可要抓紧喽,传送门:HTML标签----图文详解
本文主要内容
清单标签(列表标签)
列表标签分为三种。
1、无序列表,无序列表中的每一项是-
英文单词:un list。
例如:
<ul> <li>默认1</li> <li>默认2</li> <li>默认3</li></ul>
效果:
属性:
效果如下:
不光是
- 标签有type属性,
- 标签也有type属性(虽然说这种写法很少见)。效果如下:
2、有序列表
- ,里面的每一项是
英文单词:Order List。
例如:<ol > <li>呵呵哒1</li> <li>呵呵哒2</li> <li>呵呵哒3</li></ol>
效果:
属性:
- type="属性值"。属性值可以是:1(阿拉伯数字,默认)、a、A、i、I。结合start属性表示从几开始。
- 里面的
举例:
<ol type="1"> <li>呵呵</li> <li>呵呵</li> <li>呵呵</li></ol><ol type="a"> <li>嘿嘿</li> <li>嘿嘿</li> <li>呵呵</li></ol><ol type="i" start="4"> <li>哈哈</li> <li>哈哈</li> <li>哈哈</li></ol><ol type="I" start="10"> <li>么么</li> <li>么么</li> <li>么么</li></ol>
效果如下:
3、定义列表
英文单词:define list,没有属性。
举例:
<dl> <dt>第一条</dt> <dd>你若是觉得你有实力和我玩,良辰不介意奉陪到底</dd> <dd>我会让你明白,我从不说空话</dd> <dd>我是本地的,我有一百种方式让你呆不下去;而你,无可奈何</dd> <dt>第二条</dt> <dd>良辰最喜欢对那些自认能力出众的人出手</dd> <dd>你可以继续我行我素,不过,你的日子不会很舒心</dd> <dd>你只要记住,我叫叶良辰</dd> <dd>不介意陪你玩玩</dd> <dd>良辰必有重谢</dd></dl>
效果:
表格标签
表格标签用
组成的。 所以我们要记住,一个表格是由行组成的(行是由列组成的),而不是由行和列组成的。 在以前,要想固定标签的位置,唯一的方法就是表格。现在可以通过CSS定位的功能来实现。但是现在在做页面的时候,表格作用还是有一些的。 例如,一行的单元格: <table> <tr> <td></td> <td></td> <td></td> <td></td> </tr> </table> 上面的表格中没有加文字,所以在生成的网页中什么都看不到。 <table> <tr> <td>生命壹号</td> <td>23</td> <td>男</td> <td>黄冈</td> </tr> <tr> <td>许嵩</td> <td>29</td> <td>男</td> <td>安徽</td> </tr> <tr> <td>邓紫棋</td> <td>23</td> <td>女</td> <td>香港</td> </tr> </table> 效果: 上图中的表格好像没看到边框呀,不急,接下来看看
|
效果:
表格的标签、
标签、
标签 这三个标签有与没有的区别:
1、如果写了,那么这三个部分的代码顺序可以任意,浏览器显示的时候还是按照thead、tbody、tfoot的顺序依次来显示内容。如果不写thead、tbody、tfoot,那么浏览器解析并显示表格内容的时候是从按照代码的从上到下的顺序来显示。
2、当表格非常大内容非常多的时候,如果用thead、tbody、tfoot标签的话,那么数据可以边获取边显示。如果不写,则必须等表格的内容全部从服务器获取完成才能显示出来。 举例:
<body> <table border="1"> <tbody> <tr> <td>生命壹号</td> <td>23</td> <td>男</td> <td>黄冈</td> </tr> </tbody> <tfoot> <tr> <td>许嵩</td> <td>29</td> <td>男</td> <td>安徽</td> </tr> </tfoot> <thead> <tr> <td>邓紫棋</td> <td>23</td> <td>女</td> <td>香港</td> </tr> </thead> </table> </body>
效果:
框架标签
如果我们希望在一个网页中显示多个页面,那框架标签就派上用场了。
注意,框架标签不能放在标签里面,因为标签代表的只是一个页面,而框架标签代表的是多个页面。
框架的集合用
:框架的集合
一个框架的集合可以包含多个框架或框架的集合。
属性:
rows:水平分割,将框架分为上下部分。写法有两种:
1、绝对值写法:rows="200,*" 其中*代表剩余的。这里其实包含了两个框架:上面的框架占200个像素,下面的框架占剩下的部分。
2、相对值写法:rows="30%,*" 其中*代表剩余的。这里其实包含了两个框架:上面的框架占30%,下面的框架占70%。
注:如果你想将框架分成很多行,在属性值里用逗号隔开就行了。
cols:垂直分割,将框架分为左右部分。写法有两种:
1、绝对值写法:cols="200,*" 其中*代表剩余的。这里其实包含了两个框架:左边的框架占200个像素,右边的框架占剩下的部分。
2、相对值写法:cols="30%,*" 其中*代表剩余的。这里其实包含了两个框架:左边的框架占30%,右边的框架占70%。
注:如果你想将框架分成很多列,在属性值里用逗号隔开就行了。
效果:
上图中,如果删掉页面right.html,显示效果如下:
:框架
一个框架显示一个页面。
属性:
scrolling="no":是否需要滚动条。默认值是true。
noresize:不可以改变框架大小。默认情况下,单个框架的边界是可以拖动的,这样的话,框架大小就不固定了。如果用了这个属性值,框架大小将固定。 举例:
<frame src="top.html" noresize></frame>
bordercolor="#00FF00":给框架的边框定义颜色。这个属性在框架集合中同样适用。
颜色这个属性在IE浏览器中生效,但是在google浏览器中无效,不知道为啥。
frameborder="0"或frameborder="1":隐藏或显示边框。
name:给框架起一个名字。
利用name这个属性,我们可以在框架里进行超链。
举例:
效果:
内嵌框架
内嵌框架用
src="subframe/the_second.html":内嵌的那个页面
width=800:宽度
height=“150:高度
scrolling="no":是否需要滚动条。默认值是true。
name="mainFrame":窗口名称。公有属性。 效果:
内嵌框架举例:(在内嵌页面中切换显示不同的压面)
<body> <a href="文字页面.html" target="myframe">默认显示文字页面</a><br> <a href="图片页面.html" target="myframe">点击进入图片页面</a><br> <a href="表格页面.html" target="myframe">点击进入表格页面</a><br> <iframe src="文字页面.html" width="400" height="400" name="myframe"></iframe> <br> 嘿嘿 </body>
效果演示:
表单标签
表单标签用
属性:
rows:水平分割,将框架分为上下部分。写法有两种:
1、绝对值写法:rows="200,*" 其中*代表剩余的。这里其实包含了两个框架:上面的框架占200个像素,下面的框架占剩下的部分。
2、相对值写法:rows="30%,*" 其中*代表剩余的。这里其实包含了两个框架:上面的框架占30%,下面的框架占70%。
注:如果你想将框架分成很多行,在属性值里用逗号隔开就行了。
cols:垂直分割,将框架分为左右部分。写法有两种:
1、绝对值写法:cols="200,*" 其中*代表剩余的。这里其实包含了两个框架:左边的框架占200个像素,右边的框架占剩下的部分。
2、相对值写法:cols="30%,*" 其中*代表剩余的。这里其实包含了两个框架:左边的框架占30%,右边的框架占70%。
注:如果你想将框架分成很多列,在属性值里用逗号隔开就行了。
属性:
颜色这个属性在IE浏览器中生效,但是在google浏览器中无效,不知道为啥。
frameborder="0"或frameborder="1":隐藏或显示边框。
name:给框架起一个名字。
利用name这个属性,我们可以在框架里进行超链。
举例:

The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

The roles of HTML, CSS and JavaScript in web development are: HTML is responsible for content structure, CSS is responsible for style, and JavaScript is responsible for dynamic behavior. 1. HTML defines the web page structure and content through tags to ensure semantics. 2. CSS controls the web page style through selectors and attributes to make it beautiful and easy to read. 3. JavaScript controls web page behavior through scripts to achieve dynamic and interactive functions.

HTMLisnotaprogramminglanguage;itisamarkuplanguage.1)HTMLstructuresandformatswebcontentusingtags.2)ItworkswithCSSforstylingandJavaScriptforinteractivity,enhancingwebdevelopment.

HTML is the cornerstone of building web page structure. 1. HTML defines the content structure and semantics, and uses, etc. tags. 2. Provide semantic markers, such as, etc., to improve SEO effect. 3. To realize user interaction through tags, pay attention to form verification. 4. Use advanced elements such as, combined with JavaScript to achieve dynamic effects. 5. Common errors include unclosed labels and unquoted attribute values, and verification tools are required. 6. Optimization strategies include reducing HTTP requests, compressing HTML, using semantic tags, etc.

HTML is a language used to build web pages, defining web page structure and content through tags and attributes. 1) HTML organizes document structure through tags, such as,. 2) The browser parses HTML to build the DOM and renders the web page. 3) New features of HTML5, such as, enhance multimedia functions. 4) Common errors include unclosed labels and unquoted attribute values. 5) Optimization suggestions include using semantic tags and reducing file size.

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Atom editor mac version download
The most popular open source editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Zend Studio 13.0.1
Powerful PHP integrated development environment