HTML Basic





HTML

 

        Html stands for hypertext markup language. It designed to be displayed in a web page. Html file always save with ( Filename“.html” )

 

  •  We make a web page using Tag , Element, Attribute.

  • We use tags to write HTML code, which is:-

    • Opening tag or Starting tag “< >”
             Example: <HTML> <HEAD> <BODY> <p> 
    • Closing tag or End tag “</  >”.
             Example: </HTML> </HEAD> </BODY> </p>

 
  • Element: 
    • From the opening tag to the end of the Element Content and Closing Tag, we call it Element.
      Example:  “ <p> Paragraph </p> ”       
    • Element Content stay between Opening tag and Closing tag. 

    • Some Element Content may not have closing tags.
                  Example: 

<img src="file-name.jpg" >



 
  • Attribute:
    • How to show Element Content, where to show it can be done with an Attribute

        Example: <p align=center> Website </P>

<p align=center> Website </P>

 



    • Here “align” is the Attribute and “Center” is its Value, Here, using the align attribute, element content ("website") text is shown in the middle of the webpage.




  • We could do HTML coding using a lot of software.
    • Like: Notepad, Notepad++, sublime text, Adobe Dreamweaver, Visual Studio Code, etc….


Previous
Next Post »
0 Komentar