HTML: Did you know all these things belong to the <head>?

πŸ§΅πŸ‘‡ A thread
[1] But first what is the "HEAD"? πŸ‘©β€πŸ”¬

The head of an HTML document is the part that is not displayed in the web browser when the page is loaded.

It contains information such as the page <title>, links to CSS, links to custom favicons, and other metadata.
[2] Ok, another unknown word: "METADATA", what is this? 🧱

METADATA = data about the HTML.

These are things such as the author, and important keywords that describe the document, etc.
[3] Let's start with something that goes before the <head> πŸ”†

And it's the Doctype.

The Doctype is a META TAG in HTML5 and it goes at the top of all your HTML pages.

<!DOCTYPE html>
[4] Charset πŸ“

Don't forget the Charset!

<meta charset="UTF-8">
[5] Viewport πŸ“±

Setting the viewport helps to make your website look good on all devices

<meta name="viewport" content="width=device-width, initial-scale=1.0">
[4] Title πŸ’»

A title should be used on all pages

According to w3schools: "The <title> element is required and it defines the title of the document"
[5] Description ✨

A meta description is provided, it is unique and doesn't possess more than 150 characters.

<meta name="description" content="Hi there twitter!">
[6] Icon 🀟

A favicon can be added to a page:

<link rel="icon" href="favicon.ico" type="image/x-icon">

There are lots of other icon types to consider, this is just an example. β†—
[7] Link πŸ”—

Link is one of the most important things! Sometimes we write the CSS file and somehow we forget to link it to the HTML file πŸ˜…

<link rel="stylesheet" href="my-css-file.css">
[8] Script πŸ–‡

As I mention a bit earlier, sometimes we write the JS file and somehow we forget to link it to the HTML file πŸ˜…

<script src="my-js-file.js" defer></script>
That's it from me! πŸ™‚

But there are more things we can add to the <head>, can you think some of them?

P.S. Did you find this thread useful?
Share some feedback and let me know if I should continue them or not.

β€’ β€’ β€’

Missing some Tweet in this thread? You can try to force a refresh
γ€€

Keep Current with Eleftheria Batsou

Eleftheria Batsou Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @BatsouElef

18 Oct
Before you deliver your CSS code make sure you have completed these 12 things. πŸ§΅πŸ‘‡
[1/12] Responsive Web Design πŸ“±

Does your website use a responsive web design?

If not, fix your CSS!

If you don't know what Responsive Web Design is, check out this article by @tmoulos

growthrocks.com/blog/responsiv…
[2/12] Unique ID πŸ‘€

Check if all of the IDs are used and if they are unique to a page.
Read 14 tweets
16 Oct
7 Skills needed to be a front-end developer | For Juniors πŸ™Œ

πŸ§΅πŸ‘‡
It’s possible to become a front-end developer without a college degree, provided you acquire the right skills. πŸŽ“

In this thread, I'm sharing my view of the top 7 technical skills a front-end developer must possess.

Let's go. πŸ‘‡
[1/7] Learn HTML and CSS 🦴

Hypertext markup language (HTML) and cascading style sheets (CSS) are a website’s skeleton.

While HTML gives structure to web pages, CSS helps style the HTML elements with the color, fonts, typeface, and more.
Read 12 tweets
27 Sep
17+ JavaScript Resourses

[A thread 🧡- Books, Courses, Tutorials, etc. ⬇]
[1/17] MDN JavaScript Guide

developer.mozilla.org/en-US/docs/Web…
[2/17] JavaScript For Cats πŸ“š
An introduction for new programmers

jsforcats.com
Read 19 tweets
26 Sep
5 UI/UX mistakes I found (without even searching) in 10 websites in 15 minutes. πŸ‘‡

[Check it, unintentionally you might have the same issues in your website]
[1/5] I can't copy the text.
Make your text "clickable". I may want to copy your email 😎
[2/5] Social media links don't work 😲
Read 7 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(