a class=left carousel-control href=#carousel-example-generic role=button data-slide=prev aria-label=prev span class=fa fa-chevron-left aria-hidden=true<span a
This is an HTML code snippet that creates a left carousel control button. The button is linked to a carousel element with the ID "carousel-example-generic". When clicked, the button triggers a slide to the previous item in the carousel.
The button has a class "left carousel-control" which styles it according to the carousel's design. It also has a "href" attribute that specifies the target of the link, in this case, the carousel element. The "role" attribute defines the button's role, which is "button" in this case. The "data-slide" attribute specifies the action to perform when the button is clicked, which is to slide to the previous item.
The "aria-label" attribute provides an accessible label for the button, which is "prev" in this case. This label is read by screen readers to describe the button's purpose.
Inside the button, there is a element with a class "fa fa-chevron-left". This adds a chevron icon to the button, pointing to the left. The "aria-hidden" attribute is set to "true", indicating that the icon is purely decorative and should be ignored by screen readers. The "<" text inside the element is the fallback content for browsers that do not support the FontAwesome icon library
原文地址: http://www.cveoy.top/t/topic/ib5d 著作权归作者所有。请勿转载和采集!