Skip to main content

BLOCK ELEMENTS IN HTML

 BLOCK ELEMENTS IN HTML

👉 On this blog We cover a Block Elements In HTML. 

✅ Block elements means its cover a 100% width of elements like DIV elements and other we will show you..










Here we show you Which is Block and Inline Elements

<!-- Address Elements -->
<address> <strong> ADDRESS ELEMENT </strong> <br> Coding with Negi <br> 
123 Street No. 1 Delhi <br> INDIA</address>
<!-- ARTICLE -->

<article> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque vel aliquam lorem. Pellentesque facilisis eget odio ac hendrerit. Duis in pulvinar ex. Nunc ultrices ligula ut sem tincidunt, quis imperdiet orci mattis. Curabitur eget dui dui.</article> <br> <br>


<!-- form -->

<form action="form.php" target="_blank" method="POST">
<fieldset>
<legend>Personal Information</legend>
<label for="firstname"> First Name</label>
<input type="text" name="firstname" id="firstname"> <br> <br>

<label for="lastname"> Last Name</label>
<input type="text" name="lastname" id="lastname"> <br> <br>

<label for="emailid"> Email ID</label>
<input type="text" name="emailid" id="emailid"> <br> <br>

<label for="DOB"> Last Name</label>
<input type="date" name="DOB" id="DOB"> <br> <br>

<input type="button" name="submit" value="submit"> <br> <br>
</fieldset>
</form>

Example:



Thanku:



Comments

Popular posts from this blog

HTML Basic

 How to Write HTML Tags All HTML document must start with <!DOCTYPE HTML> HTML Document start with <html> and end with </html> (that's call a start tag and end tags. The visible part of the document between <body> and </body> tags. Type of Heading Tags:  HTML document contains a 6 types of heading  we are heading describe with  <h1> heading 1 </h1> tags <h2>  heading 2  </h2>   <h3>  heading 3  </h3>   <h4>  heading 4  </h4>   <h5>  heading 5  </h5>   <h6>  heading 6  </h6> Every heading have a different fonts size. Example: Do practice and Touch with our blog  

TYPE OF HTML CSS

 Types of HTML CSS To change a HTML documents style Three Types to Add CSS in HTML 1.      Inline CSS: To using by <p style> change a style of HTML Attribute.      2.     Internal CSS: by using <style> tag in the below of <head> tag.           3.    External CSS : By using <link> element in link to external CSS file. INLINE CSS We use inline CSS in a line      Example : <p style=“color:green;”> Green Text </p> Here we use inline css… INTERNAL CSS In this section we use Internal CSS.      We use <style> element under the <head> section. Example:           <style>                 p {color:green ;}                      </style> EXTERNAL CSS External CSS create a new fil...

HTML BACKGROUND IMAGES

HTML Background Images In this Blog we learn that how to change background color in HTML and how to use background element in Backgrounds. 1.     In this blog we use Internal CSS to change a background. 2.     We given a code Below in this Blog and  You can see on youtube video link here:  Click Here <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Image Background</title> <style type="text/css"> body{background-image: url(D:\mybloglogo.png); background-repeat: no-repeat; background-attachment: fixed; background-size: auto;} </style> </head> <body> <h2>What is Lorem Ipsum? </h2>  <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer ...