Building a Page (Step-by-Step)
When thinking about page structure and layout, a good plan is to start with divs and begin identifying and grouping elements within:
- “How many divisions (or sections) of my page do I want?” Create these
<div></div>
elements accordingly. - Name important divs using the
id=""
attribute. - Within the divs, add structural html content, like headings, paragraphs, etc.
- Add
class=""
attributes to divs that need styling. - Use the
<span></span>
element around structural elements that need inline styling, like specific words of a paragraph. - Within the divs, add illustrative elements like images, audio, or video.
- Repeat.
</div>
- Previous
- Next