Posts

Showing posts from October, 2022

React Component Nesting and Reusability Explained – A Beginner's Guide 2026

Image
1. Introduction to React Component Nesting and Reusability React JS is a popular JavaScript library used to create interactive and user-friendly web applications. One of the most useful concepts in React development is component-based architecture. Instead of writing an entire website inside one large file, developers divide the user interface into smaller and manageable parts called components. Two important concepts in this approach are component nesting and component reusability. Component nesting means placing one React component inside another component to build a complete user interface. For example, a website page may contain a header, navigation bar, sidebar, content section, and footer. Each section can be developed as a separate component and combined inside a main component. Component reusability means creating a component once and using it multiple times in different parts of an application. For example, the same button, product card, or navigation menu can be reused withou...

HTML File Upload

Image
HTML File Upload                     HTML Tag   1] File Upload Tag <input type="file"> A control that let's the user selects a file. Use the accept attribute to define the type of files that the control can select. File Tag program     < html > < body > < h1 > File upload </ h1 >   < p > Show  file-select field which allows a file to be chosen for upload: </ p >   < form action = "/action.php" >  Select a file: < input type = "file" name = "myFile" >< br >< br > < input type = "submit" > </ form > </ body >   </ html > HTML File Upload  Explain Program Step 1 ]    <html> root element of an HTML document. All HTML content must placed inside  tag.

html form Input tag

Image
   Form Tag HTML Forms are one of the main parts of communication between a user and a web site or web application . HTML forms serve the purpose of collecting information provided by the users.        Forms tag equired to the take input from to the user who visit the website This form is primarily used for the registration process , creating a profile on a website , or logging into an existing one, etc. Name, password, and other details are among the data gathered from the form. At this point, the form will receive input and post the information to backend applications . Thus, the data that they receive will be processed by the backend programme. There are various form element such as text fields , text area , drop-down list , select , checkboxes , radio , etc. Attributes   1) Action :- Form action tells us about the page name where form data has been processed.to send the data that the user will submit. 2) method :- Method to be used to upload data...

HTML List Tag Tutorial

Image
how to use html ul,ol, li tag with example Lists Tag List tag  method that HTML specifying any information or data in list style on web page. All lists can contain one or more heading or text. In a web page list items like heading  text starts with <li> and ends with </li>. list tag  writing any list item, it must to specify the list type.list tag three types of lists you can use. A list tag is a record of short pieces of related information or used to display  data or any information on web pages. The <li> tag HTML element is use to the represent item in list. list tag It must be contained in a parent element an ordered list ( <ol> )tag  an unordered list ( <ul> ), or a menu ( <menu> ). list tag In menus and unordered lists  items are usually.  Three Types of Lists  1) Unordered List  <ul> 2) Ordered List <ol> 3)Definition List <dl>

HTML Table Attribute in html

Image
                                 Table Tag   Attributes   1) Rowspan Tag     The <tr> tag in HTML stands for " table row " and is used to define a row in a table. It is placed inside a <table> element and typically contains one or more <td> (table data) or <th> ( table header ) elements. Each <tr> represents a single row of data or headers in the table. Rows can be styled using CSS , and can also work with rowspan and colspan attributes inside cells to span across row or columns for better layout control.   Example program <html> <body> <h1>Example of TD Rowspan attribute </h1> <table border="1"> <tr> <th>Student</th> <th>Fees Amount</th> <th>Course</th> </tr> <tr> <td>Manish</td> <td>700</td> <td rowspan="2"> Java </td> ...

HTML Table Tag

Image
HTML Tag   1) Cell width or column width Tag The <td>width TO  be set either as an absolute value in pixel, or as in percentage (%) Program   <! doctype html> <html> <body> <table border= 1 Width= 400> <tr> <td width=30%> cell width is 30% </td> <td width = 70%> cell width is 70%  </td></tr> </table> </body> </html>   Cell width or column width output 2) TR Tag  HTML table TR ( tag) represents a Table Row and is utilized to add rows to the table. Data HTML tables are placed into rows. The fundamental components of an HTML table are the table rows. A table's rows do not have any data directly. TR tag HTML specifies a row within a table and the element includes one or multiple or elements. These and hold the table information. Arranged Table Row Basic tables typically include a parent componentalong with several table row. serves as a parent element for the row that includes t...