tables in html can have horizontal header and vertical header. for the horizontal header, we need to set all

语法
以下是设置表格水平标题的语法:
horizontal header1… horizontal header2…
Example 1
的中文翻译为:示例 1
Now let us see an example program to set horizontal header for a table.
Tables in HTML
| First Name | Job role |
|---|---|
On executing the above program, it will display a table with horizontal headers First Name and Job role.
Example 2
现在,在这个第二个示例中,我们尝试创建另一个具有水平标题“Name”、“Age”和“Technology”的3行示例 −
Yes!Sun基于PHP+MYSQL技术,体积小巧、应用灵活、功能强大,是一款为企业网站量身打造的WEB系统。其创新的设计理念,为企业网的开发设计及使用带来了全新的体验:支持前沿技术:动态缓存、伪静态、静态生成、友好URL、SEO设置等提升网站性能、用户体验、搜索引擎友好度的技术均为Yes!Sun所支持。易于二次开发:采用独创的平台化理念,按需定制项目中的各种元素,如:产品属性、产品相册、新闻列表
Employee Details
| Name | Age | Technology |
|---|---|---|
| Amit | 27 | Database |
| Sachin | 34 | Marketing |
Following is the output for the above example program.
Example 3
我们还可以为表格设置垂直标题。下面是一个示例,用于创建表格的垂直标题。
| First Name | ||
|---|---|---|
| Last Name | ||
| Job role |
Following is the output for the above example program.









