多多study01-html_html/css_WEB-ITnose
什么是html?
它就是运行在浏览器上的一种脚本语言(从服务器通过http协议传输出过来的内容)
H系列的标签:
作用:有页面上以标题的形式显示出文字。
代码:h1,h2,h3,h4,h5,h6:将文字放大,加粗.并且逐渐变小。(h1标签是最大的。)
P标签:段落标签
作用:用来标记当前页面上某一行文字单独为一个段落
代码:
这是段落
特点:页面上的一个段落,单独占一行,并且与上下内容之间存在距离。
Hr标签:
作用:在页面显示一条横线。
代码:
特点:在页面显示一条横线,默认占整行。
br标签
作用:换行。
代码:
特点:换行。
strong:加粗
ins:下划线
em:倾斜
del:删除线
img标签
src 路径 title 介绍这个图片
有了img的路径 就有了路径的问题 那么这个路径应该怎么写?
分为两种 相对路径 和绝对路径
绝对路径:从电脑的具体盘符开始寻找我们需要的
相对路径:两个文件一个文件相对于另外一个文件的位置。
如果两个文件在同一目录下,src直接写01.html
如果在上一级目录,src就是 ../01.html
如果在下一级目录,src就是 多梦微/01.html
那么将来我们在实际开发中到底是用绝对路径,还是用相对路径??
只要不出意外情况都是用相对路径:因为相对路径的可移植性要强。
A标签:
作用:可以在一个页面跳转到另一个页面。
代码:
注意:在a标签之内必须要写上文字,如果没有,那么这个标签在页面上找不到。
A标签的其它名称:超级链接,超链接。
A标签的其它用法:
1.可以不跳转(跳转到当前页面)href=”#”
2.可以跳转到另外的页面。
3.可以在自己的页面进行定位。
A.设置a标签的href属性为“#id名”,
B.在页面的指定位置加入一个目标标签(可以是任意标签)
C.必须给这个标签设置一个id名:
这是目标
A标签的属性:
href A标签跳转的目标地址
target
_blank:保留原始页面,再进行跳转
_self:在当前页面进行跳转
base 为页面上所有的a标签设置跳转的方式(base标签一般放在titile标签下面)
_blank同理

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



HTML is suitable for beginners because it is simple and easy to learn and can quickly see results. 1) The learning curve of HTML is smooth and easy to get started. 2) Just master the basic tags to start creating web pages. 3) High flexibility and can be used in combination with CSS and JavaScript. 4) Rich learning resources and modern tools support the learning process.

The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

HTML defines the web structure, CSS is responsible for style and layout, and JavaScript gives dynamic interaction. The three perform their duties in web development and jointly build a colorful website.

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

AnexampleofastartingtaginHTMLis,whichbeginsaparagraph.StartingtagsareessentialinHTMLastheyinitiateelements,definetheirtypes,andarecrucialforstructuringwebpagesandconstructingtheDOM.

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

GiteePages static website deployment failed: 404 error troubleshooting and resolution when using Gitee...
