DEV Community

Kavya S
Kavya S

Posted on

I'm on Day 2 of my Java FullStack Journey

Here's what I learned:

Header

It is a section at the top of a webpage that contains

  • Navigation Menu

  • Search Bar

  • Other introductory Content

<header> <h1>geeksforgeeks</h1> </header> 
Enter fullscreen mode Exit fullscreen mode

Section

Define a section of content that typically related to the heading

<section> <h2>HTML Tags</h2> <p>It is a fundamental building blocks of HTML</p> </section> 
Enter fullscreen mode Exit fullscreen mode

List
There are two types of List

  • Ordered list - marked as numbers and alphabets
<ol> <li>Item 1</li> <li>Item 2</li> </ol> 
Enter fullscreen mode Exit fullscreen mode
  • Unordered List - marked as bullets,square etc...
<ul> <li>Item 1</li> <li>Item 2</li> </ul> 
Enter fullscreen mode Exit fullscreen mode

Block

  • Starts with new line

  • Browsers automatically add some space before and after element

  • Examples: <div>,<p>,<h1>

Inline

  • Doesn't start with new line

  • Occupy the space needed for their content

  • Examples: <a>,<img>

Top comments (0)