Html5,Css初学总结(网页制作,通用,移动开发)

时间:2024-04-30 11:09:45 作者 : 石家庄SEO 分类 : 移动开发
  • TAG :

    Html5%EF%BC%8CCss%E5%88%9D%E5%AD%A6%E6%80%BB%E7%BB%93

一、通用模板:

<!DOCTYPE html>

<html lang=”en”>

<head>

<meta charset=”UTF-8”/>

<title>文档标题</title>

<link rel="shortcut icon" href="img\wujiaoxing.ico"/><!- -设置标签页图标- ->

<link rel=”stylesheet” href=”url”/><!--外接样式表-->

</head>

<body>

<header role=”banner”>

<main role=”main”>

</section>

<footer role=”contentinfo”>页脚(如:版权)</footer>

</body>

</html>


二、网页三要素:

1.元素标签:

三、其他:

4.注释:

5.学习相关链接:

6.链接锚链接:链接到某一页面的特定区域。

模板:Selector(选择器){

Attribute(属性): value() ;

3.元素显示方式display: block/inline/;(换行/行内显示)

4.元素可见性visibility: visible/hidden;

5.边框border-style :dashed/solid/dotted; (虚线/实线/点划线)

7.元素浮动:float:left/right/none;

8.清除浮动:clear:left/right;

9.处理溢出:overflow: visible/hidden/scroll/auto;

10.修改指针形状:cursor: pointer/default/crosshair/move/wait/help;

11.列表标记:

list-style-type:disc/circle/square….;

/*

disc:圆点;circle:圆圈;square:方块;decimal:数字;

13.fieldset(表单):

表单字段(type属性值)text/email/password/url/submit/radio()/checkbook(复选)

单选框:

<p>

<label for="tankzx" >tk</label>

</p>

复选框:

<p>

<label for="tank" >tk</label>

</p>

列表框:

<p>

<select id="state" name="state" size=” ”>

<optgroup label=”xx”> /*分组列表*/

<option value="ch">China</option>

<option value="usa">American</option>

</optgroup>

<option value="en">England<option>

</select>

</p>

14.表格:

<table>

<tr> //行标记

<th></th> //表头标记

<td></td> //单元格标记

</tr>

</table>

超链接调用 (<ahref=”javascript:check()”)


本文:Html5,Css初学总结的详细内容,希望对您有所帮助,信息来源于网络。
上一篇:HTML5连续上传图片下一篇:

9 人围观 / 0 条评论 ↓快速评论↓

(必须)

(必须,保密)

阿狸1 阿狸2 阿狸3 阿狸4 阿狸5 阿狸6 阿狸7 阿狸8 阿狸9 阿狸10 阿狸11 阿狸12 阿狸13 阿狸14 阿狸15 阿狸16 阿狸17 阿狸18