Friday, 30 June 2023

CSS

 Today i started to learn CSS i found things to be interesting here i will be covering some of the major key points which can be used later

    1. W3C world wide web css validator : CSS codes could be wrong and the computer will not give any error so we need to check the code in validator

    2. CSS follows the rules of specificity like element like paragraph is more specific than body , and id is even more specific than paragraph it also depends on which command is used last  "

    3. use inspect in chrome for link to specificity checker

checking why  priority is not working 

    4. body{} and html {} is same in css

    5.main{} can be used once in a while

    6. to make something priority use !important in it i.e p{font; red!important}

    7. use of border tag 

    8. if you want to add just add some text to your page in html just type p*10>lorem

    day 1 css 



Thursday, 29 June 2023

what i learnt today 2

 Today i started with html course where i worked on various projects like using input tag form tag 

i worked on three projects 

    1. email input column 

    2. range column 

    3. radio tag 

    4. selecting tag with options 

   1. email input column 

            various tag were used like lable, input, placeholder,submit



2. range column 


                                    


                               

       3. radio tag 











4. selecting tag with options 



















Wednesday, 28 June 2023

problem 2

 Once i faced most common problem that was indentation problem while typing game code in python which i actually pasted but still error occured so i came to know that even just a small indentation error can result in crash of whole code


what i learnt today 1

Today i started to see html tutorial . I learnt some basic of web development , some topic that i learnt today are 
    1. all different tags in in html
    2. building a table in html 
    3.  adding image and caption to the image 
    4.  drawing line in the middle 
    5. How to create pages in html
    6.how to add image from own computer : like using src=../image/name of image file

problem 1

 today i learnt that any thing in head tag will not be displayed but when i did the same i.e

 <head><h1>game <h1/><head/>

it was typed in the webview in replit

caption in image in html

 <figure>

<img src="pic_trulli.jpg" alt="Trulli" style="width:100%">
  <figcaption>Fig.1 - Trulli, Puglia, Italy.</figcaption>
</figure>
i took this reference from w3schools

Tuesday, 27 June 2023

strip()

 The strip method is  
called on the user's input to remove any leading or trailing whitespace. The user's guess is then stored in the 
guess variable.

time.sleep()

 time.sleep()

 is not a JavaScript function, but a Python function. It is used to pause the execution of a program for a specified number of seconds.

The time module in Python provides various time-related functions, including sleep(). The sleep() function takes a floating-point number as an argument, which represents the number of seconds to pause the program execution.

Here's an example of how to use time.sleep() :n Python:

import time

print("Starting...")
time.sleep(2.5)  # Pause the program for 2.5 seconds
print("Done!")

The os.system function clears the console screen on Windows and Unix-based systems.

today i was working on a game a i noticed that after inputing my informations it said game is about to begin and the console automatically cleaned and then the game started in the code i noticed os.system

css 2

  today i learnt about different tags in css like margin border , margin, padding,vwor % the main different between vw and perctange tag in ...