JavaWeb的一些基础技术

(1)HTML和CSS

html 复制代码
(1)标题标签
    <h1>一级标题</h1>
    <h2>二级标题</h2>
    <h3>三级标题</h3>
    <h4>四级标题</h4>
    <h5>五级标题</h5>
    <h6>六级标题</h6>
    
(2)段落标签
    <p>记者从工信部了解到,近年来我国算力产业规模快速增长,年增长率近30%,算力规模排名全球第二。</p>
    <p>工信部统计显示,截至去年底,我国算力总规模达到180百亿亿次浮点运算/秒,存力总规模超过1000EB(1万亿GB)。</p>
     PS:换行标签是<br>
    
(3)列表标签
(1)有序列表:每一项前面都有表示顺序的数字
			<ol>
    			<li>JAVA</li>
    			<li>前端</li>
    			<li>大数据</li>
			</ol>
(2)无序列表:每一项前面不带表示顺序的数字
			<ul>
    			<li>JAVASE</li>
			    <li>JAVAEE</li>
			    <li>数据库</li>
			</ul>
PS:列表标签之间是可以嵌套的

(4)超链接标签
   <a href="01html的基本结构.html" target="_blank">相对路径本地资源连接</a> <br>
   <a href="/day01-html/01html的基本结构.html" target="_self">绝对路径本地资源连接</a> <br>
   <a href="http://www.atguigu.com" target="_blank">外部资源链接</a> <br>
  
(5)多媒体标签
<img src="img/logo.png"  title="尚硅谷" alt="尚硅谷logo" />
<audio src="img/music.mp3" autoplay="autoplay" controls="controls" loop="loop" />
<video src="img/movie.mp4" autoplay="autoplay" controls="controls" loop="loop"width="400px" />
PS:img用于引入图片,audio用于引入音频,video用于引入视频

(4)表格标签:
<table>用于表示整个表格                  <thead>用于表示表头                    <th>是特殊的td,里面内容是居中的
<tr>用于表示表格的一行                    <td>用于表示行内的一个格子

 <table  border="1px" style="width: 400px; margin: 0px auto;">
<tr>   <th>排名</th>    <th>姓名</th>      <th>分数</th>   </tr>
<tr>   <td>1</td>      <td>张小明</td>    <td>100</td>    </tr>
<tr>   <td>2</td>      <td>李小东</td>    <td>99</td>     </tr>
<tr>   <td>3</td>      <td>王小虎</td>    <td>98</td>     </tr>
</table>
(5)表单标签(一个表单标签里面有多个表单项标签<input>(输入的东西例如文本框),<select>(下拉框)<button>(按钮),)


html 复制代码
(6)常见的表单项标签





html 复制代码
(7)布局相关标签
html 复制代码
<div style="width: 500px; height: 400px;background-color: cadetblue;">
<div style="width: 400px; height: 100px;background-color: beige;margin: 10px auto;">
   <span style="color: blueviolet;">页面开头部分</span>
</div>

<div style="width: 400px; height: 100px;background-color: blanchedalmond;margin: 10px auto;">
<span style="color: blueviolet;">页面中间部分</span>
</div>

<div style="width: 400px; height: 100px;background-color: burlywood;margin: 10px auto;">
<span style="color: blueviolet;">页面结尾部分</span>
 </div>

a</div>
相关推荐
杨荧29 分钟前
基于Python的电影评论数据分析系统 Python+Django+Vue.js
大数据·前端·vue.js·python
excel1 小时前
迭代器与生成器全面理解
前端
可口码农1 小时前
MixOne:Electron Remote模块的现代化继任者
java·前端·electron
发如雪-ty1 小时前
Bash常用操作总结
前端·chrome
冲!!1 小时前
使用nvm查看/安装node版本
前端·node.js·node·nvm
LilyCoder2 小时前
HTML5二十四节气网站源码
前端·javascript·html·html5
Bruce_Liuxiaowei2 小时前
跨站脚本攻击(XSS)高级绕过技术与防御方案
前端·网络安全·xss
EF@蛐蛐堂2 小时前
【vue3】v-model 的 “新玩法“
前端·javascript·vue.js
两个月菜鸟2 小时前
vue+微信小程序 五角星
前端·vue.js·微信小程序
GISer_Jing3 小时前
React手撕组件和Hooks总结
前端·react.js·前端框架