# Meta name is it required?

**URL:** <https://forum.freecodecamp.org/t/meta-name-is-it-required/107121>\
**Category:** General\
**Created:** [April 18, 2017, 1:26pm UTC](https://forum.freecodecamp.org/t/meta-name-is-it-required/107121 "2017-04-18T13:26:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marjeanm](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/marjeanm/32/65627_2.png) [@marjeanm](https://forum.freecodecamp.org/u/marjeanm)\
**Post date:** [April 18, 2017, 1:26pm UTC](https://forum.freecodecamp.org/t/meta-name-is-it-required/107121/1 "2017-04-18T13:26:05Z")

</div>

I understand that the meta name tag   
Is to be page responsive. Is that for mobile devices also? And is this required of every HTML file? I am currently trying to make a standard wire frame for practice?

---

<div class="post-metadata">

**Author:** ![IsaacAbrahamson](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/isaacabrahamson/32/30882_2.png) [@IsaacAbrahamson](https://forum.freecodecamp.org/u/IsaacAbrahamson)\
**Post date:** [April 18, 2017, 2:21pm UTC](https://forum.freecodecamp.org/t/meta-name-is-it-required/107121/2 "2017-04-18T14:21:37Z")

</div>

> [@marjeanm](#):
>
> I understand that the meta name tag  
> Is to be page responsive. Is that for mobile devices also? And is this required of every HTML file? I am currently trying to make a standard wire frame for practice?

First, let’s clear up some terms to avoid further confusion:

```html
<meta name="viewport" content="width=device-width, initial-scale=1.0">

```

- `name=""` , `content=""` , etc. are called _attributes_. For example, in other elements you can have `class=""` attributes.
- `<meta>` is referred to as a _tag_. A tag is the keyword, attributes, and brackets. You can have `<div>` tags, `</p>` tags, etc.
- The two tags, and content together are considered an element. This is not relevant to `meta`, as it does not have a closing tag, nor content in between two tags.

More info:

> **[HTML tags vs. elements vs. attributes | 456 Berea Street](https://www.456bereastreet.com/archive/200508/html_tags_vs_elements_vs_attributes/)**
>
> An article that explains the difference between tags, elements, and attributes in HTML.

* * *

Hopefully this clears things up for us. “Meta name tag” is rather ambiguous, and I am not exactly sure whether you are referring to the whole `meta` tag, or to the `name=""` attribute on `meta`, or what you mean by “name” and “tag” or “name tag”.

* * *

Let’s assume you are referring to the name _attribute_ in a `meta` _tag_ like below:

```html
<meta name="">

```

This is not required in all `meta` tags, like `<meta charset="UTF-8">`, but it is obviously needed for most `meta` tags to specify what it is for.

Now let’s assume you meant the `meta` _tag_. These are not required on your page; however, they greatly make your website better for visitors. Let’s take a look at some of them and why they help the visitors to your site:

```html
<meta name="description" content="Meta help">

```

This `meta` tag with the name of description let’s people who find your site on a search engine know what your page is about.

Probably the most important `meta` tag is what is commonly referred to as the “viewport meta tag”:

```html
<meta name="viewport" content="width=device-width, initial-scale=1.0">

```

This is almost a must on any page, albeit not required, and makes the website display correctly on mobile devices.

* * *

Are meta tags required? No. Are the useful? Absolutely. Use them!

---

<div class="post-metadata">

**Author:** ![marjeanm](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/marjeanm/32/65627_2.png) [@marjeanm](https://forum.freecodecamp.org/u/marjeanm)\
**Post date:** [April 18, 2017, 2:39pm UTC](https://forum.freecodecamp.org/t/meta-name-is-it-required/107121/3 "2017-04-18T14:39:01Z")

</div>

Thank you so much! I didn’t realize that I was so lost on this one. I greatly appreciate your explanation!

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:52pm UTC](https://forum.freecodecamp.org/t/meta-name-is-it-required/107121/4 "2021-01-17T20:52:30Z")

</div>

Closed on January 17, 2021, 8:52pm UTC


