HTML 学习杂记


代码范例

<?php
function testFunc1 () {
    echo 'testFunc1';
}
$b = 3;
?>

"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
"http://www.w3.org/1999/xhtml"> 

"Content-Type" content="text/html; charset=utf-8" />
我的第一个页面



"stylesheet" type="text/css" href="/css/csstest1.css"/>

"background-color:powderblue">

web开发教程



    "1" type="1">
  1. 内嵌php
  2. <?php $a=1; ?> $a1 = <?php echo $a;?> <?php $a++; ?> $a2 = <?php echo $a;?> $b = <?php echo $b;?> $testFunc1 = <?php testFunc1();?>

  3. 表格
  4. "1" cellpadding="10" frame="void" summary="name list">"tr1"> "tr2">
    Firstname Lastname
    Peter Griffin
  5. 按钮
  6. input
  7. "button" onclick="getInnerHTML()" value="Alert innerHTML of table row" />
  8. link
  9. "url1" href="http://www.w3school.com.cn" title="w3school 跳转">wschool link "http://www.w3school.com.cn" title="w3school 跳转">wschool link
  10. textarea
  11. 文本格式化
  12. bold strong big emphasized italic small subscript superscript 下横线(插入字)   删除字 引用
  13. 保留字
  14. & nbsp; 空格 & lt; 小于号 & gt; 大于号 & quot; 引号 & copy; 版权符号 & amp; &符号
  15. 计算机输出标签
  16. Computer code定义计算机代码 Keyboard定义计算机输入 Teletype打字机 Sample定义计算机输出代码样本 <var>variable定义变量 var>
    <h1>这是预格式文本 保留了      空格和换行</h1&gt;
    pre 标签很适合显示计算机代码:
    
    <var>Evar> = <var>mvar> <var>cvar>2
  17. 地址
  18. Visit us at: Box 564, Disneyland USA
  19. 缩写
  20. "World Wide Web">www "World Wide Web">www "World Wide Web">www
  21. 文字方向右向左
  22. "rtl">我们
  23. 引用
  24. 这是长的引用。这是长的引用。这是长的引用。这是长的引用。这是长的引用。这是长的引用。这是长的引用。这是长的引用。这是长的引用。这是长的引用。这是长的引用。
    这是短的引用。
  25. 图片链接
  26. "http://www.baidu.com" target="_blank">"0" src="/img/img_championcup.png"/>

css file 

li {color: black}
p {color: blue}
#url1:link {color:blue; text-decoration:none}
#url1:hover {color:red; text-decoration:none}