Skip to content

zarif007/RS-Web-Dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

55 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

RS-Web-Dev

Class 1 (HTML)

What is HTML

HTML codes tells the browser how to structure the Web page

html1

Document Tree

Logo

Tree of HTML Elements

<tagname>Content</tagname>
<tagname />

Installation and Code editor

https://code.visualstudio.com/download

https://codesandbox.io/s/github/codesandbox-app/static-template/tree/master/?file=/index.html

HTML Elements

HTML boilerplate

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <link rel="icon" type="image/x-icon" href="/images/favicon.ico" />
    <title>RS Class 1</title>
  </head>
  <body>
    <!-- Content Goes here -->
  </body>
</html>

Header tags

<h1>I am h1</h1>
<h2>I am h2</h2>
<h3>I am h3</h3>
<h4>I am h4</h4>
<h5>I am h5</h5>
<h6>I am h6</h6>

Logo

Paragraph

<p>I am a paragraph</p>

Break and Horizontal rule tag

<br />

Logo

<hr />

Text formatting tag

<strong>I am Strong πŸ’ͺ</strong>
<small>I am smol πŸ˜”</small>
<mark>mark me</mark>
<del>please, do not write off me :(</del>

Division tag

<div>I am divided</div>

List

Types of list

  • Unordered list
<ul>
  <li>Like</li>
  <li>Comment</li>
  <li>Subscribe</li>
</ul>
  • Ordered list
<ol>
  <li>Get Admitted to BracU</li>
  <li>Enroll in Tarc</li>
  <li>Find Jiboner mane πŸ’‘</li>
</ol>

type="1" (default): This type creates a numbered list with Arabic numerals (1, 2, 3, …).

type="A": This type creates a numbered list with capital letters (A, B, C, …).

type="a": This type creates a numbered list with lowercase letters (a, b, c, …).

You can also use type="I" and type="i" to create a numbered list with Roman numerals (I, II, III, …) in uppercase and lowercase respectively.

  • Definition list
<dl>
  <dt>Get Admitted to BracU</dt>
  <dd>Ektu pera</dd>
  <dt>Enroll in Tarc</dt>
  <dd>Now ektu happy</dd>
  <dt>Find Jiboner mane πŸ’‘</dt>
  <dd>Now pura happy</dd>
</dl>

Image Tag

<!-- Direct link -->
<img src="https://static1.makeuseofimages.com/wordpress/wp-content/uploads/2022/03/bored-ape-nft.jpg" width="300" height="300" alt="boredape" />
<!-- Relative link -->
<img src="images/html1.jpg" width="200" height="200" alt="dp" />

Anchor tag

<a href="https://www.youtube.com/">Youtube</a>
<a href="https://www.youtube.com/" target="_blank">Youtube</a>

Table tag

<table>
  <thead>
    <tr>
      <th>Heading 1</th>
      <th>Heading 2</th>
      <th>Heading 3</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>I am 1</td>
      <td>I am 2</td>
      <td>I am 3</td>
    </tr>
    <tr>
      <td>I am 2.1</td>
      <td>I am 2.2</td>
      <td>I am 2.3</td>
    </tr>
  </tbody>
</table>

Details tag

<details>
  <summary>Please Open</summary>
  <p>haha I got you</p>
</details>

Input

<input type="text" /><br />

<input type="email" /><br />

<input type="password" /><br />

<input type="color" /><br />

<input type="time" /><br />

<input type="month" /><br />

<input type="file" /><br />

Form

<form>
  <label>Enter Username</label><br />
  <input type="text" /><br />

  <label>Enter Email</label><br />
  <input type="email" /><br />

  <label>Enter Password</label><br />
  <input type="password" /><br />

  <label>Tell me about yourself</label><br />
  <textarea></textarea><br />

  <label>Enter Profile Picture</label><br />
  <input type="file" /><br />

  <label>Select semester</label>
  <select>
    <option value="1st">1st Semester</option>
    <option value="2nd">2nd Semester</option>
    <option value="3rd">3rd Semester</option>
  </select>

  <button>Submit</button>
</form>

HTML Semantic Tags

Logo

For more

Ending

meme

Class 2 (CSS 1.0)

CSS or Cascading Style Sheet is used to style HTML Document

Logo

Styling Structure

selector {
  style declaration (Key (property) - Value (value))
}

Selectors

  • universal
  • element
  • class
  • id

Implementing on HTML

  • Inline Styling
  • Internal Style Sheet
  • External Style Sheet

Inline Styling

<p style="color: red">I am Red</p>

Internal Style Sheet

</head>

<style>
  p {
    color: red
  }
</style>

<body>

External Style Sheet

Create a file name style.css (can be anyname).css

<link rel="stylesheet" href="style.css" />

Universal Selector

* {
  color: red;
}

Element Selector

p {
  color: red;
}

Class Selector

.red {
  color: red;
}
<h1 class="red">I am Red</h1>
<p class="red">I am Red</p>

Id Selector

#red {
  color: red;
}
<h1 id="red">I am Green</h1>

