basic structure of an html

Basic structure of an HTML Document

Basic structure of an HTML stands for HyperText Markup Language and is the basic structural element that is used to make a webpage. HTML is a markup language, which income that it is used to “mark up” the content inside a document, in this situation a webpage, with physical and semantic info that tells a browser how to show a page. When an HTML text is loaded by a web browser, the browser uses the HTML tags that have noticeable up the article to render the page’s content.

There are three types of code that make up a basic website page. HTML rules the physical elements, CSS styles those elements, and JavaScript enables lively contact between persons elements.

Elements and Tags

HTML elements and tags work together to mark up content. HTML elements indicate the purpose of a tag and tags indicate the beginning and the end of an element.

Html tag list 

<p>This is a paragraph.</p>

element-and-tag

 

 

Basic structure of an HTML Document

A basic HTML page is a document that naturally has the file extension .html, though HTML regularly seems in the content of additional file types as healthy. All HTML documents follow the similar basic construction so that the browser that reduces the file knows what to do. The basic structure on which all webpages are constructed looks like this:

<!DOCTYPE html>
<html>
    <head>
        <title>Page Title</title>
    </head>
    <body>
        <h1>Homepage Headline</h1>
        <p>This is a paragraph.</p>
    </body>
</html>

 

Basic-structure-of-an-HTML-Document

Doctype

The primary line of code, <!DOCTYPE html>, is named a doctype statement and tells the browser which form of HTML the page is printed in. In this case, we’re by means of the doctype that corresponds to HTML5, the most up-to-date version of the HTML language. There are a amount of different  doctype declarations that agree to various versions of HTML.

 

How to write Basic HTML structure (Video Tutorial)

Check Also

100+ Top Free High PR Classified Submission Sites List UK

100+ Top Free High PR Classified Submission Sites List UK

High PR Classified submission sites list uk. The commercials were initially introduced in newspapers and …

Leave a Reply

Translate »