HTML Biginers Task
HTML Biginers Task
LIST ITEMS
1. Create an HTML file with the appropriate structure, including the <!DOCTYPE html>
declaration, <html>, <head>, and <body> tags.
Inside the <body> tag, create an ordered list using the <ol> tag.
Include at least three list items <li> within the ordered list.
Add relevant information to each list item, such as your favorite books, movies, or
places to visit.
Create an unordered list using the <ul> tag below the ordered list.
Include at least three list items <li> within the unordered list.
Add different information to each list item, such as your hobbies, goals, or favorite
foods.
Description: Your task is to create a simple personal webpage for a fictional character named Jane
Doe. The webpage should include some basic information about Jane, such as her name, interests,
and a brief introduction, include a navigation menu that allows visitors to easily navigate between
different sections of the webpage
Requirements:
1. HTML Structure:
Create an HTML file with the appropriate structure, including the <!DOCTYPE html>
declaration, <html>, <head>, and <body> tags.
2. Page Content:
3. Styling:
Experiment with CSS properties like background color, borders, and text alignment
to enhance the appearance of the webpage.
CSS
HTML & CSS
1. CSS:
Colon (:): In CSS, colons are used to separate the property name from its corresponding value within a
declaration.
Within the <head> section of your HTML file, add a <style> tag to LINK LATER.
Use selectors to target specific HTML elements. For example, to style a <h1>
heading, use the selector h1.
Apply CSS properties and values to change the appearance of the selected elements.
For instance, to change the font color of a heading, use the property color and
specify a color value like red.
Test your styles by refreshing the webpage in a browser and checking the changes.
font-family: Define the font type for text. For example: font-family: Arial, sans-serif;
font-size: Specify the size of the text. For example: font-size: 16px;
text-align: Align text within its container. For example: text-align: center;
padding: Add space inside an element's boundary. For example: padding: 10px;
border: Add a border around an element. For example: border: 1px solid black;
Add a class attribute to HTML elements, such as <h1 class="my-heading">, and then
define the styles for that class in CSS using a dot (.) before the class name. For
example: .my-heading { color: red; }
You can apply multiple styles to an element by separating them with semicolons. For
example: font-family: Arial, sans-serif; color: #333333;
</nav>
<nav>
HTML & CSS
<ul>
</ul>
</nav>
<nav>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>