html_elements.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 < and ></b></li>
<li>The surrounding characters are called <b>angle brackets</b></li>
<li>HTML tags normally <b> come in pairs</b> like <b> and </b></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> <b> means the same as <B></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><html>
<head>
<title>Title of page</title>
</head>
<body>
This is my first homepage. <b>This text is bold</b>
</body>
</html></pre>
</td></tr></table>
<p>This is an HTML element:</p>
<table width='100%' border="1" class="ex" cellspacing="0"><tr><td>
<pre><b>This text is bold</b></pre>
</td></tr></table>
<p>The HTML element starts with a <b> start tag</b>: <b><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>: </b></p>
<p>The purpose of the <b> 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><body>
This is my first homepage. <b>This text is bold</b>
</body></pre>
</td></tr></table>
<p>This HTML element starts with the start tag <body>, and ends with the
end tag </body>.</p>
<p>The purpose of the <body> 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: <B> means the
same as <b>. 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 + -