Styling declaration we must know

Color

  • font color (color: red)
  • Background color (background-color: red)

Using Color

  • color name (ex. red)
  • Hex value of color (ex. #121212)
  • RGBA (ex. rgba(0, 5, 6, 1))

Font

  • Font Style (font-family: sans-serif)
  • Font weight (font-weight: lighter/bold/(100-900))
  • Font size (font-size: large/small/medium/px)

https://fonts.google.com/

Text

  • Text Position (text-align: center/left/right)
  • Distance between Letter (letter-spacing: 10px;)
  • Distance between Words (word-spacing: 10px;)
  • Distance between Lines (line-height: 60px;)

List

  • List Style (list-style: disc/square/circle/none)

Display

  • Block (Takes the whole width ex. div, h1, p)
  • Inline (Takes as mush as needed ex. span)
display: inline/block/none;

Table

th,
td {
  border: 1px solid blue;
  font-size: 60px;
  height: 100px;
}

th {
  background-color: aquamarine;
}

table {
  border-collapse: collapse;
  text-align: center;
  vertical-align: middle;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
}

Class 3 (CSS 2.0)

CSS Box Model

Logo

Demo

.box {
    border: 1px solid blue; (left/top/bottom/right)
    border-radius: 10px;
    padding: 10px; (left/top/bottom/right)
    margin: 10px; (left/top/bottom/right)
}

Logo

Spcificity

element < class < id < inline styling < !important

Hover

selector:hover {
    style declaration
}

Flex Box

The Flexible Box Layout Module, makes it easier to design flexible responsive layout structure

Demo

.boxes {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.boxes div {
  background-color: aqua;
  border: 1px solid black;
  height: 250px;
  width: 250px;
  margin: 5px;
}

.box-1 {
  flex: 2;
}
.box-2 {
  flex: 1;
}
.box-3 {
  flex: 1;
}

Class 5 (CSS 3.0)

Media Query

Logo

Structure

@media (Minimum width) and (Maximum width) {
    styling block
    styling block
    styling block
    ...
}

Demo

@media (min-width: 0px) and (max-width: 480px) {
  * {
    background-color: aqua;
  }

  img {
    display: none;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  * {
    background-color: blue;
  }
}

@media (min-width: 769px) and (max-width: 1279px) {
  * {
    background-color: red;
  }
}

@media (min-width: 1280px) {
  * {
    background-color: gold;
  }
}

URLs

Color:

combination: https://colorhunt.co/

Emoji:

https://emojipedia.org/

Tailwind CSS

Installation

https://tailwindcss.com/docs/installation/play-cdn

Color

https://tailwindcss.com/docs/customizing-colors
<span Class="bg-red-500 text-blue-500">Color Class</span>

Border

side => border-t/b/l/r/x/y unit => border-(0 - 8)

<span Class="border-2 border-blue-500">Border Class</span>

Padding

side => pt/b/l/r/x/y unit => p-(0-96)

<span Class="p-3">Padding Class</span>

Margin

side => mt/b/l/r/x/y unit => m-(0-96)

<p class="m-4">Margin Class</p>

Class 6 (Tailwind CSS)

Some resources

https://flowbite.com/
https://tailwindcomponents.com/
https://tailblocks.cc/

Navbar:

https://tailblocks.cc/

Gallery:

https://flowbite.com/docs/components/gallery/

Map:

https://tailblocks.cc/

Card:

https://flowbite.com/docs/components/card/

Roadmap / what's next πŸ›£οΈ

Logo

Immediate Next step (Take either) πŸ‘‡

1. Learn Python > Learn Django > Develop few fullstack WebApps with Django, HTML, CSS, Bootstrap
2. Learn JavaScript(ES6) > Learn ReactJs > Develop few frontend WebApps with ReactJS, HTML, CSS, Bootstrap

Take 4 - 6 months to follow a step. Follow YouTube videos to develop first few projects

Pro tips πŸ’‘

1. Explore stuffs but Learn one thing at a time.
2. No need to master anything at this moment.
3. Learn by doing projects.
4. Develop as much projects as you can.
5. No need to optimize anything at the first try.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published