什么是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同理

The function of HTML is to define the structure and content of a web page, and its purpose is to provide a standardized way to display information. 1) HTML organizes various parts of the web page through tags and attributes, such as titles and paragraphs. 2) It supports the separation of content and performance and improves maintenance efficiency. 3) HTML is extensible, allowing custom tags to enhance SEO.

The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

The roles of HTML, CSS and JavaScript in web development are: HTML is responsible for content structure, CSS is responsible for style, and JavaScript is responsible for dynamic behavior. 1. HTML defines the web page structure and content through tags to ensure semantics. 2. CSS controls the web page style through selectors and attributes to make it beautiful and easy to read. 3. JavaScript controls web page behavior through scripts to achieve dynamic and interactive functions.

HTMLisnotaprogramminglanguage;itisamarkuplanguage.1)HTMLstructuresandformatswebcontentusingtags.2)ItworkswithCSSforstylingandJavaScriptforinteractivity,enhancingwebdevelopment.

HTML is the cornerstone of building web page structure. 1. HTML defines the content structure and semantics, and uses, etc. tags. 2. Provide semantic markers, such as, etc., to improve SEO effect. 3. To realize user interaction through tags, pay attention to form verification. 4. Use advanced elements such as, combined with JavaScript to achieve dynamic effects. 5. Common errors include unclosed labels and unquoted attribute values, and verification tools are required. 6. Optimization strategies include reducing HTTP requests, compressing HTML, using semantic tags, etc.

HTML is a language used to build web pages, defining web page structure and content through tags and attributes. 1) HTML organizes document structure through tags, such as,. 2) The browser parses HTML to build the DOM and renders the web page. 3) New features of HTML5, such as, enhance multimedia functions. 4) Common errors include unclosed labels and unquoted attribute values. 5) Optimization suggestions include using semantic tags and reducing file size.


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

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver Mac version
Visual web development tools

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

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version
Useful JavaScript development tools