Ict 8 Reviewer For Second Quarterly Exam
Ict 8 Reviewer For Second Quarterly Exam
Ict 8 Reviewer For Second Quarterly Exam
2. Unpaired Tags - These are also called single tags or stand-alone tags because they do
not require an end tag.
Examples:
o <!DOCTYPE html> o <img>
o <br> o <input>
o <hr>
Structural Tags - These tags are fixed and can be found in every HTML file.
CREATING LISTS
ATTRIBUTE DESCRIPTION
This is used to reverse the order of the list in
Reversed
descending order.
This is used to specify the start value of the
Start
ordered list.
This is used to identify the marker at the
Type
beginning of each list item.
In an ordered list, there are three available markers that can be used
• Letters
• Numbers
• Roman Numerals
The following is the sample code for an unordered list and its output.
<p>Favorite color:</p>
<ol>
<li>Pink</li>
<li>White</li>
<li>Red</li>
</ol>
Unordered List – This type of list doesn’t follow a specific sequence and it displays entries in
a bulleted list using the <ul> tag.
<li> - This is used to mark the items in the list and indicates and ordinary list item.
The following is the sample code for an unordered list and its output.
<p>Favorite color:</p>
<ul>
<li>Pink</li>
<li>White</li>
<li>Red</li>
</ul>
Definition List
• This list displays items with their definitions below the list item and is indented.
• Definition term <dt> - Marks each term in the item
• Definition description <dd> - Defines each description
<dl>
<dt>Pink</dt>
<dd>A light shade of red.</dd>
<dt>White</dt>
<dd>Brings achromatic color of maximum lightness</dd>
<dt>Red</dt>
<dd>A chromatic color resembling the hue of blood</dd> </dl>
NESTING ELEMENTS
Nesting - to place one tag inside another. You should nest tag pairs appropriately so you can
come up with your expected output.
Here's an example of correct nesting where italic and bold tags are completely nested within
the paragraph element:
Goal: Make the words "very easy" stand out using italic and bold tags.
Sample Code:
<p>HTML language is <i><b>very easy</b></i>and fun to learn</p>
Output:
HTML language is very easy and fun to learn
➢ In the example, the words "very easy" stand out since it was italicized and boldfaced
by using the <i> and <b> tags.
➢ If you placed the </b> end tag after the </p> end tag, the words "fresh water during
hot weather" would appear bold but only "fresh water" would be italicized.
Sample Code:
<p>Make sure your pet has plenty of <i><b>fresh water</i> during hot weather. </b></p>
Output:
Make sure your pet has plenty of fresh water during
hot weather.
➢ The rule for nesting is, the first tag you use should be the last tag you close. In the
correct example, notice that the paragraph tag opens first followed by the bold tag and
then the italic tag. Then the italic element closes, followed by the bold element, and
finally the paragraph element.