That’s a lot to chew on. Let me see if I can respond to any of it.
There is no padding on those tags by default but there is a top and bottom margin on the dl
and a left margin of 40px (in chrome) for the dd
and nothing for the dt
. You can set them all to zero if you wanted by saying.*
dl,dt,dd{margin:0;}
*You should investigate reset style sheets like normalise.css but I tend to use something very simple like this.[/quote] NOTE: If the preceding quote doesn’t work, it’s because bbCode tags seem to work differently here than I’m accustomed to.
Response:
It’s good to know that those tags contain no padding because I looked and looked and couldn’t find any declared. Nowhere in searching for information about the tags did I find the information your provided. Thank you.
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
/* 2. Remove default margin */
html,
body,
h1, h2, h3, h4, h5, h6,
p, figure,
blockquote, dl, dd {
margin: 0;
}
/* 3. Remove list styles */
ul,
ol {
list-style: none;
margin:0;
padding:0;
}
/* 4. Set core body defaults */
body {
min-height: 100vh;
line-height: 1.5;
font-family: system-ui, sans-serif;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
height: auto;
}
/* 6. Inherit fonts for form elements */
input,
button,
textarea,
select {
font: inherit;
}
/* 7. Avoid text overflows */
p,
h1, h2, h3, h4, h5, h6 {
overflow-wrap: break-word;
}
It doesn’t cover all elements but is a good start. You then just have to remember to set the margins, padding and font-sizes that you want and not rely on any preconceived defaults.
Response:
I will chew on all that. At first glance I can see that there are elements unfamiliar to me. Also, I suspect that there are other lessons about usage that I will have to study to understand. There will probably be questions.
Good that’s fine :). You could have use the box-shadow property instead of filter which is a little more usable but does not exactly replicate that effect. The filter is good if you want that specific effect but be aware that using too many filters can cause a lag on the page as they are quite heavy in css terms although I doubt its much of an issue in your page. Generally you would use the filter where you want the shadow to follow an irregular shape or the alpha channel of an image. Box-shadow only works on regular shapes.
Response:
That’s good to know. I used filter because I found that tag used - and no mention of box-shadow - when I searched on how to code shadow. I’ll experiment with box-shadow as you suggest.
Regarding your html I’ve talked about this before and semantic meaning and structure is very important. Don’t use tags just for the way they look. As an example you have this code in your codepen:
<div class="generation-wrap">
<u>Franklin Pierce Hutchins</u>
<dl>
Franklin Pierce Hutchins is clearly a heading yet you have used an inline element the u
tag to create an underline. Tags should not be used for their appearance. It should clearly be a heading tag of the correct logical hierarchal order. The heading tag you use will depend on what went before if its inside a h2 section then it should be an h3. You can’t jump from an h2 to an h4 for example.
The <u>
tag actually represents a span of text with non-textual annotation, such as a proper name in Chinese, a misspelled word, or text marked for attention. It is an inline construct and its correct usage would be like this.
<p>The word <u>color</u> is commonly misspelled as <u>colour</u> in some regions.</p>
u{
font-weight:bold;
text-decoration:underline; /* not really needed as this is the default */
}
*Response: *
My intent was not to make the name (Franklin Pierce Hutchins) a heading but rather to make it more visible within the bordered container by using the underlining. I don’t want the font weight and padding that I’ve encountered using header tags. I’ll investigate using a header instead; but, as you say, using headers should be a hierarchy with no skips. That might present problems for me in getting the result I want.
Now you make a similar mistake here:
<dl>
<dt>LDS ID:</dt>
<dd></dd>
<dt>Date:</t>
<dd>May 27, 1894<dd>
The LDS:ID is a data term (dt
) but you have no data definition for it (dd
). Why is it there? If its a heading tag then it should be a heading above the dl itself. However I don’t really think its another heading and perhaps it can just be a simple p tag.
e.g.
<p><strong>LDS ID:</strong></p>
<dl> etc...
Response:
*I chose the definition list series of tags because I wanted the title/data presentation. There are probably other ways to do that (which I don’t know). The code as presented is not complete (I should have pointed that out in my OP); I didn’t recll the LDS number for my grandfather and simply left it out. It definitely is not a heading but is a title for the content to be provided in the <dd> </dd>
tag pairs. I’ve experimented with <p>
tags but find that they seem to have built-in parameters as to format. I could have used them as you suggest, but when I tried them they didn’t produce what I wanted. There are, no doubt, things I need to learn about how header and paragraph tags function.
In coding, I created his box as a model then copied and pasted the number of containers with the dl / dt / dd tags that I will come back to and complete with the data for each individual. That’s probably a bad practice, but it saves tons of time and prevents much fat fingering (which I’m prone to do).*
Another mistake I can see is this:
<h1 class="heading">The Hutchins Clan</h1>
<h3 class="sub-subheading">Hutchins Ancestral Line</h3>
You can’t go from an h1 straight to an h3. In your case that h3 should be an h2.
Therefore that whole section should look like this:
<div class="background-wrap">
<h1 class="heading">The Hutchins Clan</h1>
<h2 class="sub-subheading">Hutchins Ancestral Line</h2>
<div class="lineage-page-wrap">
<div class="generation-wrap">
<h3>Charles Haddon Spurgeon "Spurgeon" Hutchins</h3>
<p><strong>LDS ID:</strong></p>
<dl>
<dt>Date:</dt>
<dd>May 27, 1894<dd>
<dt>Mother:</dt>
<dd>Mary Lyzinthe Hutchins (nee Tabor)</dd>
<dt>Father:</dt>
<dd>Franklin Pierce Hutchins</dd>
<dt>Place:</dt>
<dd>Needmore Community, Nantahala Township, Swain County, North Caroline</dd>
<dt>Siblings:</dt>
<dd>1-Robert Leroy "Lee", 2-Amanda Jane (m. John Matt Davis), 3-Lyida Elizabeth (m. Tolvin Buchanan), 4-James Alfred, 5-John Henry, 6-(Spurgeon. 7-)William Carey (died at 4 months)</dd>
<dt>Married:</dt>
<dd>Healy Heady Mauden Bake, September 22, 1923</dd>
<dt>Children:</dt>
<dd>1-William Spurgeon, 2-Charles Baker, 3-Frank Tabor, 4-Elizabeth Lee "Baby Lee", 5-James Alfred, 6-John Fox, 7-Mary Jo "Jo", 8-Nancy Catherine, 9-Robert Haddon</dd>
</dl>
</div> <!-- END of .genertion-wrap-->
etc.....
Response:
*Duly noted. I observed the h1 to h3 leap later as I coded and have subsequently changed it. I had to make some adjustments to my CSS code for header elements to get the effects I wanted, mainly font size and weight. *
Are there ways to declare the header tag styles then alter them in the HTML code to better suit their use in a specific situation? My thought was that putting styling code into the HTML should be avoided except in cases where it is necessary, like using the span tag. Am I wrong about this?
Notice how we go logically from h1 to h2 to h3, Also note that you didn’t close the dd tags properly. You have this:
<dd>Mary Lyzinthe Hutchins (nee Tabor)<dd>
It should be this:
<dd>Mary Lyzinthe Hutchins (nee Tabor)</dd>
What you had is in effect two dd elements which in html5 will not produce an error but you could get two lines instead of one and will confuse screen readers and document outliners.
Response:
The missing slash in the closing tag was a typo. I use code validators to help me find such but failed to do that before pasting the code in my CodePen.
Don’t get despondent though as I see you are making good progress and there is nothing unusual in the mistakes you are making. All beginners (not to mention some intermediate and experts) make the same mistakes. 
{NOTE: I haven’t figured out how to use the quote markup in the forum. It seems to be a bit different than I’ve used elsewhere. I wanted to quote Paul’s post in segments then respond to them. I couldn’t suss out the quote bbCode in use here so used italics to highlight my responses.]
Thanks for all you’ve done to mentor me, Paul. It is truly appreciated.