Posts

Showing posts from November, 2022

tkinter code to print your name by taking input

from tkinter import * root=Tk() v1=StringVar() def logic():     e1=Entry(root,textvariable=v1)     e1.pack() l1=Label(root,text="Enter your name") l1.pack() e1=Entry(root,textvariable=v1) e1.pack() b1=Button(root,text="print",command=logic) b1.pack() l2=Label(root,text=e1) l2.pack() root.mainloop()

Hello world program in python tkinter

 Hello world program in python tkinter from tkinter import * root=Tk() l1=Label(text="hello world") l1.pack() root.mainloop()

creating a table in an html

  creating a table in an html <html> <title>Table</title> <body> <table> <th>Full Name</th> <th>Job</th> <th>salary</th> <tr> <td>Virat Kohli</td> <td>Cricketer</td> <td>7 cr </td> <tr> <td>Aaron Finch</td> <td>Cricketer</td> <td>7 cr </td> <tr> <td>Ms Dhoni</td> <td>Cricketer</td> <td>1 cr </td> </table> </body> </html>

creating a form in an html

creating a form in an html <html> <title>create the form in an html</title> <body> <form>   <label for="fname">First name:</label><br>   <input type="text" id="fname" name="fname"><br>   <label for="lname">Last name:</label><br>   <input type="text" id="lname" name="lname"> </form> </body> </html>

hello world program in html

Hello world program in html  <html> <body> <h1>hello world</h1> </body> </html>

hello world program in python

 hello world program in python print("hello world")

Hello world program in c

 Hello world program in c  #include<stdio.h> #include<conio.h> main() { printf("hello world"); getch();  }

html tags

Html tags  <a> :- Defines a hyperlink <b> :- Defines bold text <body> :- Defines body of documents <br> :- Defines break a single line  <button> :- Defines a clickable button <form> :- Defines an html forms so that user could input <html> :- Defines the root of an html document  <img> :- Defines an image <input> :- Defines an input control <style> :- Defines the style for a document <h1> to <h6> :- Defines html headings <p> :- Defines a paragraph <table> :- for drawing a table for an html document <head> :- contains the information for the document