Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

1. Open the HTML file in a text editor.
2. Create CSS file (`styles.css`) and link it in the `<head>` section of the HTML using the `<link>` tag.

3. Apply default styles to the elements in the CSS (e.g., `body`, `header`, `nav`, `main`, `section`, `footer`).

4. Add the following line inside the `<head>` section of the HTML to enable responsive behavior: `<meta name="viewport" content="width=device-width, initial-scale=1.0">`.

**Mobile First approach and Media Queries:**
Expand Down
75 changes: 47 additions & 28 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,54 @@
<html>
<head>
<title>My Personal Web Page</title>
<link rel="stylesheet" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<header>
<h1>Welcome to My Personal Web Page</h1>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<main>
<section>
<h2>About Me</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed tempor
diam vel eros aliquam, vitae consequat tellus lacinia. Donec convallis
magna leo.
</p>
</section>
<section>
<h2>Contact Information</h2>
<p>Email: info@example.com</p>
<p>Phone: 123-456-7890</p>
</section>
</main>
<footer>
<p>&copy; 2023 My Personal Web Page. All rights reserved.</p>
</footer>

<div class="Pers">

<div class="WC">
<header>
<h1>Welcome to My Personal Web Page</h1>
<div class="navList">
<!-- <nav class="navList"> this wasnt work with nav tag -->
<!-- so I use div tag -->
<!-- do I really have to use LIST? -->
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Contact</a>
</nav>
</div>
</header>
</div>

<main class="M">

<section class="A">
<h2>About Me</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed tempor
diam vel eros aliquam, vitae consequat tellus lacinia. Donec convallis
magna leo.
</p>
</section>

<section class="C">
<h2>Contact Information</h2>
<p>Email: info@example.com</p>
<p>Phone: 123-456-7890</p>
</section>

</main>



<footer class="F">
<p>&copy; 2023 My Personal Web Page. All rights reserved.</p>
</footer>

</div>

</body>
</html>
Loading