Change address bar text (HTML)
Posted: Thu Apr 14, 2011 3:35 am
In HTML, is there a way to change the text in the address bar to whatever you want?
Sharing, Teaching and Supporting coders of all ages and levels since 2009
https://www.codenstuff.com/forum/
<html>
<head>
<title>Website Title Here</title>
</head>
</html>
<html>
<head>
<title>Example Site</title>
</head>
<style type="text/css">
body {
background-color:#000;}
#div1 {
position:absolute;
top:0px;
left:50%;
width:600px;
height:600px;
margin-left:-300px;
background-color:#1c1c1c;
color:#4a4a4a;
border:4px ridge #4a4a4a;
-webkit-box-shadow:#1c1c1c 0px 0px 16px;}
</style>
<body>
<div id="div1">
<div align="center">
<big><strong>RULES!</strong></big>
</div>
<ol>
<li>Be Respectful</li>
<li>Be Responsible</li>
<li>Be Honest</li>
</ol>
</div>
</body>
</html>
mikethedj4 wrote:You're talking about the title, not the address bar, the address bar is where you put the url down of the website in which to go to.I said he was talking about the title -.-
To change the title of your website in HTML you wanna put the title tags in your head tags, and the html tags should start in the beginning of your code, and the ending of your code.
ex.Code: Select allHere's another example of a simple website coded in HTML, and CSS, just look at where/how the html, head, and title tags are positioned.<html> <head> <title>Website Title Here</title> </head> </html>
Code: Select all<html> <head> <title>Example Site</title> </head> <style type="text/css"> body { background-color:#000;} #div1 { position:absolute; top:0px; left:50%; width:600px; height:600px; margin-left:-300px; background-color:#1c1c1c; color:#4a4a4a; border:4px ridge #4a4a4a; -webkit-box-shadow:#1c1c1c 0px 0px 16px;} </style> <body> <div id="div1"> <div align="center"> <big><strong>RULES!</strong></big> </div> <ol> <li>Be Respectful</li> <li>Be Responsible</li> <li>Be Honest</li> </ol> </div> </body> </html>