https://www.freecodecamp.org/learn/2022/responsive-web-design
优化显示
HTML5 has some elements that identify different content areas. These elements make your HTML easier to read and help with Search Engine Optimization (SEO) and accessibility.
add a footer section to the page.
可点击链接🔗
herf:Hypertext Reference超文本引用
you can link to another page with the anchor (a) element. For example, would link to freecodecamp.org.
点击文字 name
target 属性规定在何处打开链接文档
图片展示
alt的作用
All imgelements should have an altattribute. The altattribute's text is used for screen readers to improve accessibility and is displayed if the image fails to load. For example, has an 
altattribute with the text A cat.
alt 的属性值有两个作用,第一个作用是让屏幕阅读器可以知晓图片的内容,这会对网页的可访问性有很大提升;另一个作用是当图片无法加载时,页面需要显示的替代文本。
如何调整大小?
如何加注释?
文字显示
标题
有多少级?6
段落
缩进
text-indent 属性规定文本块中首行文本的缩进。
如何换行?
html空行方法-html文章段落空行间隔空一行 - DIVCSS5
如何加前缀?
手把手教你给html文本添加有序列表与无序列表(代码详解)-html教程-PHP中文网
无序列表:标签+
有序列表:标签+
此属性将分配值编号,即
强调
斜体i标签
em标签
如何加粗展示?
使用标签或者采用css样式
b是bold,就是粗体的意思;strong意味着强调
边框
采用fieldset标签
html中border边框线上添加文字_天霸地霸tua的博客-CSDN博客_html怎么在边框线中加文字
标签介绍:
将表单内的相关元素分组。
HTML CSS 代码实现:
数据收集
The actionattribute indicates where form data should be sent. For example, tells the browser that the form data should be sent to the path /submit-url.
label
label 元素不0元素内点击文本,就会触发此控件。就是说,当用户选择该标签时,浏览器就会自动将焦点转到和标签相关的表单控件上。
输入框
如何加暗纹展示内容?
——INPUT 标签可以设置 placeholder 属性为占位符
三种不同写法
输入框、单选等input操作
check
In order to make a checkbox checked or radio button selected by default, you need to add the checkedattribute to it. There's no need to set a value to the checkedattribute. Instead, just add the word checkedto the inputelement, making sure there is space between it and other attributes.
<label><input type="checkbox" id="loving" name="door" value="1" checked="checked"/>Loving</label>
如何加输入框?
如何加提交按钮?
- <input type="submit" value="submit">
- <button type="submit">submit</button>
input方式
表单及提交按钮,单列一行写应该不行
button方式
输入标签优化相关属性
id attribute is used to identify specific HTML elements. Each idattribute's value must be unique from all other idvalues for the entire page.Indoor radio button and submit the form, the form data for the button is based on its nameand value attributes. Since your radio buttons do not have a valueattribute, the form data will include indoor-outdoor=on, which is not useful when you have multiple buttons.选择项
The fieldset element is used to group related inputs and labels together in a web form. fieldsetelements are block-level elements, meaning that they appear on a new line.
如何加单选框?radio
如何加多选框?checkbox
checkbox
点击反馈
空态提交反馈 required:
这个属性指定用户在提交表单之前必须为该元素填充值。当 type 属性是 hidden、image 或者按钮类型(submit、reset、button)时不可使用。 [:optional]( 和 [:required]( CSS 伪元素的样式将可以被该字段应用作外观。
自定义空态提示内容:在input输入框中添加oninvalid和oninput属性
HTML Input输入框自定义required的提示内容(默认值:请填写此字段)_临时工-冯宝宝的博客-CSDN博客_htmlinput输入框提示信息
各种事件list——鼠标点击onclick
提示列表
历史记录
for属性可以将label与想要触发的控件绑定起来——for 有什么好处?
为label添加for属性的这个做法,能够提高代码质量——具体什么质量?
for不止可以给label标签,还可以给其他标签使用,例如output标签
name属性:便于sever识别,如果定义不同的name,radio就不能单选
HTML标签中id和name的区别_IamaMartian的博客-CSDN博客_html id name
nameattribute with the same value.**value属性:name是控件的名称(多个控件可以取同一个名称),value是控件的值