Home > Web Front-end > HTML Tutorial > Detailed explanation of HTML table serialization format

Detailed explanation of HTML table serialization format

高洛峰
Release: 2017-02-10 10:31:17
Original
1914 people have browsed it

The following editor will bring you a detailed explanation of the HTML table serialization format. The editor thinks it is quite good, so I will share it with you now and give it as a reference for everyone. Let’s follow the editor and take a look.

Linearization format

...

Attribute name                                                                                                                                                                                                  Keep to the right valign                                                                                                                                 because ## Numbers Numbers Straight numbers

BGCOLOR color background color

# 个 Individual inline settings

Format: & LT; Col & GT Function is exactly as & lt; colgroup & gt; !--Note that setting the DOCTYPE of the first line to xhtml will cause the colgroup to fail-->


XML/HTML Code

Copy content To clipboard

#>
  • ##<
  • html

    xmlns="http://www.w3.org/1999/xhtml"> ##<

  • head
  • > <

  • title
  • >Inline format of the tabletitle>

  • head
  • > ##<

    body
  • >

    ##<table

  • cellpadding
  • =

    "5px" cellspacing="0px" border="1px" bordercolor="black"> ## Control the entire third column to be displayed in red The

    span
  • =
  • "2"

    in the first group of colgroup is equivalent to a placeholder, In this way, the third column (the entire math column) will be displayed in red

  • Similarly, if you set span="3", Then the fourth column (the entire English column) will be displayed in red

  • <colgroup

    span
  • =
  • "2"

    >colgroup>          <colgroup

    bgcolor
  • =
  • "red"

    >colgroup>                                                                                                                                                                      

  • 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
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template