|
-
Nov 21st, 2012, 06:32 PM
#1
[HTML] Question on titles
By titles I mean at the top of alot of website that have little quick links like "Home" "About" "What's New?". How should I handle those? I'm sure I could do something like this:
html Code:
<head> <h1>Home | About | What's New?</h1></head>
-
Nov 22nd, 2012, 01:59 PM
#2
Addicted Member
Re: [HTML] Question on titles
<h1> and anything appears on the page should be inside the body tag, after head
-
Nov 22nd, 2012, 02:26 PM
#3
Re: [HTML] Question on titles
For links that align side by side, most people use an unordered list.
Code:
<ul id="navigation">
<li><a href="">Link 1</a></li>
<li><a href="">Link 2</a></li>
<li><a href="">Link 3</a></li>
<li><a href="">Link 4</a></li>
</ul>
Then you'll want to add the css to the list to make it appear properly
Code:
#navigation li
{
display: inline;
list-style-type: none;
}
This is untested, but should work. You'll also want to add padding, and if you want the bar inbetween items, you'll need to use a border.
-
Nov 22nd, 2012, 05:39 PM
#4
Re: [HTML] Question on titles
 Originally Posted by kfcSmitty
Then you'll want to add the css to the list to make it appear properly
Code:
#navigation li
{
display: inline;
list-style-type: none;
}
This is untested, but should work. You'll also want to add padding, and if you want the bar inbetween items, you'll need to use a border.
I would normally use inline-block instead of just inline. Inline-block gives more flexibility in being able to set a fixed-width of list items, which inline elements can't do.
-
Nov 23rd, 2012, 09:40 AM
#5
Re: [HTML] Question on titles
<h1> and anything appears on the page should be inside the body tag, after head
Thank you, I guess I just assumed they belong in the <head> tags.
For links that align side by side, most people use an unordered list.
I had no idea about unordered list, thanks for that example! As for the CSS, I'm trying to use just HTML for now to get a basic understanding.
@tr333, Thank you for your input as well
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|