-
Notifications
You must be signed in to change notification settings - Fork 0
Exercises (HTML): Webmaking with HTML and CSS
Jonathan edited this page Jun 19, 2023
·
6 revisions
-
Together: Review the text in the
bodyelement ofindex.html. Decide on its structure in terms of headings, paragraphs, and lists. - Add HTML content elements
h1,h2,p,ul, andlito the content, where appropriate. Try to add at least one of each element before repeating elements.
- Elements are made using tags, which are indicated by angle brackets, i.e.
<and>. - Element tags usually come in pairs, e.g.:
<h1>and</h1>.
<h1>Level 1 heading</h1><h2>Level 2 heading</h2><p>Paragraph or other text...</p><ul>
<li>First list item</li>
<li>Second list item</li>
</ul>Inside the HTML elements from Exercise 1, add at least 6 elements of the following content elements:
<strong><em><mark><small>
Try to use at each element at least once!
- These elements will be nested within other content elements, e.g.:
<p>This is example text with <strong>some strongly emphasized words</strong>.</p>-
Together: Examine the text (with content elements added) in the
bodyand addheaderandmainelements to it. - Examine the newly-created
mainelement. Usingsectionelements, dividemaininto sections. Try to make at least3sections.
- Look for patterns in the text.
- Try to create sections based on the presence of a short title followed by some other, longer content.
-
body,headerandmain
<body>
<header>
<!-- Some header stuff here! -->
</header>
<main>
<!-- Main web page content in here -->
</main>
</body>-
mainandsection
<main>
<section>
<!-- First section content -->
</section>
<section>
<!-- Second section content -->
</section>
<section>
<!-- Third section content -->
</section>
</main>