1
I have several HTML (over 500 HTML) that will use the same title for everyone, for example: "2017 Projects" will be the title in the 500 files
Then I will need to change the title to "Projects 2018"
But I don’t want to take the trouble to open all 500 html and change only one word in each one
What I wanted was to change the title in just one file and so change in all the other 500 at once
How can I do this using CSS through <link href="*.css" type="text/css" />
???
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sem título</title>
<style type="text/css">
.title div:after {
content: "Andrei webmaster";
}
.titlecenter {
text-align: center;
color: #F00;
font-weight: bold;
}
</style>
</head>
<body>
<div class="title">
<div class="titlecenter"></div>
</div>
</body>
</html>
With CSS it is not possible. With Javascript, yes, but you will have to insert the file reference in all HTML files in the same way. Text editors' "Find/Replace" tool does not serve you?
– Woss
Put a
include
on the php page to center the title in just one file.– user3453562
It is possible yes. Just not elegant rs.
– dsantoro
With css da, but the only way I know is by using after or before {content:"2018 projects";}. I wonder if there are other ways. I didn’t want to use Javascript
– Andrei
Just out of curiosity: why CSS? Why not use JS or simply change the value with "Find/Replace"?
– Woss