简体   繁体   English

是否有用于设计html页面的任何自定义语义html标签项目?

[英]Are there any custom semantic html tags project for designing html pages?

I found Semantic UI project here: http://semantic-ui.com/ 我在这里找到了Semantic UI项目: http//semantic-ui.com/

Semantic is structured around natural language conventions to make development more intuitive. Semantic是围绕自然语言约定构造的,以使开发更加直观。

For example bellow code creates a menu using Semantic : 例如,下面的代码使用Semantic创建菜单:

<nav class="ui menu">
  <h3 class="header item">Title</h3>
  <a class="active item">Home</a>
  <a class="item">Link</a>
  <a class="item">Link</a>
  <span class="right floated text item">
    Signed in as <a href="#">user</a>
  </span>
</nav>

instead of Bootstrap CSS classes: 而不是Bootstrap CSS类:

<div class="navbar">
  <a class="navbar-brand" href="#">Title</a>
  <ul class="nav navbar-nav">
    <li class="active"><a href="#">Home</a></li>
    <li><a href="#">Link</a></li>
    <li><a href="#">Link</a></li>
    <p class="navbar-text pull-right">Signed in as <a href="#" class="navbar-link">User</a></p>
  </ul>
</div>

My question is: Are there any custom semantic html tags project for designing html pages? 我的问题是:是否有任何用于设计html页面的自定义语义html标签项目?

Something like this: 像这样:

<menu>
    <menu-header>Title</menu-header>
    <menu-item active="true">Home</menu-item>
    <menu-item>Link</menu-item>
    <menu-item>Link</menu-item>
</menu>

There are some of them in the HTML5 definition, for instance the <article> one from https://developer.mozilla.org/en-US/docs/Web/HTML/Element#Content_sectioning . HTML5定义中有其中一些,例如来自https://developer.mozilla.org/en-US/docs/Web/HTML/Element#Content_sectioning<article>之一。

<menu> happens to be an other one of them : https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu . <menu>恰好是其中的另一个: https : //developer.mozilla.org/en-US/docs/Web/HTML/Element/menu

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM