html css how to add text in the center of a line code example
Example 1: css text line in middle
h2 {
text-decoration: line-through;
}
Example 2: how to center text in css
.class {
text-align: center;
}
h2 {
text-decoration: line-through;
}
.class {
text-align: center;
}