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

📄 html_whyusehtml4.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>Why Use HTML 4</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>Why use HTML 4.0?</h1>

<a href="html_fonts.asp"><img border="0" src="../images/btn_previous.gif" width="100" height="20" alt="Previous" /></a>
<a href="html_styles.asp"><img border="0" src="../images/btn_next.gif" width="100" height="20" alt="Next" /></a>

<hr />
<h2>HTML 3.2 Was Very Wrong !</h2>
<p>The original HTML was <b>never intended</b> to contain tags for <b>formatting</b>
a document. HTML tags were intended to define the <b>content</b> of the document
like:</p>
<p>&lt;p&gt;This is a paragraph&lt;/p&gt;</p>
<p>&lt;h1&gt;This is a heading&lt;/h1&gt;</p>
<p>When tags like &lt;font&gt; and color attributes were added to the HTML 3.2 specification,
it started a <b>nightmare</b> for web developers. Development of large web sites where 
fonts and color information had to be added to every single Web page, became a 
long, expensive and unduly painful process.</p>
<hr />
<h2>What is so Great About HTML 4.0 ?</h2>
<p>In HTML 4.0 <b>all formatting can be removed</b> from the HTML document and 
stored in a
separate style sheet.</p>
<p>Because HTML 4.0 separates the presentation from the document
structure, we have what we always needed: Total control of presentation
layout without messing up the document content.</p>
<hr />
<h2>What Should You do About it ?</h2>
<p>Do not use presentation attributes inside your HTML tags if you can avoid it. 
Start using styles! Please read our <a target="_top" href="../css/default.asp">CSS 
tutorial</a> to learn about style sheets.</p>

<p>Do not use deprecated tags. Visit our complete <a href="html_reference.asp">
HTML 4.01 Reference</a> to see which tags and attributes that are deprecated.</p>

<hr />
<h2>Prepare Yourself for XHTML</h2>
<p>XHTML is the &quot;new&quot; HTML. 
The most important thing you can do is to start writing valid HTML 4.01. Also
start writing your tags in lower case. Always close your tag elements. Never end
a paragraph without &lt;/p&gt;.</p>

<p><b>NOTE: </b> The official HTML 4.01 recommends the use of lower case tags.</p>

<p>If you want to read about how this web site was converted to XHTML, please 
visit our <a href="../xhtml/default.asp">XHTML tutorial</a>.</p>

<hr />
<h2>Validate Your HTML Files as HTML 4.01</h2>

<p>An HTML document is validated against a Document Type Definition (DTD).
Before an HTML file can be properly validated, a correct DTD must be added as
the first line of the file.</p>

<p>The HTML 4.01 Strict DTD includes elements and attributes that have
not been deprecated or do not appear in framesets:</p>
<table class="ex" cellspacing="0" border="1" width="100%">
  <tr>
    <td align="left"><pre>&lt;!DOCTYPE HTML PUBLIC
&quot;-//W3C//DTD HTML 4.01//EN&quot;
&quot;http://www.w3.org/TR/html4/strict.dtd&quot;&gt;</pre>
    </td>
  </tr>
</table>


<p>The HTML 4.01 Transitional DTD includes everything in the strict DTD plus deprecated elements and attributes:</p>
<table class="ex" cellspacing="0" border="1" width="100%">
  <tr>
    <td align="left"><pre>&lt;!DOCTYPE HTML PUBLIC
&quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;
&quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;</pre>
    </td>
  </tr>
</table>

<p>The HTML 4.01 Frameset DTD includes everything in the transitional DTD
plus frames as well:</p>
<table class="ex" cellspacing="0" border="1" width="100%">
  <tr>
    <td align="left"><pre>&lt;!DOCTYPE HTML PUBLIC
&quot;-//W3C//DTD HTML 4.01 Frameset//EN&quot;
&quot;http://www.w3.org/TR/html4/frameset.dtd&quot;&gt;</pre>
    </td>
  </tr>
</table>
<br />

<hr />
<h2>Test Your HTML With the W3C Validator</h2>
<form method="get" action="http://validator.w3.org/check" target="_blank">
Input your page address in the box below<br />
(like http://www.w3schools.com/)<br />
<input name="uri" size="50" />
<br /><br />
<input type="submit" value="Validate the page" />
</form>

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