Home Web Front-end HTML Tutorial 多多study01-html_html/css_WEB-ITnose

多多study01-html_html/css_WEB-ITnose

Jun 24, 2016 am 11:23 AM

什么是html?
它就是运行在浏览器上的一种脚本语言(从服务器通过http协议传输出过来的内容)

H系列的标签:
作用:有页面上以标题的形式显示出文字。
代码:h1,h2,h3,h4,h5,h6:将文字放大,加粗.并且逐渐变小。(h1标签是最大的。)

P标签:段落标签
作用:用来标记当前页面上某一行文字单独为一个段落
代码:

这是段落


特点:页面上的一个段落,单独占一行,并且与上下内容之间存在距离。

Hr标签:
作用:在页面显示一条横线。
代码:
特点:在页面显示一条横线,默认占整行。

br标签
作用:换行。
代码:
特点:换行。

strong:加粗
ins:下划线
em:倾斜
del:删除线

img标签
src  路径  title 介绍这个图片
多多study01-html_html/css_WEB-ITnose

有了img的路径  就有了路径的问题  那么这个路径应该怎么写?
分为两种   相对路径  和绝对路径
绝对路径:从电脑的具体盘符开始寻找我们需要的
   多多study01-html_html/css_WEB-ITnose
相对路径:两个文件一个文件相对于另外一个文件的位置。
    如果两个文件在同一目录下,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同理

 

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Is HTML easy to learn for beginners? Is HTML easy to learn for beginners? Apr 07, 2025 am 12:11 AM

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.

What is the purpose of the <progress> element? What is the purpose of the <progress> element? Mar 21, 2025 pm 12:34 PM

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

The Roles of HTML, CSS, and JavaScript: Core Responsibilities The Roles of HTML, CSS, and JavaScript: Core Responsibilities Apr 08, 2025 pm 07:05 PM

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.

What is the purpose of the <datalist> element? What is the purpose of the <datalist> element? Mar 21, 2025 pm 12:33 PM

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

What is the purpose of the <meter> element? What is the purpose of the <meter> element? Mar 21, 2025 pm 12:35 PM

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

What is an example of a starting tag in HTML? What is an example of a starting tag in HTML? Apr 06, 2025 am 12:04 AM

AnexampleofastartingtaginHTMLis,whichbeginsaparagraph.StartingtagsareessentialinHTMLastheyinitiateelements,definetheirtypes,andarecrucialforstructuringwebpagesandconstructingtheDOM.

Understanding HTML, CSS, and JavaScript: A Beginner's Guide Understanding HTML, CSS, and JavaScript: A Beginner's Guide Apr 12, 2025 am 12:02 AM

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

Gitee Pages static website deployment failed: How to troubleshoot and resolve single file 404 errors? Gitee Pages static website deployment failed: How to troubleshoot and resolve single file 404 errors? Apr 04, 2025 pm 11:54 PM

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

See all articles