欢迎来到虫虫下载站 | 资源下载 资源专辑 关于我们
虫虫下载站

html_elements.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 Elements</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 Elements</h1>
<a href="html_intro.asp"><img border="0" src="../images/btn_previous.gif" width="100" height="20" alt="Previous" /></a>
<a href="html_primary.asp"><img border="0" src="../images/btn_next.gif" width="100" height="20" alt="Next" /></a>
<hr />

<p class="intro">HTML documents are text files made up of HTML elements.</p>

<p class="intro">HTML elements are defined using HTML
tags.</p>

<hr />

<h2>HTML Tags</h2>

<ul>
	<li>HTML tags are used to mark-up HTML <b> elements</b></li>
	
	<li>HTML tags are surrounded by the <b> two characters &lt; and &gt;</b></li>
	
  	<li>The surrounding characters are called <b>angle brackets</b></li>
  	
  	<li>HTML tags normally <b> come in pairs</b> like &lt;b&gt; and &lt;/b&gt;</li>
  	
  	<li>The first tag in a pair is the <b> start tag,</b> the 
  	second tag is the <b> end tag</b></li>
  	
  	<li>The text between the start and end tags is the <b>element content</b></li>
  	
  	<li>HTML tags are <b> not case sensitive,</b> &lt;b&gt; means the same as &lt;B&gt;</li>

</ul>

<hr />
<h2>HTML Elements</h2>

<p>Remember the HTML example from the previous page:</p>

<table width='100%' border="1" class="ex" cellspacing="0"><tr><td>
<pre>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Title of page&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
This is my first homepage. &lt;b&gt;This text is bold&lt;/b&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
</td></tr></table>

<p>This is an HTML element:</p>

<table width='100%' border="1" class="ex" cellspacing="0"><tr><td>
<pre>&lt;b&gt;This text is bold&lt;/b&gt;</pre>
</td></tr></table>

<p>The HTML element starts with a <b> start tag</b>: &lt;b&gt;<br />
The <b> content</b> of the HTML element is: This text is bold<br />
The HTML element ends with an <b> end tag</b>: &lt;/b&gt;</p>

<p>The purpose of the &lt;b&gt; tag is to define an HTML element that should be displayed as
bold.</p>

<p>This is also an HTML element:</p>

<table width='100%' border="1" class="ex" cellspacing="0"><tr><td>
<pre>&lt;body&gt;
This is my first homepage. &lt;b&gt;This text is bold&lt;/b&gt;
&lt;/body&gt;</pre>
</td></tr></table>

<p>This HTML element starts with the start tag &lt;body&gt;, and ends with the
end tag &lt;/body&gt;.</p>

<p>The purpose of the &lt;body&gt; tag is to define the HTML element that
contains the body of the HTML document.</p>

<hr />
<h2>Why do We Use Lowercase Tags?</h2>
<p>We have just said that HTML tags are not case sensitive: &lt;B&gt; means the
same as &lt;b&gt;. If you surf the Web, you will notice that plenty of web sites use uppercase HTML tags in their 
source code. We
always use lowercase tags. Why?</p>
<p>If you want to follow the latest web standards, you should always use lowercase tags. The World Wide Web Consortium (W3C) recommends lowercase tags in
their HTML 4 recommendation, and XHTML (the next generation HTML) demands
lowercase tags.</p>

<hr />
<a href="html_intro.asp"><img border="0" src="../images/btn_previous.gif" width="100" height="20" alt="Previous" /></a>
<a href="html_primary.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 + -