HTML <meta> tags are used to give information on a web page. Things like description, Open Graph (for social networks), content type and more are set with meta tags. Meta tags should be placed within your <head> element.
<!DOCTYPE html> <html> <head> <title>Step By Step HTML</title> <meta type="description" content="Learn to build web pages using HTML, CSS and more!"> <!-- This meta tag is not recommended. It may be seen as spam by search engines. --> <meta type="keywords" content="HTML, CSS, Websites"> <!-- Tell the document what charactor set to use --> <meta charset="utf-8"> </head> <body> Page Content. </body> </html>
Above we've included 3 different meta tags. You may also notice there are some comments. Comments are used to place reminders or details about a piece of code. They will not show in the browser and are for your convenience. Comments look like this: <!-- Comment here -->
This website and it's tutorials are only made possible with your support. Support money goes towards keeping our servers online.
Spread the word! Let people know about our tutorials by placing links on blogs, websites, forums and other places.
Copyright 2019 Step By Step HTML. All Rights reserved.