HTML TAGS THAT HAVE BOTH OPENING AND CLOSING TAGS

TEN (10) HTML TAGS THAT HAVE BOTH OPENING <TAG> AND CLOSING </TAG> TAGS:

1. <html> … </html>: Defines the root of an HTML document.
2. <head> … </head>: Contains meta-information about the HTML document.
3. <body> … </body>: Represents the content of an HTML document.
4. <p> … </p>: Defines a paragraph.
5. <h1> … </h1> to <h6> … </h6>: Define headings of different levels.
6. <div> … </div>: Defines a division or a section in an HTML document.
7. <span> … </span>: Defines a section in a document for styling purposes.
8. <a> … </a>: Defines a hyperlink.
9. <ul> … </ul>: Defines an unordered list.
10. <ol> … </ol>: Defines an ordered list.

 

Assignment 4 and 5

1. Example of CSS:

css

   .header {

       font-size: 24px;

   }

   This CSS script selects elements with the class “header” and sets their font size to 24 pixels.

2. Adding CSS to Your Webpage:

   You can add CSS to your webpage by either linking an external CSS file using the <link> tag within the <head> section of your HTML document, or by using the <style> tag directly in the <head> or <body> sections to define internal CSS styles.