• 网页元素HTML

    • 列表

(1)无序列表

<ul>
  <li>****</li>
  <li>***</li>
</ul>

更多样式:<ul type="circle|square">

(2)有序列表

<ol start="100">
  <li>****</li>
  <li>***</li>
</ol>

更多样式:<ol type="A|a|i|I">

    • 表单元素

(1)文本框

  <input type="text" maxlength="20" placeholder="请输入用户名...">

(2)密码框

  <input type="password" maxlength="16" >

(3)单选按钮

  <input type="radio" name="sex" checked>男</input>

  <input type="radio" name="sex">女</input>

(4)下拉列表

  <select>

    <option>请选择--</option>

    <option>北京</option>

    <option>广东</option>

  </select>

(5)复选框

<input type="checkbox" name="jiuye">游戏测试</input>

<input type="checkbox" name="jiuye">银行测试</input>

(6)多行文本框

<textarea rows="8" cols="30">

包括教育背景、工作经验、性格特征等

</textarea>

(7)上传文件

<input type="file">

(8)按钮

<button>确定提交</button>

<input type="submit" value="注册">

<input type="reset" value="重置">

  • 二、CSS美化网页

1、CSS选择器

(1)Html标签选择器:当前网页中同一种标签会设置成指定的样式

(2)class标签选择器:当前网页中相同的class处会设置成指定的样式

(3)id标签选择器:当前网页中某一处需要设置成唯一的样式

2、CSS样式的应用方法

(1)行内:位于<body>中的某个标签内,只对该标签生效。

(2)内嵌:位于<head></head>,针对该html文件生效

(3)外部样式:将样式代码单独存在css文件中,在html文件的head中使用link链接法将css文件与网页文件进行绑定

<link rel="stylesheet" type="text/css" href="gushi.css">

  • 三、框架

1、上下结构:

<html>
<head></head>
<frameset rows="20%,*" bordercolor="#0000FF" border="5">
<frame name="top" src=“1.html">
<frame name="bottom" src=“2.html">
</frameset>
</html>

2、左右结构

<html>
<head></head>
<frameset cols="20%,*" bordercolor="#0000FF" border="5">
<frame name="left" src=“1.html">
<frame name="right" src=“2.html">
</frameset>
</html>

3、上中下结构

<html>
<head></head>
<frameset rows="20%,*,10%" bordercolor="#0000FF" border="5">
<frame name="top" src=“1.html">
<frame name="middle" src=“2.html">
<frame name="bottom" src=“3.html">
</frameset>
</html>

4、上下结构,下面又分成左中右两部分

<html>
<head></head>
<frameset rows="20%,*" bordercolor="#0000FF" border="5">
<frame name="top" src=“1.html">
<frameset cols="20%,*,10%" bordercolor="#0000FF" border="5">
<frame name="left" src=“1.html">
<frame name="right" src=“1.html">
<frame name="right" src=“1.html">
</frameset>
</frameset>
</html>

5、上中下结构,中间拆分成左中右三部分

<html>
<head></head>
<frameset rows="10%,*,10%" bordercolor="#0000FF" border="5">
<frame name="top" src=“1.html">
<frameset cols="20%,*,10%" bordercolor="#0000FF" border="5">
<frame name="left" src=“1.html">
<frame name="middle" src=“1.html">
<frame name="right" src=“1.html">
</frameset>
<frame name="bottom" src=“1.html">
</frameset>
</html>

菜鸟教程

W3School

