/    Sign up×
Community /Pin to ProfileBookmark

Put HTML from index in other pages/files?

Hello,

I have one page website that was made by a professional. Now I want to add a contact page that I wrote. My question is, Should I paste the <head> from the index.html file I already have into the contact-me.html file I wrote? And should I put something else in all pages of my website?

For <head> I mean this stuff:

“`
<head>
<!– ========== Meta Tags ========== –>
<meta charset=”utf-8″>
<meta http-equiv=”X-UA-Compatible” content=”IE=edge”>
<meta name=”viewport” content=”width=device-width, initial-scale=1″>
<meta name=”description” content=”This is the website content description.”>

<!– ========== Page Title ========== –>
<title>Website Page Title</title>

<link rel=”apple-touch-icon” sizes=”180×180″ href=”assets/img/apple-touch-icon.png”>
<link rel=”icon” type=”image/png” sizes=”32×32″ href=”assets/img/favicon-32×32.png”>
<link rel=”icon” type=”image/png” sizes=”16×16″ href=”assets/img/favicon-16×16.png”>
<link rel=”manifest” href=”assets/img/site.webmanifest”>
<link rel=”mask-icon” href=”assets/img/safari-pinned-tab.svg” color=”#5bbad5″>
<meta name=”msapplication-TileColor” content=”#da532c”>
<meta name=”theme-color” content=”#ffffff”>
</head>
“`

I think I should use it to “format” the contact page in the same way. I don’t know.
Thank you very much for advice in advance πŸ™‚

to post a comment
HTML

5 Comments(s) ↴

Copy linkTweet thisAlerts:
@sibertJan 17.2023 β€”Β Short answer: Yes.

Long answer: You may edit the text

&lt;meta name="description" content="This is the website content description."&gt;

and

&lt;title&gt;Website Page Title&lt;/title&gt;

in order to reflect your page content. It is a SEO thing not absolutely needed for the function of the page.
Copy linkTweet thisAlerts:
@BusinekauthorJan 17.2023 β€”Β @sibert#1649983 Thank you! And an additional question, if I may. If I have other pages, for example a "check your inbox" page for the newsletter subscription that should not be accessed from anywhere but just from a particular link, should I somehow make it unsearchable in the meta tags?
Copy linkTweet thisAlerts:
@tracknutJan 17.2023 β€”Β @Businek#1649984 I would, if you know that you don't want a page indexed. You can put this line in your head section:

<meta name="robots" content="noindex, nofollow">
[/quote]

"noindex" tells search engines not to show this page in their results, and "nofollow" tells it to not follow links through this page (i.e. don't look any deeper for other pages). Either, or often both, are appropriate on a page like you describe. Be aware, the robots metatags are intended for all robots, but are used at their discretion. "bad" robots can simply ignore them. But Google will adhere to them.
Copy linkTweet thisAlerts:
@AnawilliamJan 18.2023 β€”Β @sibert#1649983 Thank you for both option
Copy linkTweet thisAlerts:
@BusinekauthorJan 18.2023 β€”Β @tracknut#1649993 Understand. Thank you very much!
Γ—

Success!

Help @Businek spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 β€” BETA 4.16,
whats_new: community page,
up_next: more Davinciβ€’003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinciβ€’003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...