-
Notifications
You must be signed in to change notification settings - Fork 0
/
newTagSvgTitle.go
35 lines (32 loc) · 1.38 KB
/
newTagSvgTitle.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package factoryBrowser
import "github.com/helmutkemper/iotmaker.webassembly/browser/html"
// NewTagSvgTitle
//
// English:
//
// The <title> element provides an accessible, short-text description of any SVG container element or graphics element.
//
// Text in a <title> element is not rendered as part of the graphic, but browsers usually display it as a tooltip.
// If an element can be described by visible text, it is recommended to reference that text with an aria-labelledby
// attribute rather than using the <title> element.
//
// Notes:
// * For backward compatibility with SVG 1.1, <title> elements should be the first child element of their parent.
//
// Português:
//
// O elemento <title> fornece uma descrição de texto curto acessível de qualquer elemento de contêiner SVG ou elemento
// gráfico.
//
// O texto em um elemento <title> não é renderizado como parte do gráfico, mas os navegadores geralmente o exibem como
// uma dica de ferramenta. Se um elemento puder ser descrito por texto visível, é recomendável fazer referência a esse
// texto com um atributo aria-labelledby em vez de usar o elemento <title>.
//
// Notas:
// * Para compatibilidade com versões anteriores com SVG 1.1, os elementos <title> devem ser o primeiro elemento
// filho de seu pai.
func NewTagSvgTitle() (ref *html.TagSvgTitle) {
ref = &html.TagSvgTitle{}
ref.Init()
return ref
}