I have nothing to do at the company, just write it down casually
HTML
What is a browser and what is a server?
- A browser refers to a software that can display the content of HTML files (an application of Standard Universal Markup Language) on a web server or file system and allow users to interact with these files. (Front-end) *Features:
- Can display html files in the server.
- Allows users to interact with these files.
- A server, also called a server, is a device that provides computing services. Since the server needs to respond to service requests and process them, generally speaking, the server should have the ability to undertake services and guarantee services.
- Features:
- Handle requests.
- Must be guaranteed to be powered on 24 hours a day.
Request protocol: http protocol:
- Request message.
- Response message.
- url: (Address) The content we enter on the address bar.
- Url composition: protocol://server’s ip address: port number/request page.
It turns out that what the browser does is to parse (render) the response returned by the server from top to bottom, and display the final page effect.
Languages recognized by the browser
- HTML: From a semantic perspective, describe the structure of the page.
- css: Beautify the page from an aesthetic point of view.
- javascript: From an interactive perspective, improve the user's perspective.
HTML
- The relationship between tags and tags
- Nested relationship
- Parallel relationship
- tags
2.1 h (header) tag
<code><code class="hljs stylus"> h系列的标签(Header):<span class="hljs-tag">h1,<span class="hljs-tag">h2,<span class="hljs-tag">h3,<span class="hljs-tag">h4,<span class="hljs-tag">h5,<span class="hljs-tag">h6 作用:把页面上的文字加上标题上的语义 *注意:一个页面只能使用一个h1标签</span></span></span></span></span></span></code> </code>
2.2 p (paragraph) paragraph tag
<code><code class="hljs undefined"> 作用:给页面的上一段文字加上段落的语义。 特点:页面上的一个段落,单独占一行,并且与上下内容之间存在距离。</code> </code>
2.3 hr tag (Horizontal Rule)
<code><code class="hljs undefined"> 作用:在页面显示一条横线(没有自己的语义) 特点: 在页面显示一条横线,默认占整行。</code> </code>
2.4 br tag (break)
<code><code class="hljs undefined"> 作用和特点都是换行</code> </code>
2.5 b(Bold),u(Underlined),i(Italic),s(Strikethrough),strong,em,del,ins
<code><code class="hljs stylus"> 作用: b:加粗 语义:没有语义 u: 下划线 <span class="hljs-tag">i: 倾斜 s: 删除线 建议不要使用,因为这些标签没有语义。 作用: <span class="hljs-tag">strong:加粗 语义:加强语气 <span class="hljs-tag">ins:下划线 <span class="hljs-tag">em:倾斜 <span class="hljs-tag">del:删除线 可以使用</span></span></span></span></span></code> </code>
2.6 img tag (image):
<code><code class="hljs dos"> 作用:在页面显示一张图片 特点:就是显示图片。 属性: src 图片显示的路径 alt 如果图片加载不出来会显示这个属性中的文字 <span class="hljs-built_in">title 介绍这张图片</span></code> </code>
2.7 a tag (Anchor): Anchor
<code><code class="hljs livecodeserver"> <span class="hljs-operator">a 标签的其它名称: 超级链接,超链接,锚链接 作用:可以在一个页面跳转到另一个页面上 注意:在<span class="hljs-operator">a标签之内必须要写上文字,如果没有,那么这个标签在页面上找不到。 <span class="hljs-operator">a标签的其它用法: <span class="hljs-number">1.0可以不跳转(跳转到当前页面)href=”<span class="hljs-comment">#” <span class="hljs-number">2.0可以跳转到另外的页面。 <span class="hljs-number">3.0可以在当前页面进行定位。 A.设置<span class="hljs-operator">a标签的href属性为“<span class="hljs-comment">#id名”, B.在页面的指定位置加入一个目标标签(可以是任意标签) C.必须给这个标签设置一个id名:<p id=”mubiao”>这是目标</p> <span class="hljs-number">4.0在跳转的页面进行定位。 <span class="hljs-number">5.0可以进行下载。(强烈不推荐使用) <span class="hljs-operator">a标签的属性: href <span class="hljs-operator">a标签跳转的目标地址 target <span class="hljs-title">_blank:保留原始页面,再进行跳转 <span class="hljs-title">_self:在当前页面进行跳转 base 为页面上所有的<span class="hljs-operator">a标签设置跳转的方式(base标签一般放在titile标签下面)</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></code></code>

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



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 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 <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

The article discusses the <iframe> tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.

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 <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

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