How to Add a title to your HTML document?

Author Topic: How to Add a title to your HTML document?  (Read 1433 times)

Offline peterwiterTopic starter

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 1
  • Posts: 15
  • Karma: 0
    • seo services in hyderabad |  seo companies in hyderabad
How to Add a title to your HTML document?
« on: 12-02-2015, 02:38:14 »
The next step is to add a title to your document. This title will be used in the browser window, allowing your visitors to identify your site, and it will also be used in the search results pages on search engines like Google. Without it, people won’t know what your page is about.
We’ll also add a header to your page which is visible by your visitors. This is often the same as the page title, but they can be different depending on how you want to structure them.
Inside the <html> tags, add the following lines:
<head>
<title>This is an awesome site! | ncentrictech.com</title>
</head>
Now we can go ahead and create a header for your page to tell people about the site. This is done using the <h1> tag. You can also use h2, h3, h4, h5 or h6 depending on what the title is and how important it is.
Here’s what you need to do:
<body>
<h1>Welcome to my awesome website!!</h1>
</body>
The <body> tags signal to the browser that this section is the main body of the page and it is required on all web pages for them to function correctly.
Inside this, we’ve put the H1 heading to welcome people to the site.
http://www.ncentrictech.com/seo-services.html


Offline samarkajinkya

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 133
  • Karma: 0
  • Gender: Male
    • Creative Digital Marketing Agency Mumbai
Re: How to Add a title to your HTML document?
« Reply #1 on: 01-27-2016, 05:59:38 »
Hi,
1. Position the insertion point where you want the title to appear.
2. Display the Insert tab of the ribbon.
3. Click the Quick Parts tool in the Text group and then choose Field. Word displays the Field dialog box.
4. In the Categories list, choose Document Information. Word updates the choices in the Field Names list (right side of the dialog box).
5. In the Field Names list choose Title.
6. Click on OK to close the dialog box and insert your field.

Offline sanjaysing373

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 8
  • Karma: 0
Re: How to Add a title to your HTML document?
« Reply #2 on: 08-25-2016, 23:09:59 »
By using Title Tag, you can add title for your HTML Document

<head>
<title>According to your Website</title>
</head>

Offline pablohunt2812

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 7
  • Posts: 208
  • Karma: 0
Re: How to Add a title to your HTML document?
« Reply #3 on: 11-08-2016, 19:20:56 »
HTML: <a href="test.html" data-title="A new page" target="_blank">open me</a> JavaScript:

window.addEventListener("load", function() {

// does the actual opening
function openWindow(event) {
event = event || window.event;

// find the url and title to set
var href = this.getAttribute("href");
var newTitle = this.getAttribute("data-title");
// or if you work the title out some other way...
// var newTitle = "Some constant string";

// open the window
var newWin = window.open(href, "_blank");

// add a load listener to the window so that the title gets changed on page load
newWin.addEventListener("load", function() {
newWin.document.title = newTitle;
});

// stop the default `a` link or you will get 2 new windows!
event.returnValue = false;
}

// find all a tags opening in a new window
var links = document.querySelectorAll("a[target=_blank][data-title]");
// or this if you don't want to store custom titles with each link
//var links = document.querySelectorAll("a[target=_blank]");

// add a click event for each so we can do our own thing
for(var i = 0; i < links.length; i++) {
links.addEventListener("click", openWindow.bind(links));
}

});
Serplify Pro Review Optomize your page and high rank with toolkit
Igloo Review Reloaded Version Web Page Builder Toolkit

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1287 Views
Last post 01-28-2011, 03:05:53
by Corwin
0 Replies
1233 Views
Last post 07-19-2012, 10:47:50
by thietkeweb3s
19 Replies
10779 Views
Last post 09-04-2014, 21:28:02
by phooeep
2 Replies
2453 Views
Last post 02-13-2016, 01:23:58
by Shikha Singh
3 Replies
570 Views
Last post 08-10-2016, 07:29:31
by TomClarke