The basic structure of an HTML page is as follows:
HTML - Basic Tags
- The <!DOCTYPE html> declaration tells the browser what version of HTML the page is written in.
- The <html> element is the root element of an HTML page. It contains all of the other elements on the page.
- The <b> element contains the metadata for the page, such as the title, the character encoding, and the viewport.
- The <title> element contains the title of the page. This title will appear in the browser tab and in search engine results pages.
- The <meta> element contains metadata about the page. The charset attribute specifies the character encoding of the page. The viewport attribute specifies the width and initial scale of the page.
- The <body> element contains the content of the page. This is where you will put your text, images, and other elements.
This is just the basic structure of an HTML page. There are many other elements that can be used to create more complex and interactive pages.
Here are some of the most common HTML elements:
<h1> to <h6>: These elements are used to create headings.
<p>: This element is used to create paragraphs.
<img>: This element is used to insert images.
<a>: This element is used to create hyperlinks.
<table>: This element is used to create tables.
<form>: This element is used to create forms.
No comments:
Post a Comment