Home Web Front-end HTML Tutorial HTML common tags_html/css_WEB-ITnose

HTML common tags_html/css_WEB-ITnose

Jun 24, 2016 am 11:43 AM

常用HTML标签元素结合及简介

<html></html> 创建一个HTML文档
<head></head> 设置文档标题和其它在网页中不显示的信息
<title></title> 设置文档的标题        
<h1></h1> 最大的标题
<pre></pre> 预先格式化文本          
<u></u> 下划线
<b></b> 黑体字    
<i></i> 斜体字    
<tt></tt> 打字机风格的字体
<cite></cite> 引用,通常是斜体        
<em></em> 强调文本(通常是斜体加黑体)
<strong></strong> 加重文本(通常是斜体加黑体)
<font size="" color=""></font> 设置字体大小从1到7,颜色使用名字或RGB的十六进制值
<BASEFONT></BASEFONT> 基准字体标记
<big></big> 字体加大
<SMALL></SMALL> 字体缩小        
<STRIKE></STRIKE> 加删除线
<CODE></CODE> 程式码          
<KBD></KBD> 键盘字
<SAMP></SAMP> 范例    
<VAR></VAR> 变量
<BLOCKQUOTE></BLOCKQUOTE> 向右缩排
<DFN></DFN> 述语定义
<ADDRESS></ADDRESS> 地址标记
<sup></SUP> 上标字    
<SUB></SUB> 下标字
<xmp>...</xmp>固定?度字体(在文件中空白、?行、定位功能有效)
<plaintext>...</plaintext>固定?度字?(不?行??符?)
<listing>...</listing> 固定?度小字?  
<font color=00ff00>...</font>字??色
<font size=1>...</font>最小字?  
<font style ='font-size:100 px'>...</font>?限增大 

 

格式标志标签
<p></p> 创建一个段落    
<p align=""> 将段落按左、中、右对齐  
<br> 换行 插入换行符  
<blockquote></blockquote> 从两边缩进文本
<dl></dl> 定义列表
<dt> 放在每个定义术语词前
<dd> 放在每个定义之前
<ol></ol> 创建一个标有数字的列表  
<ul></ul> 创建一个标有圆点的列表
<li> 放在每个列表项之前,若在<ol></ol>之间则每个列表项加上一个数字,
  若在<ul></ul>之间则每个列表项加上一个圆点    
<div align=""></div> Used to typeset large HTML paragraphs, and also used to format tables
<MENU> Option list
<DIR> Directory list
<nobr></nobr> Force no line breaks
<hr size='9' width='80%' color='ff0000'>Horizontal? (?Degree)
<center></center> Horizontal centering

Link flag table flag
<a href="URL"></a> Create a hypertext link
<a href="mailtEMAIL">
< /a> Create an automatic email link
<a name="name"></a> Create a bookmark inside the document
<a href="#name">< /a> Creates a link to a bookmark located within the document
<BASE> The URL of the source of all other links in the document that is not recognized by this site
<LINK> Defines the relationship between a link and the source

Link tag annotation:

◆target="..." determines where the link source is displayed (user-defined name, _blank, _parent, _self, _top
◆rel="..."The type of link to send
◆rev="..."The type of link to save
◆accesskey="..."Specify the hotkey of the element
◆shape="..." allows us to use defined shapes to define client-side graphics mirrors (default, rect, circle, poly
◆coord="..." Use pixels or length percentages to define the size of the shape
◆tabindex="..." Use the defined tabindex element to set the focus acquisition order between each element (use the tab key to focus the element)

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Difficulty in updating caching of official account web pages: How to avoid the old cache affecting the user experience after version update? Difficulty in updating caching of official account web pages: How to avoid the old cache affecting the user experience after version update? Mar 04, 2025 pm 12:32 PM

Difficulty in updating caching of official account web pages: How to avoid the old cache affecting the user experience after version update?

How do I use HTML5 form validation attributes to validate user input? How do I use HTML5 form validation attributes to validate user input? Mar 17, 2025 pm 12:27 PM

How do I use HTML5 form validation attributes to validate user input?

How to efficiently add stroke effects to PNG images on web pages? How to efficiently add stroke effects to PNG images on web pages? Mar 04, 2025 pm 02:39 PM

How to efficiently add stroke effects to PNG images on web pages?

What is the purpose of the <iframe> tag? What are the security considerations when using it? What is the purpose of the <iframe> tag? What are the security considerations when using it? Mar 20, 2025 pm 06:05 PM

What is the purpose of the <iframe> tag? What are the security considerations when using it?

What is the purpose of the <meter> element? What is the purpose of the <meter> element? Mar 21, 2025 pm 12:35 PM

What is the purpose of the <meter> element?

What is the purpose of the <datalist> element? What is the purpose of the <datalist> element? Mar 21, 2025 pm 12:33 PM

What is the purpose of the <datalist> element?

What are the best practices for cross-browser compatibility in HTML5? What are the best practices for cross-browser compatibility in HTML5? Mar 17, 2025 pm 12:20 PM

What are the best practices for cross-browser compatibility in HTML5?

What is the purpose of the <progress> element? What is the purpose of the <progress> element? Mar 21, 2025 pm 12:34 PM

What is the purpose of the <progress> element?

See all articles