Skip to main content

Basic HTML Tags

  1. <h1> : this is for heading  , and this tag needs closing also </h1>
  2. <br> this is for break  the line 

 
here u can see without br tag there is no line break between paragrah now if u want to break in this paragraph u need to use can use br tag

U can see changes after using br tag:

 
<p> Divyanshu Khare </p> : This is paragraph Tag, we want to to group sementically group things, group logical lines into one line so it makes sense that we all group all the lines belonging to one paragraph under the paragraph tag. so that later we can apply different styles using css on this paragraph and others. 




  • &nbsp : we cant use multiple spaces on html if I want to use multiple spaces then what we can do &nbsp , it means no break space , if u want to two spaces u need to use two &nbsp &nbsp



Comments

Popular posts from this blog

Block vs Inline Elements In HTML

  Block: Block element always start in New Line  Block element always start in new line occupy complete width available  Example: h2, p, div Inline Element: They do not start in new line occuply width as much required  Example: img, anchor a,span There are no different between div and span, only difference is div is block element and span is Inline, it will help you to group your content or elements

Find Unique Number in Array Java , XOR

 Question:  WAP to find unique number in Array Java package aRray ; import java . util .*; public class practicalArray { public static void main ( String [] args ) { Scanner scan = new Scanner ( System . in ) ; // Step 1: Input size of the array from the user int size = scan . nextInt () ; // Step 2: Create an integer array of the specified size int [] arr = new int [ size ] ; // Step 3: Initialize 'res' with the first element of the array int res = arr [ 0 ] ; // Step 4: Loop to read array elements and find the unique number for ( int i = 1 ; i < size ; i ++ ) { // Read an integer from the user and store it in the array arr [ i ] = scan . nextInt () ; // Step 5: Use XOR (^) operation to find the unique number res = res ^ arr [ i ] ; } // Step 6: Print the unique number System . out . print...