Home > Web Front-end > H5 Tutorial > body text

Introduction to HTML5 text style examples

PHP中文网
Release: 2017-06-20 13:49:22
Original
2080 people have browsed it

Text style

 <b>加粗</b>

 <i>倾斜</i>
 <u>下划线</u>
 <s>删除线</s>
 <sub>下标</sub>
 <sup>上标</sup>
Copy after login
<code class="xml"><span class="hljs-tag"><span class="hljs-name"><span class="hljs-tag"><span class="hljs-name"><span class="hljs-tag"> <<span class="hljs-name">p></span></span></span></span></span></span></code><code class="xml"><span class="hljs-tag">段落元素</span></code><code class="xml"><span class="hljs-tag"><span class="hljs-name"><span class="hljs-tag"><span class="hljs-name"><span class="hljs-tag"><span class="hljs-name"><span class="hljs-tag"></<span class="hljs-name">p><br/></span></span></span></span></span></span></span></span></code>
Copy after login
<code class="xml"> <span class="hljs-tag"><<span class="hljs-name">br/>强制换行</span></span></code><code class="xml"><br/><code class="xml"><span class="hljs-tag"> <br/> <<span class="hljs-name">hr/>分割线</span></span></code><code class="xml"><br/></code></code>
Copy after login
<code class="xml">  <br/></code>
Copy after login
 <br/>
Copy after login
<code class="xml"><img src="https://img.php.cn/upload/article/000/000/001/a65c675bee748228335923caaac3fa27-0.png" alt=""/><br/><span   style="max-width:90%"><strong>制作表格</strong></span></code>
Copy after login
<code class="coq"> table<br/> tr(行)<br/> td(列)     
 cellspacing:设置外边距     
 cellpadding:设置内边距     
 align:水平对其方式<span class="hljs-built_in">left/<span class="hljs-built_in">right/center     
 valign:横向对其方式<span class="hljs-built_in">top/middle/<span class="hljs-built_in">bottom     
 caption设置表格标题,必须跟在             
 table后面显示在表格上面<br/></span></span></span></span></code>
Copy after login
 
    1 2 3
    4 5 6
     
     78 9
Copy after login

List

Unserialized list:

<ul><li>1</li><li>2</li><li>3</li><li>4</li><li>5</li></ul>
Copy after login

Serialized list:

<ol><li>a</li><li>b</li><li>c</li><li>d</li><li>e</li></ol>
Copy after login

The above is the detailed content of Introduction to HTML5 text style examples. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!