+ 3

Why we use <span> tag in heading

1st Jul 2018, 9:21 AM
Nizam Uddin
Nizam Uddin - avatar
2 Réponses
+ 8
1st Jul 2018, 1:34 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 2
Hello, Nizam Uddin ! The <span> tag is used to define the string elements of a document. Unlike block elements, such as <table>, <p> or <div>, using the <span> tag, you can select some information within other tags and set your own style for it. For example, inside a paragraph (<p> tag), you can change the color and size of the first letter by adding the start and end tags <span> and defining the text style for it. In order not to describe each time the style inside the tag, you can select the style in an external style sheet, and add a class attribute or an id with the selector name for the tag. https://www.sololearn.com/learn/HTML/1034/
1st Jul 2018, 9:48 AM
Alexander Sokolov
Alexander Sokolov - avatar