分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 教程案例

html基础1

发布时间:2023-09-06 01:36责任编辑:沈小雨关键词:暂无标签
<!DOCTYPE html> <!--标准的html规则,类似于Python的解释器-->
<html lang="en"> <!--html标签(只能一个),指定语言en-->
<head> <!-- html head标签的开始 -->
<meta charset="UTF-8"> <!-- 指定编码 -->
<title>liudaozhang</title>
<link rel="shortcut icon" href="http://www.nnzhp.cn:80/wp-content/themes/QQ/images/logo.jpg">
<!--<meta http-equiv="refresh" content="3"> &lt;!&ndash; 每3秒中刷新一次 &ndash;&gt;-->
<!--<meta http-equiv="refresh" content="1" ;Url=http://www.imdsx.cn"> &lt;!&ndash; 3秒后跳转页面 &ndash;&gt;-->
 
<!--<meta name="keywords" content="大打打"> &lt;!&ndash; 关键字检索 &ndash;&gt;-->
 
<!--<meta http-equiv="X-UA-Compatible" content="IE=edge"> &lt;!&ndash; ie打开时以最高的兼容模式打开 &ndash;&gt;-->
 
<!--写入css文件的位置的 先欠着 以下这四个标签很重要-->
<style></style>
 
<!--引入js的 -->
<script></script>
 
<!--title 的图标-->
<link rel="shortcut icon" href="....">
 
<!--引入css文件的-->
<link rel="stylesheet" href="。。。">
 
 
</head> <!-- html head标签的结束 -->
<body> <!-- html body标签的开始 -->
<!--111111111-->
<!--<h1>kkk11111</h1>-->
 
<!--标签类型:-->
<!--1、自闭和标签 -单身狗-->
<!--如:<meta> <link> <input> <br/> -->
<!--2.主动闭合标签-->
<!--如:<p></p> <div></div> 有两对-->
 
<!--<br> 换行标签-->
<!--<p> 段落标签-->
<!--<h1></h1> 至 <h6></h6> 标题标签-->
 
<!--块级标签 占用整行-->
<!--<h1></h1>-->
<!--<div></div> 相当于一块白板,什么都没有 一切都需要通过css进行装饰,同时通过装饰后,变成任意标签-->
 
<!--内连标签 用多少占多少空间-->
<!--<span> </span> 真的一块白板,什么css样式都没有 同时通过装饰后,变成任意标签-->
 
 
<!--文本框标签-->
<!--<input type="text" value="请输入用户名">-->
 
<!--<input type="text" placeholder="请输入用户名">-->
 
<!--<input type="password"> 密文显示-->
 
<!--多选框-->
<!--<input type="checkbox"> 默认不勾选-->
 
<!--<br/><input type="checkbox" checked="checked"> 默认勾选 -->
 
<!--单选框-->
<!--name 相同的时候 多个radio互斥-->
<!--<input type="radio" name="r1"> 男-->
<!--<input type="radio" name="r1"> 女-->
 
<!--按钮-->
<input type="button" value="确认">
button只是一个单纯的按钮 如果需要提交数据,就需要和js连用
 
<input type="submit" value="确认">
<!--submit如果和form连用 直接请求form对应的action的目标url-->
form 比作一张纸 input输入进来的东西就是写在纸上的字 通过form提交给服务端
 
<!--action 提交的url路径-->
<!--method 请求方式-->
<!--reset 重置标签 与form表单连用时,充值到初始化样式-->
<form action= "http://www.imdsx.cn" method = "get">
<input type="text" placeholder="请输入用户名" name="">
<input type="text" placeholder="请输入密码" name="">
<input type="submit" value="登录">
<input type="reset" value="重置" >
 
</form>
 
 
</body> <!-- html body标签的结束 -->
</html>

html基础1

原文地址:https://www.cnblogs.com/zunchang/p/8280584.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved