前端快速复习

  在新建浏览器窗口中打开链接

    <a href="目标网址" target="_blank">click here!</a>


超链接的语法
<a href="目标网址" title="鼠标滑过显示的文本">链接显示的文本</a>

eg:
<a  href="http://www.baidu.com"  title="点击进入百度">click here!</a>

div独占一行,Span内容多了后会换行;


下拉选

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>下拉列表框</title>
</head>
<body>
<form action="save.php" method="post" >
    <label>爱好:</label>
    <select>
<!--下拉选-->
      <option value="看书">看书</option>
<!--下拉选默认选择    selected="selected" -->
      <option value="旅游" selected="selected">旅游</option>
      <option value="运动">运动</option>
      <option value="购物">购物</option>
    </select>
</form>
</body>
</html>

 

 

js

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>confirm</title>
<script type="text/javascript">
    var mymessage=confirm("你喜欢js吗?");
    if(mymessage==true)
    {   document.write("很好,加油!");   }
    else
    {  document.write("JS功能强大,要多学习!");   }
</script>
</head>
<body>
    <input name="button" type="button" onClick="rec()" value="点击弹出问题" />
</body>
</html>

 学完了,一定要快速总结复述一次,最好,重新练习一次,默写一次。

posted @ 2019-09-02 20:11  贰零一八  阅读(354)  评论(0编辑  收藏  举报