The Meta Author Tag

The <meta> element can also be used to specify the author of an article/page.

The syntax

The <meta> element with the name="author" attribute, paired with the content="Author's Name" attribute, can be used to specify the name of the author who wrote the article/web page. The meta tag code snippet that goes inside the <head> section is:

<meta name="author" content="Sample Name">

The author metadata can be useful if we want to know who wrote the article and if we want to extract and parse the author's name in our software.

The index.html listing

Now, our more complete index.html file has the following HTML source code:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>My Page Title</title>
    <meta name="description" content="A short description summarizing the content on this web page.">
    <meta name="author" content="Sample Name">
</head>
<body>
    
</body>
</html>

When to include the author meta tag?

Include the meta author element when you want to explicitly publish the author's name. For example, in blogs and articles.

If a web page was authored by a company and not by an individual, we can omit the meta author tag from our web page.