Skip to content

[css-display-3] Can't understanding element and text nodes #4663

@Jiang-Xuan

Description

@Jiang-Xuan
  • please link to the spec section you're talking about, or at least the spec

https://www.w3.org/TR/css-display-3/#intro

CSS takes a source document, organized as a tree of elements and text nodes, and renders it onto a canvas (such as your screen, a piece of paper, or an audio stream).

Element and text node are defined here, but there is no detailed explanation of what is element and text node. Can we give a detailed explanation here.

For example:

<div>
  Some text
  <div>Another some text</div>
</div>

Is Some text a text node here?

Thanks for all responses. 👋

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions