⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 html_formatting.asp@output=print

📁 W3Schools tutorial..web designing
💻 ASP@OUTPUT=PRINT
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>HTML Text Formatting</title>
 
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />

<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />

<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

</head>
<body>

<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>


<h1>HTML Text Formatting</h1>
<a href="html_attributes.asp"><img border="0" src="../images/btn_previous.gif" width="100" height="20" alt="Previous" /></a>
<a href="html_entities.asp"><img border="0" src="../images/btn_next.gif" alt="Next" width="100" height="20" /></a>
<hr />

<p class="intro">HTML defines a lot of elements for formatting output, like bold or italic
text.</p>
<p class="intro">Below are a lot of examples that you can try out yourself:</p>
<hr />

<h2>Examples</h2>

<p><a target="_blank" href="tryit.asp@filename=tryhtml_formattingch">Text formatting</a><br />
This example demonstrates how you can format text in an HTML document.
</p>

<p>
<a target="_blank" href="tryit.asp@filename=tryhtml_pre">Preformatted text</a><br />
This example demonstrates how you can control the line breaks and spaces with the
pre tag.
</p>

<p><a target="_blank" href="tryit.asp@filename=tryhtml_computeroutput">&quot;Computer output&quot;
tags</a><br />
This example demonstrates how different &quot;computer output&quot; tags
will be displayed.
</p>

<p><a target="_blank" href="tryit.asp@filename=tryhtml_address">Address</a><br />
This example demonstrates how to write an address in an HTML document.
</p>

<p><a target="_blank" href="tryit.asp@filename=tryhtml_abbr">Abbreviations and acronyms</a><br />
This example demonstrates how to handle an abbreviation or an acronym.
</p>

<p><a target="_blank" href="tryit.asp@filename=tryhtml_bdo">Text direction</a><br />
This example demonstrates how to change the text direction.
</p>

<p><a target="_blank" href="tryit.asp@filename=tryhtml_q">Quotations</a><br />
This example demonstrates how to handle long and short quotations.</p>

<p><a target="_blank" href="tryit.asp@filename=tryhtml_del">Deleted and inserted text</a><br />
This example demonstrates how to mark a text that is deleted or inserted to a
document.
</p>

<hr />
<h2>How to View HTML Source</h2>
<p>Have you ever seen a Web page and wondered &quot;Hey! How did they do that?&quot;</p>
<p>To find out, click the VIEW option in your browser's toolbar and
select SOURCE or PAGE SOURCE. This will open a window that shows you the 
HTML code of the page.</p>

<hr />

<h2>Text Formatting Tags</h2>
<table class="ex" cellspacing="0" border="1" width="100%">
<tr>
<th width="20%" align="left">Tag</th>
<th width="80%" align="left">Description</th>
</tr>
<tr>
<td><a href="../tags/tag_font_style.asp">&lt;b&gt;</a></td>
<td>Defines bold text</td>
</tr>
<tr>
<td><a href="../tags/tag_font_style.asp">&lt;big&gt;</a></td>
<td>Defines big text</td>
</tr>
<tr>
<td><a href="../tags/tag_phrase_elements.asp">&lt;em&gt;</a></td>
<td>Defines emphasized text&nbsp;</td>
</tr>
<tr>
<td><a href="../tags/tag_font_style.asp">&lt;i&gt;</a></td>
<td>Defines italic text</td>
</tr>
<tr>
<td><a href="../tags/tag_font_style.asp">&lt;small&gt;</a></td>
<td>Defines small text</td>
</tr>
<tr>
<td><a href="../tags/tag_phrase_elements.asp">&lt;strong&gt;</a></td>
<td>Defines strong text</td>
</tr>
<tr>
<td><a href="../tags/tag_sup.asp">&lt;sub&gt;</a></td>
<td>Defines subscripted text</td>
</tr>
<tr>
<td><a href="../tags/tag_sup.asp">&lt;sup&gt;</a></td>
<td>Defines superscripted text</td>
</tr>
<tr>
<td><a href="../tags/tag_ins.asp">&lt;ins&gt;</a></td>
<td>Defines inserted text</td>
</tr>
<tr>
<td><a href="../tags/tag_del.asp">&lt;del&gt;</a></td>
<td>Defines deleted text</td>
</tr>
<tr>
<td><a href="../tags/tag_strike.asp">&lt;s&gt;</a></td>
<td class="deprecated">Deprecated. Use &lt;del&gt; instead</td>
</tr>
<tr>
<td><a href="../tags/tag_strike.asp">&lt;strike&gt;</a></td>
<td class="deprecated">Deprecated. Use &lt;del&gt; instead</td>
</tr>
<tr>
<td><a href="../tags/tag_u.asp">&lt;u&gt;</a></td>
<td class="deprecated">Deprecated. Use styles instead</td>
</tr>
</table>

