Table of Contents
HTML
What is a browser and what is a server?
Request protocol: http protocol:
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
Home Web Front-end HTML Tutorial I have nothing to do at the company, just write it down casually

I have nothing to do at the company, just write it down casually

Aug 15, 2016 pm 04:49 PM

HTML

What is a browser and what is a server?

  1. 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.
  2. 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:

  1. Request message.
  2. Response message.
  3. 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

  1. HTML: From a semantic perspective, describe the structure of the page.
  2. css: Beautify the page from an aesthetic point of view.
  3. javascript: From an interactive perspective, improve the user's perspective.

HTML

  1. The relationship between tags and tags
    • Nested relationship
    • Parallel relationship
  2. 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>
Copy after login

2.2 p (paragraph) paragraph tag

<code><code class="hljs undefined"> 作用:给页面的上一段文字加上段落的语义。
 特点:页面上的一个段落,单独占一行,并且与上下内容之间存在距离。</code>
</code>
Copy after login

2.3 hr tag (Horizontal Rule)

<code><code class="hljs undefined"> 作用:在页面显示一条横线(没有自己的语义)
 特点: 在页面显示一条横线,默认占整行。</code>
</code>
Copy after login

2.4 br tag (break)

<code><code class="hljs undefined"> 作用和特点都是换行</code>
</code>
Copy after login

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>
Copy after login

2.6 img tag (image):

<code><code class="hljs dos">       作用:在页面显示一张图片
       特点:就是显示图片。
        属性:
     src    图片显示的路径
     alt    如果图片加载不出来会显示这个属性中的文字
     <span class="hljs-built_in">title    介绍这张图片</span></code>
</code>
Copy after login

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=&rdquo;mubiao&rdquo;>这是目标</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>
Copy after login
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)

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

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 <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 viewport meta tag? Why is it important for responsive design? What is the viewport meta tag? Why is it important for responsive design? Mar 20, 2025 pm 05:56 PM

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.

What is the purpose of the <iframe> tag? What are the security considerations when using it? What is the purpose of the <iframe> tag? What are the security considerations when using it? Mar 20, 2025 pm 06:05 PM

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

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

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.

See all articles