You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: In this tutorial, you will learn about HTML elements and tags. HTML elements are the building blocks of HTML pages, and tags are used to define the structure of the content.
8
-
keywords: [html, web development, elements, tags, html elements, html tags, html tutorial, html basics, web design, web pages, websites, html structure, html elements tutorial, html tags tutorial, html in 2024]
description: In this tutorial, you will learn how to make your first open source contribution on GitHub without using the command line. Learn to fork, edit, commit, and create pull requests directly through the GitHub web interface.
8
+
keywords: [git, github, open source, first contribution, pull request, fork repository, github tutorial, web-based editing, opensource contribution, beginner guide, github workflow, contributing to open source]
9
9
---
10
10
11
-
# First Open Source Project – HTML Basics & GitHub Contribution
11
+
# First Open Source Project – Making Your First Contribution
12
12
13
13
## Introduction
14
14
15
-
In this tutorial, you will learn about HTML elements, attributes, and their values, as well as how to make your first open source contribution directly through GitHub—no command line required!
15
+
Welcome to your first open source contribution! In this tutorial, you will learn how to contribute to an open source project directly through GitHub's web interface—no command line required! This is perfect for beginners who want to start contributing to open source projects.
16
16
17
-
## What Are HTML Attributes?
17
+
## What is Open Source?
18
18
19
-
HTML attributes provide additional information about HTML elements and change their behavior or appearance. They are written inside the opening tag of an element.
19
+
Open source software is code that is freely available for anyone to view, use, modify, and distribute. Contributing to open source projects helps you:
20
+
- Learn from real-world code
21
+
- Build your portfolio
22
+
- Connect with the developer community
23
+
- Improve your coding skills
24
+
- Give back to projects you use
20
25
21
-
Here is an example of an HTML element with attributes:
26
+
## Prerequisites
22
27
23
-
Go to this repository [https://github.com/sanjay-kv/Open-source-Practice](https://github.com/sanjay-kv/Open-source-Practice)
28
+
Before starting, make sure you have:
29
+
- A GitHub account (create one at [github.com](https://github.com))
30
+
- Basic understanding of Git and GitHub concepts
31
+
- Willingness to learn and contribute!
24
32
33
+
## The Contribution Workflow
34
+
35
+
The typical open source contribution workflow involves:
36
+
1.**Fork** the repository
37
+
2.**Edit** the files
38
+
3.**Commit** your changes
39
+
4.**Create** a pull request
40
+
5.**Wait** for review and feedback
41
+
42
+
Let's walk through each step!
43
+
44
+
## Step 1: Find the Repository
45
+
46
+
Navigate to the practice repository: [https://github.com/sanjay-kv/Open-source-Practice](https://github.com/sanjay-kv/Open-source-Practice)
47
+
48
+
This is a beginner-friendly repository designed for practicing open source contributions.
<divalign="center"><small>Step 1: Repository Home Page</small></div>
29
53
</BrowserWindow>
30
54
31
-
In this example, the `<a>` element is an anchor tag that links to a GitHub repository.
55
+
Take a moment to:
56
+
- Read the README file to understand the project
57
+
- Check if there are contribution guidelines (CONTRIBUTING.md)
58
+
- Look at existing issues or pull requests
59
+
- Understand what kind of contributions are welcome
32
60
33
-
## Understanding HTML Attribute Values
61
+
## Step 2: Fork the Repository
34
62
35
-
HTML attribute values define specific settings or properties for attributes. They are assigned to attributes using the `=` sign and enclosed in quotes (`"` or `'`). The value of an attribute can be a string, number, URL, color, or other data types depending on the attribute.
63
+
Forking creates your own copy of the repository where you can make changes without affecting the original project.
36
64
37
-
Here is an example of an HTML element with attribute values:
65
+
1. Click the **Fork** button in the top-right corner of the repository page
-**Related issues** (if fixing a bug or implementing a feature)
118
202
119
-
The **Compare across forks** feature allows you to compare changes between your forked repository and the original repository. This helps you review what modifications you've made before submitting your Pull Request.
203
+
**Example PR description:**
204
+
```
205
+
## Description
206
+
Added my name to the contributors list as per the contribution guidelines.
120
207
121
-
This comparison view shows a side-by-side diff of commits and file changes, making it easier to:
208
+
## Changes Made
209
+
- Added "John Doe" to CONTRIBUTORS.md
210
+
- Maintained alphabetical ordering
122
211
123
-
- Identify added, modified, or deleted lines of code or documentation.
124
-
- Ensure that only intended changes are included before proposing a merge.
125
-
- Detect any inadvertent or unrelated changes early in the Pull Request process.
126
-
- Confirm that your feature branch or fork is updated against the base branch to reduce merge conflicts.
212
+
## Checklist
213
+
- [x] Followed the project's style guidelines
214
+
- [x] Checked for typos
215
+
- [x] Read the contribution guidelines
216
+
```
127
217
128
-
You select your fork and branch as the "compare" source and the original repository as the "base." GitHub then displays the exact changes, commits, and file differences between these two.
218
+
## Understanding "Compare Across Forks"
129
219
130
-
Using this feature is a vital step to maintain code quality and smooth collaboration when contributing to open source or shared projects. It helps maintainers and contributors clearly understand the scope and impact of proposed changes before merging.
220
+
The **Compare across forks**feature is crucial for creating pull requests from your fork to the original repository.
131
221
222
+
### What Does It Do?
132
223
133
-
## Watch this video
224
+
This feature allows you to compare changes between:
225
+
- Your forked repository (where you made changes)
226
+
- The original repository (where you want to contribute)
227
+
228
+
### Why Is It Important?
229
+
230
+
The comparison view shows:
231
+
-**All commits** you've made since forking
232
+
-**File changes** in a diff format
233
+
-**Additions** highlighted in green
234
+
-**Deletions** highlighted in red
235
+
-**Conflict warnings** if there are any
236
+
237
+
### How to Use It Effectively
238
+
239
+
1.**Select the correct branches:**
240
+
- Base: Original repository's main branch
241
+
- Compare: Your fork's branch with changes
242
+
243
+
2.**Review the diff carefully:**
244
+
- Ensure only intended changes are included
245
+
- Check for accidental modifications
246
+
- Verify formatting is correct
247
+
248
+
3.**Look for conflicts:**
249
+
- Red warnings indicate merge conflicts
250
+
- Update your fork if needed
251
+
- Resolve conflicts before creating PR
252
+
253
+
### Benefits of Comparing
254
+
255
+
-**Prevents mistakes** - Catch unintended changes early
256
+
-**Improves quality** - Review your work before submission
257
+
-**Reduces conflicts** - Identify issues before they become problems
258
+
-**Saves time** - Avoid back-and-forth with maintainers
259
+
-**Shows professionalism** - Demonstrates attention to detail
260
+
261
+
:::warning Important Notes
262
+
263
+
- Always check the diff before creating a PR
264
+
- Make sure you're comparing the right branches
265
+
- If you see unexpected changes, fix them before submitting
266
+
- Keep your fork updated to avoid conflicts
267
+
268
+
:::
269
+
270
+
## Step 6: Wait for Review
271
+
272
+
After creating your pull request:
273
+
274
+
1.**Wait patiently** - Maintainers review PRs on their schedule
275
+
2.**Respond to feedback** - Be open to suggestions and changes
276
+
3.**Make requested changes** - Update your PR based on feedback
277
+
4.**Stay professional** - Be courteous and respectful
278
+
279
+
280
+
## Watch This Video Tutorial
281
+
282
+
For a visual walkthrough of the entire process, watch this helpful video:
134
283
135
284
<iframewidth="883"height="480"src="https://www.youtube.com/embed/R7NReLBCT_8?list=PLrLTYhoDFx-kiuFiGQqVpYYZ56pIhUW63"title="How to do your first opensource on GitHub"frameborder="0"allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"referrerpolicy="strict-origin-when-cross-origin"allowfullscreen></iframe>
- 🌐 **Translation** - Translate docs or UI to other languages
301
+
- 🐛 **Bug Reports** - Report issues you encounter
302
+
- 💡 **Feature Suggestions** - Propose new features
303
+
- 🎨 **Design** - Improve UI/UX
304
+
- ✅ **Testing** - Test new features and report results
305
+
- 📊 **Data** - Add datasets or examples
306
+
- ❓ **Support** - Help answer questions in issues
307
+
137
308
## Conclusion
138
309
139
-
HTML attributes and values play a crucial role in web development. You have now learned how to fork a repository, edit files directly on GitHub, commit changes, compare across forks, and create a Pull Request—making your first open source contribution!
310
+
Congratulations! You've learned how to make your first open source contribution using only GitHub's web interface. You now know how to:
0 commit comments