-
Notifications
You must be signed in to change notification settings - Fork 0
/
css.html
66 lines (60 loc) · 3.64 KB
/
css.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
layout: default
title: How to learn CSS
---
<button id="openbtn" class="openbtn" onclick="openNav()">☰</button>
<div class="container-fluid">
<div class="row">
<!-- Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
<div class="col-md-9">
<h1>How to Learn CSS</h1>
<p>Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in HTML or XML. CSS is used to control the layout and appearance of web pages, including colors, fonts, images, and other visual elements. Here are some tips on how to learn CSS:</p>
<ol>
<li><strong>Learn the basics of CSS:</strong> Start with the basics, such as selectors, properties, and values. Learn how to apply CSS to HTML documents, and how to use classes and IDs to target specific elements. </li>
<li><strong>Practice:</strong> Practice is essential to learning CSS. Create simple projects, such as styling headings and paragraphs, and gradually move on to more complex layouts.</li>
<li><strong>Use resources:</strong> There are many resources available online to help you learn CSS, including tutorials, blogs, and online courses. Some popular resources include W3Schools, CSS-Tricks, and Codecademy.</li>
<li><strong>Learn CSS frameworks:</strong> CSS frameworks, such as Bootstrap and Foundation, can help you design and develop websites more quickly and easily. Learn how to use popular CSS frameworks, and how to customize them to fit your needs.</li>
<li><strong>Stay up-to-date:</strong> CSS is constantly evolving, and new features are added regularly. Stay up-to-date with the latest CSS developments, and learn new techniques and best practices.</li>
</ol>
<h2>CSS Resources</h2>
<p>Here are some helpful resources to get started with CSS:</p>
<ul>
<li><a href="https://www.w3schools.com/css/">W3Schools</a></li>
<li><a href="https://css-tricks.com/">CSS-Tricks</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS">MDN Web Docs</a></li>
<li><a href="https://www.codecademy.com/learn/learn-css">Codecademy</a></li>
<li><a href="https://getbootstrap.com/docs/5.0/getting-started/download/">Bootstrap 5 Get Started</a></li>
</ul>
<p>Here is latest bootstap link to add in your HTML head section:</p>
<ul>
<li><code><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css"></code>
</li>
</ul>
<p>Here is latest bootstap link to add in your HTML head section:</p>
<ul>
<li><code><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css"></code>
</li>
</ul>
<p style="text-align: center;">© 2023 Made with 🖤 by <strong>Vikas Bandaru</strong></p>
</div>
</div>
</div>
<script>
// Get all the links
var links = document.querySelectorAll(".nav-link");
// Loop through the links
for (var i = 0; i < links.length; i++) {
// Add a click event listener to each link
links[i].addEventListener("click", function(event) {
// event.preventDefault(); // prevent default link behavior
// Remove the "active" class from all links
for (var j = 0; j < links.length; j++) {
links[j].classList.remove("active");
}
// Add the "active" class to the clicked link
this.classList.add("active");
});
}
</script>