Hello pnielsen,
Wow, huge question! I looked at this last night and passed on it because there was so much to cover.
This morning, maybe I'll start the ball rolling by addressing one or two issues. Maybe someone else will jump in as well.
Quote:
One question I have is the correct nesting order for alignment, font, and formatting attributes. For example, it seems less repetitious that a <p> should follow the font attribute when there are multiple pages of paragraphs with the same formatting. What is the standard?
I realize some of the tags are depreciated. I would like to sort that out next and put CSS in the header. Any advice along these lines would also be much appreciated.
|
This is really the same question. You already recognize some of the limitations of the inline styles you're using right now. One simple entry in your CSS would style all your <p> tags and completely eliminate the repetition.
Look at this example -
Code:
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Untitled Document</title>
<style type="text/css">
html, body {
margin: 0;
font: 100% "Trebuchet MS", Arial, Helvetica, sans-serif;
color: #000;
background: #fc6;
}
#container {
width: 760px;
margin: 0 auto;
padding: 20px;
background: #999;
text-align: center;
}
img#cover {margin: 0 auto;}
</style>
</head>
<body>
<div id="container">
<img src="../../../../Documents\Publishing\Templates\Kindle Master\book_cover_test3.jpg" alt="description" width="300" height="75" id="cover">
<h1>Title Here</h1>
<h2>Introduction</h2>
<p>
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna
aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no
sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo
duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
</p>
<!--end container--></div>
</body>
</html>
...
Quote:
|
Feel free to copy and paste any or all of it to the forum for commenting. I didn't know if that was allowed, so I just provided the above link.
|
Links are always best, we can see the images that way and the code is readily available if we need it. You are allowed to post code in the forum, this is a forum about code after all. When posting code in the forum, please use the code tags, [code][/code] - available with the # button in the post edit window.
This will wrap your code in a scroll box which greatly helps the readability of your post.
...
Check out the links about validation in my signature line. Validating can find mistakes, depricated code and help you learn the correct way to write code.