GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [html] 第104天 说说HTML中的<html>标签有什么作用? · Issue #996 · haizlin/fe-interview

[html] 第104天 说说HTML中的<html>标签有什么作用? #996

New issue
Copy link
New issue
Copy link
Open
Open
[html] 第104天 说说HTML中的<html>标签有什么作用?#996
Copy link
Labels
htmlhtmlhtml

Description

@haizhilin2013
haizhilin2013
opened on Jul 28, 2019
Issue body actions

第104天 说说HTML中的<html>标签有什么作用?

Activity

  1. haizhilin2013
    added
    htmlhtmlhtml
    on Jul 28, 2019
  2. jacob-lcs commented on Jul 29, 2019

    @jacob-lcs
    jacob-lcs
    on Jul 29, 2019
    More actions

    <html> 元素定义了整个 HTML 文档。
    这个元素拥有一个开始标签 <html>,以及一个结束标签 </html>,是为了告诉浏览器html从哪里开始,从哪里结束
    元素内容是另一个 HTML 元素(body 元素)。

  3. nowherebutup commented on Jul 29, 2019

    @nowherebutup
    nowherebutup
    on Jul 29, 2019
    More actions
    • 它告诉浏览器这是一个HTML文档
    • 它标识了文档开始和结束的位置
    • 它是最外层的标签
  4. LinStan commented on Jul 29, 2019

    @LinStan
    LinStan
    on Jul 29, 2019
    More actions

    供浏览器识别这是一个HTML文档
    标识了HTML文档的头尾
    是HTML文件的根元素
    H5之后可以通过设置html的manifest属性来实现离线缓存
    可以通过设置lang属性来设置页面的语言,常用的有zh和en

  5. dondonZh commented on Jul 29, 2019

    @dondonZh
    dondonZh
    on Jul 29, 2019
    More actions

    告诉浏览器这是 html文档按照html代码解析

  6. EragonBubble commented on Aug 1, 2019

    @EragonBubble
    EragonBubble
    on Aug 1, 2019
    More actions
    <html> 告知浏览器其自身是一个 HTML 文档。
    <html> 与 </html> 标签限定了文档的开始点和结束点,在它们之间是文档的头部和主体。
    
  7. kruzabc commented on Jan 8, 2020

    @kruzabc
    kruzabc
    on Jan 8, 2020
    More actions

    html 对应 js的 document.documentElement
    head 对应 js的 document.head
    body 对应 js的 document.body
    所有的script 对应js的 document.scripts
    所有的img 对应js的 document.imgs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    htmlhtmlhtml

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.