Web最最基础2的更多相关文章

  1. Web最最基础

    web 网站网页一个网站是由多个网页组成的一个网页=网页元素(文字.图片.超链接.文本框.按钮.下拉框ext.) +样式+用户交互 一个网页=(网页元素)html+(样式)CSS+(用户交互)Java ...

  2. Web编程基础--HTML、CSS、JavaScript 学习之课程作业“仿360极速浏览器新标签页”

    Web编程基础--HTML.CSS.JavaScript 学习之课程作业"仿360极速浏览器新标签页" 背景: 作为一个中专网站建设出身,之前总是做静态的HTML+CSS+DIV没 ...

  3. web前端基础知识及快速入门指南

    web前端基础知识及快速入门指南 做前端开发有几个月了,虽然说是几个月,但是中间断断续续的上课.考试以及其它杂七杂八的事情,到现在居然一直感觉自己虽然很多前端的知识很眼熟,却也感觉自己貌似也知识在门口 ...

  4. [置顶] 提高生产力:Web开发基础平台WebCommon的设计和实现

    Web开发中,存在着各种各样的重复性的工作.为了提高开发效率,不在当码农,我在思考和实践如何搭建一个Web开发的基础平台. Web开发基础平台的目标和功能 1.提供一套基础的开发环境,整合了常用的框架 ...

  5. 从头编写asp.net core 2.0 web api 基础框架 (5) + 使用Identity Server 4建立Authorization Server (7) 可运行前后台源码

    前台使用angular 5, 后台是asp.net core 2.0 web api + identity server 4. 从头编写asp.net core 2.0 web api 基础框架: 第 ...

  6. 20155324《网络对抗技术》web安全基础实践

    20155324<网络对抗技术>web安全基础实践 实验内容 使用webgoat进行XSS攻击.CSRF攻击.SQL注入 实验问答 SQL注入攻击原理,如何防御 ①SQL注入攻击是攻击者在 ...

  7. #WEB安全基础 : HTML/CSS | 文章索引

    本系列讲解WEB安全所需要的HTML和CSS #WEB安全基础 : HTML/CSS | 0x0 我的第一个网页 #WEB安全基础 : HTML/CSS | 0x1初识CSS #WEB安全基础 : H ...

  8. #WEB安全基础 : HTTP协议 | 文章索引

    本系列讲解WEB安全所需要的HTTP协议 #WEB安全基础 : HTTP协议 | 0x0 TCP/IP四层结构 #WEB安全基础 : HTTP协议 | 0x1 TCP/IP通信 #WEB安全基础 : ...

  9. 2017-2018-2 20155228 《网络对抗技术》 实验九:Web安全基础

    2017-2018-2 20155228 <网络对抗技术> 实验九:Web安全基础 1. 实践内容 1.1 标理解常用网络攻击技术的基本原理 1.2 在Webgoat实验环境下实践相关实验 ...

随机推荐

  1. 将map中的json转ObjecId

    我们直接从gridfs中取文件列表时取出来的文件_id为: "_id": { "timestamp": 1587091947, "counter&qu ...

  2. Docker 快速搭建 LDAP

    Docker 快速搭建 LDAP 步骤 # 拉取镜像 docker pull osixia/openldap:1.3.0 # 创建并进入映射目录 mkdir -p /usr/local/ldap &a ...

  3. 微信公众号里放XLS链接

    微信公众号里放XLS链接 我们都知道创建一个微信公众号在公众号中发布一些文章是非常简单的,但公众号添加附件下载的功能却被限制,如今可以使用小程序“微附件”进行在公众号中添加附件,如:xls,word等 ...

  4. 《闲扯Redis十》Redis 跳跃表的结构实现

    一.前言 Redis 提供了5种数据类型:String(字符串).Hash(哈希).List(列表).Set(集合).Zset(有序集合),理解每种数据类型的特点对于redis的开发和运维非常重要. ...

  5. Homekit_二路继电器

    介绍一款二路继电器,使用Homekit进行控制,有兴趣的可以去以下链接看看: https://item.taobao.com/item.htm?spm=a1z10.1-c.w4004-11265006 ...

  6. NeuralCoref: python的共指消解工具教程

    转载地址 https://blog.csdn.net/blmoistawinde/article/details/81782971 共指消解 首先简要地说说共指消解是什么,有什么用处.假设机器正在阅读 ...

  7. vue.extend和vue.component的区别

    vue.extend 使用基础 Vue 构造器函数,通过原型继承,(返回)创建一个"子类"(构造器).参数是一个包含组件选项的对象. const Sub = function Vu ...

  8. 【原创】Linux虚拟化KVM-Qemu分析(一)

    背景 Read the fucking source code! --By 鲁迅 A picture is worth a thousand words. --By 高尔基 说明: KVM版本:5.9 ...

  9. 【算法•日更•第十二期】信息奥赛一本通1585:【例 1】Amount of Degrees题解

    废话不多说,直接上题: 1585: [例 1]Amount of Degrees 时间限制: 1000 ms         内存限制: 524288 KB提交数: 130     通过数: 68 [ ...

  10. 第三方登陆--QQ登陆--单体应用

    从零玩转第三方QQ登陆 下面有源码 前后端分离版本 一样的思路 https://www.cnblogs.com/Yangbuyi/p/13194007.html 第三方GITEE登陆 https:// ...