Html  Elements

Html Elements

We have a lot of code editors to where we write a code. some of them are

Sublime text is a lightweight code editor Atom is one of those code editors which I used in my college days Jet brains Fleet which is recently coming up but it has got fewer plugins VS code which is my personal favorite but sometimes it crashes due to bloating.

HTML ELEMENTS

HTML Documents

All HTML documents must start with a document type declaration: <!DOCTYPE html>.

The HTML document itself begins with and ends with .

The visible part of the HTML document is between and

Meta Elements :

Meta data is the data that describes data. and html has an official way of adding metadata to a document - the element.

:

It means UTF-8 is a universal character. In other words it can display any language is a web browser.

element :

This contains all the content that you want to show to web users.

Image Element :

Let's turn our attention to the element again:

My test image

##HTML Headings

HTML headings are defined with the

tags.

defines the most important heading.

defines the least important heading.

Main Title

element

Top Level Heading

element

Sub Heading

element

Sub- Sub Heading element

HTML Paragraphs

HTML paragraphs are defined with the

tag.

Links are very important they are what makes the web a web. we need to use a simplest element where "a" being the short form of anchor.

The source file (src), alternative text (alt), width, and height are provided as attributes.

Nested HTML Elements

HTML elements can be nested (this means that elements can contain other elements).

All HTML documents consist of nested HTML elements.

Lists :

The most common list are order list and unordered list.

  1. Ordered lists :

                                are for lists where the order of the items does matter, such as a recipe. 
                                These are wrapped in an <ol> element.
    
  2. Un Ordered list :

                                    All the ordered of items does not matter , such as shopping list.
                                    Wrapped in an <ul> element.
    

note : Each item inside the lists is put inside an

  • (list item) element.
  •