<h2>&quot;Computer Output&quot; Tags</h2>
<table class="ex" cellspacing="0" border="1" width="100%">
<tr>
<th width="20%" align="left">Tag</th>
<th width="80%" align="left">Description</th>
</tr>
<tr>
<td><a href="../tags/tag_phrase_elements.asp">&lt;code&gt;</a></td>
<td>Defines computer code text</td>
</tr>
<tr>
<td><a href="../tags/tag_phrase_elements.asp">&lt;kbd&gt;</a></td>
<td>Defines keyboard text&nbsp;</td>
</tr>
<tr>
<td><a href="../tags/tag_phrase_elements.asp">&lt;samp&gt;</a></td>
<td>Defines sample computer code</td>
</tr>
<tr>
<td><a href="../tags/tag_font_style.asp">&lt;tt&gt;</a></td>
<td>Defines teletype text</td>
</tr>
<tr>
<td><a href="../tags/tag_phrase_elements.asp">&lt;var&gt;</a></td>
<td>Defines a variable</td>
</tr>
<tr>
<td><a href="../tags/tag_pre.asp">&lt;pre&gt;</a></td>
<td>Defines preformatted text</td>
</tr>
<tr>
<td>&lt;listing&gt;</td>
<td class="deprecated">Deprecated. Use &lt;pre&gt; instead </td>
</tr>
<tr>
<td>&lt;plaintext&gt;</td>
<td class="deprecated">Deprecated. Use &lt;pre&gt; instead</td>
</tr>
<tr>
<td>&lt;xmp&gt;</td>
<td class="deprecated">Deprecated. Use &lt;pre&gt; instead</td>
</tr>
</table>

<h2>Citations, Quotations, and Definition Tags</h2>
<table class="ex" cellspacing="0" border="1" width="100%">
<tr>
<th width="20%" align="left">Tag</th>
<th width="80%" align="left">Description</th>
</tr>
<tr>
<td><a href="../tags/tag_abbr.asp">&lt;abbr&gt;</a></td>
<td>Defines an abbreviation</td>
</tr>
<tr>
<td><a href="../tags/tag_acronym.asp">&lt;acronym&gt;</a></td>
<td>Defines an acronym</td>
</tr>
<tr>
<td><a href="../tags/tag_address.asp">&lt;address&gt;</a></td>
<td>Defines an address element</td>
</tr>
<tr>
<td><a href="../tags/tag_bdo.asp">&lt;bdo&gt;</a></td>
<td>Defines the text direction</td>
</tr>
<tr>
<td><a href="../tags/tag_blockquote.asp">&lt;blockquote&gt;</a></td>
<td> Defines a long quotation</td>
</tr>
<tr>
<td><a href="../tags/tag_q.asp">&lt;q&gt;</a></td>
<td>Defines a short quotation</td>
</tr>
<tr>
<td><a href="../tags/tag_phrase_elements.asp">&lt;cite&gt;</a></td>
<td>Defines a citation</td>
</tr>
<tr>
<td><a href="../tags/tag_phrase_elements.asp">&lt;dfn&gt;</a></td>
<td>Defines a definition term</td>
</tr>
</table>
<br />
<hr />
<a href="html_attributes.asp"><img border="0" src="../images/btn_previous.gif" width="100" height="20" alt="Previous" /></a>
<a href="html_entities.asp"><img border="0" src="../images/btn_next.gif" width="100" height="20" alt="Next" /></a>

<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -