Tuesday, March 23, 2021

Basic Simple HTML Codes Examples



Basic HTML Examples


Here we will Learn Some Basic HTML Tags with examples


HTML Documents  
All HTML documents must start with a type declaration: <!DOCTYPE html>.
The HTML document itself begins with <html> and ends with </html>.
The visible part of the HTML document is between <body> and </body>.

HTML CODE EXAMPLE : HTML Document Example



  HTML Headings  
HTML headings are defined with the <h1> to <h6> tags:
HTML CODE EXAMPLE : HTML Heading Tags




  HTML Paragraphs  
HTML paragraphs are defined with the <p> tag:
HTML CODE EXAMPLE : HTML <P> Tags Example




  HTML Links  
HTML links are defined with the <a> tag:
HTML CODE EXAMPLE : HTML <a> Tags Example


The link address is specified in the href attribute. Attributes are used to provide Some additional information about HTML elements.


  HTML Images  
HTML Images Are Defined With The <img> Tag.
src Defined The Source File Address
alt Defined Alternative Text
width and height Defined The Size Of Image
src , alt, size (width and height) Are Provided As Attributes

HTML CODE EXAMPLE : HTML <img> Tags Example


Note : We will learn more about attributes in a later chapter.