Skip to content

[html] 第303天 说说你对html的嵌套规范的理解,都有哪些规范呢? #1899

Open
@haizhilin2013

Description

@haizhilin2013

第303天 说说你对html的嵌套规范的理解,都有哪些规范呢?

我也要出题

Activity

cxwht

cxwht commented on Feb 13, 2020

@cxwht

可能就是 要有结尾吧?

whiter001

whiter001 commented on Mar 8, 2020

@whiter001

ul,li/ol,li/dl,dt,dd拥有父子级关系的标签;ul、ol下都只能跟li,dl下只能跟dt.dd。
p,dt,h标签里面不能嵌套块元素;
a标签不能嵌套a;
行内元素不能嵌套块元素;

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @haizhilin2013@whiter001@cxwht

        Issue actions

          [html] 第303天 说说你对html的嵌套规范的理解,都有哪些规范呢? · Issue #1899 · haizlin/fe-interview