Questions tagged [html-head]

The

element is a container for all the head elements, which must include a title for the document, and can include scripts, styles, meta information, and more.

The <head> element is a container for all the head elements, which must include a title for the document, and can include scripts, styles, meta information, and more. This tag is different from html-heading that identifies the <h1>, <h2>, etc. headings.

References:

91 questions
6
votes
1 answer

I'd like some advice on whether the following code is valid in the section of a website:
6
votes
5 answers

Will style css tag render in body?

I am using a CMS and apparently it has a bug that will not allow me to add any content to the of a blog post. It inserts everything into the body which in most cases that works okay but in an instance of code like this:
L84
  • 45,514
  • 58
  • 177
  • 257
5
votes
2 answers

effective difference between html head for css tags?: @import url vs. link href

Is there a effective difference between and Do browser behave different ? What is recommended from w3c…
groovehunter
  • 3,050
  • 7
  • 26
  • 38
5
votes
1 answer

Prevent external files in src of iframe from being cached (with CloudFlare)

I am trying to make a playground like plunker. I just noticed a very odd behavior on production (with active mode in Cloudflare), whereas it works well in localhost. By iframe, the playground previews index_internal.html which may contain links to…
SoftTimur
  • 5,630
  • 38
  • 140
  • 292
4
votes
1 answer

Order of picked up meta tags in the html-head

I was wondering if someone could explain how social media rich previews define which og:title to pick. I use wordpress and for certain pages I insert php echo strings to inject them into the . I choose to do that to change certain titles and…
Demian
  • 536
  • 5
  • 26
4
votes
2 answers

how to use with nextJS

I'm having problems getting mobile metatags into a nextJS app. According to the docs here, this should work https://nextjs.org/docs#populating-head But I don't see the title or any of my own meta properties getting rendered. All I see is:
dcsan
  • 11,333
  • 15
  • 77
  • 118
4
votes
2 answers

Can I Include different javascript/css files per Content Page using ASP.NET WebForms Master Pages?

I have several Content Pages using the same Master Page, that don't all need the same javascript and css files included in the tag. Is it possible to change the contents of the tag from the Content Pages?
aranasaurus
  • 345
  • 1
  • 3
  • 13
4
votes
1 answer

How to add an element to the html head in an arbitrary sub-JSP page

So I have my main JSP page which includes a number of sub-JSP pages hierarchically. Some of these sub-JSP pages have scripts and styles that need to be included along with them, but I want the styles and the script tags to be in the head of the…
nikdeapen
  • 1,581
  • 3
  • 15
  • 27
3
votes
2 answers

If sending charset within content-type header, still advisable to send within head tag via meta tag?

I do not have the link anymore as it was a few months back, but there was a great and detailed article about setting the charset of the body being sent to the user-agent. The gist of the article was that when possible, send it via the content-type…
anonymous-one
  • 14,454
  • 18
  • 60
  • 84
3
votes
1 answer

Is it considered as bad practice to redirect in header with Javascript?

Let's assume that I load a filtering page, and based of an earlier set cookie, I want to reload the page by adding a few query parameters to my url. Something like this: