html学习
前端:html css javascript
web框架
mysql:存储数据的地方快速上手:flask
深度学习:django框架
1.基础框架:
from flask import Flask,render_templateapp=Flask(__name__)@app.route("/show/info")
def index():return render_template("index.html")if __name__=='__main__':app.run()
在文件里新建一个文件templates
再新建一个index.html
在vs里面新建html文件以后,输入!再按tab键可以自动生成html模板
<h1>一级标题</h1><h2>二级标题</h2><h3>三级标题</h3><div>块级标签</div><span>行内标签</span>
2.超链接
<a href="地址" target="_blank">点击跳转</a>
跳转到新的页面
<a href="https://www.deepseek.com/">点击跳转到别人的网站</a>
<a href="/get/news">跳转到自己的网站/get/news</a>
3.图片
<h2>别人的图片</h2>
<img src="https://piccache.cnki.net/kdn/index/kns8s/nimages/temp/product02.jpg?v=5.8"/>
<h2>自己的图片</h2>
<img src="/static/1.jpg"/>
4.表格和列表
<h1>无序列表</h1><ul><li>中国联通</li><li>中国电信</li><li>中国移动</li></ul><h1>有序列表</h1><ol><li>中国联通</li><li>中国电信</li><li>中国移动</li>
<h1>表格</h1><table border="1"><thead><tr> <th>ID</th> <th>姓名</th> <th>年龄</th> </tr></thead><tbody><tr> <td>12</td> <td>Bob</td> <td>19</td> </tr><tr> <td>13</td> <td>Orange</td> <td>23</td> </tr><tr> <td>1</td> <td>Apple</td> <td>90</td> </tr></tbody></table>
5. input
<h1>输入内容</h1><input type="text"><input type="password"><input type="file"><h2>单选框</h2><input type="radio" name="1">男<input type="radio" name="1">女<h2>复选框☑️</h2><input type="checkbox">篮球<input type="checkbox">足球<input type="checkbox">网球<input type="checkbox">乒乓球<h2>按钮🔘</h2><input type="button" value="提交"> --普通按钮<input type="submit" value="提交"> --提交表单
6.下拉框
<h1>下拉框</h1><select multiple><option>北京</option><option>上海</option><option>深圳</option></select>
7.多行文本
<h1>多行文本</h1><textarea></textarea>