HTML (Structure)

·

2 min read

HTML (Structure)

Photo by Kyle Glenn on Unsplash

Table of contents

No heading

No headings in the article.

If you're looking to create a website, you can't go wrong with HyperText Markup Language (HTML). This powerful web programming language is designed to help you structure your content most effectively. Using HTML, you can create websites that are visually stunning, functional, and easy to navigate. Don't settle for a subpar website – choose HTML and take your online presence to the next level!

Cascading Style Sheets (CSS) is a web programming language that helps create visually appealing and consistent layouts for websites, including font, color, and more.

first program:

<!DOCTYPE html>
<html lang="en">
    <head>
        <title>hello</title>
    </head>
    <body>
        Hello world hi guys
    </body>
</html>

Explanation:

A doctype declaration informs the browser which version of HTML the page is written in.

2.<!DOCTYPE html>

  • This line is called a Document Type Declaration (DTD). It specifies the type of document being used, which in this case is HTML. It tells the web browser that the document is written in HTML5.
<html lang="en">
  • This line defines the beginning of the HTML document. The <html> tag encloses the entire HTML document. The lang="en" attribute specifies the language of the document, in this case, English.
    <head>
        <title>hello</title>
    </head>
  • This section contains the metadata of the HTML document. The <head> tag is used to define the header of the document, which contains information about the document that is not displayed directly on the web page. In this case, it contains a <title> tag, which sets the title of the document displayed in the browser's title bar or tab.
    <body>
        hello world hi guys
    </body>
  • This section defines the body of the HTML document. The <body> tag encloses the content that will be displayed in the web browser window. In this case, it contains the text "Hello world hi guys", which will be displayed as plain text in the browser window.
</html>
  • This line marks the end of the HTML document. It closes the <html> tag, indicating that everything between the opening <html> tag and this closing </html> tag is the content of the HTML document.

"Thank you for viewing my post, everyone."