Affiliate link

HTML - Introduction

HTML stands for HyperText Markup Language, and is the standard markup language for creating web pages. HTML is a structured markup language. The latest HTML standard is HTML5 (H5).

HTML, CSS, and JavaScript are the programming languages required to learn for becoming web developers.

HTML structure

A HTML document is make up of elements. An element will have a start tag and closing tag.

HTML is a structured markup language. HTML standard is managed by the World wide Web Consortium (W3C). The latest HTML standard is HTML5.

Example of an basic HTML element definition, <tag attribute="value" ...>..content</tag>

Standard HTML structure

HTML, being a structured markup language means you have to follow HTML structure standard.
A valid HTML strucure is <html><head></head><body></body></html>
<html> must contain <head> and <body>

Example of an invalid HTML structure, <head></head><body><html></html></body>

Standard HTML structure example,

<!DOCTYPE html>
<html>
    <head>
        <title>Your html page</title>
    </head>
    <body>
        <h1>Welcome to LearnCodeNow</h1>
        <p>Hello world!</p>
    </body>
</html>
Affiliate link

Code Result

Code Explain

  • <!DOCTYPE html>
    Define the HTML document version.
  • <html></html>
    Define the HTML structure.
  • <head></head>
    Define the HTML head section.
  • <title></title>
    Web page title, define in HTML head section.
  • <body></body>
    Define the HTML body section.
  • <h1></h1>
    Header text, define in HTML body section.
  • <p></p>
    Paragraph text, define in HTML body section.
Affiliate link
Affiliate link
Advertisment
StudioPress
Fiverr
Ad - Managed WordPress Hosting by SiteGround - Powerful, yet simple to use. Amazing speed, tools and support. Click for more.