Change address bar text (HTML)
In HTML, is there a way to change the text in the address bar to whatever you want?
You mean like
You do not have the required permissions to view the files attached to this post.
Address bar is where you enter site URL, not site title
Yea but the changing the url trough html is kinda impossible so I suggested that
You can't change it before the browser has already navigated to that page.
The address bar is where you put the URL to the website, if you're talking about the title (the screenshot Axel posted, this is how you do it)
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.
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 all
Here's another example of a basic webpage 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>
Last edited by mikethedj4 on Thu Apr 14, 2011 9:36 pm, edited 1 time in total.
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>
I realized that after I posted the reply, cause I read the comments after I posted instead of before.
I was talking about the URL/address bar. I am just curious, because I think it it would be fun to make messages, etc. in there.
Copyright Information
Copyright © Codenstuff.com 2020 - 2023