Ca Re
Ca Re
Ca Re
2)Internal CSS
<html>
<head>
< tle>Internal CSS Example</ tle>
<style>
body {font-family: Arial, sans-serif;}h1 {color: blue;}
p {font-size: 18px;}
.important-text {font-weight: bold;}
</style>
</head>
<body>
<h1>Welcome to My Website</h1>
3)Inline CSS
<html>
<head>
< tle>Inline CSS Example</ tle>
</head>
<body style="font-family: Arial, sans-serif; background-color: #f4f4f4; text-
align: center;">
<h1 style="color: #333333;">Inline CSS Example</h1>
<p style="font-size: 18px; line-height: 1.6; color: #555555;">
Inline CSS is a way of applying styles directly to HTML elements using the
'style' a ribute. This allows you to control the appearance of individual
elements. In this example, the body has a background color of light grey, and
the text is centered. The heading has a color of dark grey, and the paragraph
has a font size of 18 pixels with a line height of 1.6.
</p>
<p style="font-style: italic; color: #777777;">
Inline styles are useful for making quick, specific changes to elements, but
they can become hard to manage in larger projects. It's o en be er to use
external CSS files for consistent styling across a website.
</p>
</body>
</html>
4)External CSS
HTML code :
<html>
<head>
< tle>External CSS Example</ tle>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<h1>External CSS Example</h1>
<p>External CSS allows you to separate the style of your website from its
content. It improves code organiza on, reusability, and maintenance.</p>
<p>By linking an external CSS file using the <link> element, you can
apply consistent styles across mul ple pages.</p>
</body>
</html>
CSS code:
body {font-family: Arial, sans-serif; background-color: #f0f0f0; margin:
0;padding: 20px;}
h1 {color: #333333;text-align: center;}
p {font-size: 18px;line-height: 1.6;color: #555555;margin-bo om: 15px;}
6)Ordered List
<html>
<head>
< tle>Ordered List Example</ tle>
</head>
<body>
<h2>Types of Fruits</h2>
<ol type="1">
<li>Apple</li>
<li>Banana</li>
<li>Cherry</li>
</ol>
<h2>Types of Animals</h2>
<ol type="A" start="4">
<li>Lion</li>
<li>Tiger</li>
<li>Bear</li>
</ol>
<h2>Planets in the Solar System</h2>
<ol type="I">
<li>Mercury</li>
<li>Venus</li>
<li>Earth</li>
<li>Mars</li>
</ol>
</body>
</html>
7) Unordered List
<html>
<head>
< tle>Unordered List Example</ tle>
</head>
<body>
<h2>Types of Sports</h2>
<ul style="list-style-type: disc;">
<li>Soccer</li>
<li>Basketball</li>
<li>Tennis</li>
</ul>
<h2>Types of Trees</h2>
<ul style="list-style-type: square;">
<li>Oak</li>
<li>Maple</li>
<li>Pine</li>
</ul>
<h2>Types of Birds</h2>
<ul style="list-style-type: circle;">
<li>Eagle</li>
<li>Robin</li>
<li>Parrot</li>
</ul>
<h2>Types of Flowers</h2>
<ul style="list-style-type: none;">
<li>Rose</li>
<li>Tulip</li>
<li>Daisy</li>
</ul>
</body>
</html>
8)Nested List
<html>
<head>
< tle>Advantages and Disadvantages of AI</ tle>
</head>
<body>
<h2>Advantages of AI</h2>
<ul>
<li>Increased Efficiency</li>
<li>Be er Decision Making</li>
<li>24/7 Availability</li>
<li>Task Automa on
<ol type="A">
<li>Repe ve Tasks</li>
<li>Complex Calcula ons</li>
</ol>
</li>
<li>Improved Healthcare
<ol type="I">
<li>Medical Diagnos cs</li>
<li>Treatment Personaliza on</li>
</ol>
</li>
</ul>
<h2>Disadvantages of AI</h2>
<ol type="i">
<li>Lack of Human Understanding</li>
<li>Job Displacement</li>
<li>Privacy Concerns</li>
<li>High Ini al Costs</li>
<li>Dependence on Technology
<ul style="list-style-type: square;">
<li>System Failures</li>
<li>Security Risks</li>
</ul>
</li>
</ol>
</body>
</html>
11)Tables in HTML
<html>
<head>
< tle>Simple Table Example</ tle>
</head>
<body>
<h2>Simple Table Example</h2>
<table border="1">
<tr>
<th>Header 1</th>
<th>Header 2</th>
<th>Header 3</th>
</tr>
<tr>
<td>Row 1, Cell 1</td>
<td>Row 1, Cell 2</td>
<td>Row 1, Cell 3</td>
</tr>
<tr>
<td>Row 2, Cell 1</td>
<td>Row 2, Cell 2</td>
<td>Row 2, Cell 3</td>
</tr>
</table>
</body>
</html>
- https://bard.google.com/ and
https://chat.openai.com/ was used to
collect information