How.com.vn is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, volunteer authors worked to edit and improve it over time.
The How.com.vn Tech Team also followed the article's instructions and verified that they work.
This article has been viewed 67,319 times.
Learn more...
Every web page needs a title. Why doesn't yours? One of the major tag pairs in HTML is the <title></title>
tags; the title tag affects several functions of websites, from the default bookmark titles through to flashing words drawing your attention back to the site, even when in a different tab.
Things You Should Know
- Create your HTML in a program like Atom, Brackets, TextEdit, or Notepad++.
- Add the
<title>Something</title>
Title Tag to your code. - Change "Something" to the title you want and save the file.
Steps
- 1Open a text editing program (or IDE) such as Atom, Brackets, or even TextEdit or Notepad++.
- Create the
<html>
body. Using the<html>
tags, create a .html file with either tag on a new line. Make sure to close the tag with</html>
.Advertisement - Add the
<head>
section. Placing the<head>
tags in between the<html>
tags, define the head (metadata section) section. Make sure to close the tag with</head>
. - Add the
<body>
section. Below the closing</head>
tag and above the closing</html>
tag, add the<body>
(content section) tags. Make sure to close the tag with</body>
.- Optionally, add some 'test' code in the body (or content) section to make sure that you've coded it correctly. If the content shows, it means that the code is parsing (loading). If not, it means that you may have made a typo or some other thing that is not letting it load.
- Save your file to an easily accessible location. Name your file as
something.html
, replacing something with what you wish. Remember that theindex.html
file is the 'home' or 'landing' page of your website. - Open your page in your preferred browser. Browsers like Google Chrome, or Mozilla Firefox are good for front-end website development. Go ahead and open your .html file. You can use short keys like ⌘ Cmd+O or Ctrl+O to open the file in most browsers.
- Look at the top of the tab for your title. If your desired title shows, the code has loaded and worked! If not, and it shows your filename instead (something.html), you may have made a mistake; check your code for typos then try again.
- 4Sit back and admire your work. You've just taken the first step to a fully functional website.
Community Q&A
- QuestionHow do I insert the first level heading?Shehriar Ahmad AwanCommunity AnswerYou can do it using the H1 tag.
Video
Tips
About This Article
Is this article up to date?
⚠️ Disclaimer:
Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.
- - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
- - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
- - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
- - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.