Order from us for quality, customized work in due time of your choice.
Basic Structure of an HTML Document
Every HTML document has a basic structure th
Basic Structure of an HTML Document
Every HTML document has a basic structure that includes the following elements:
htmlCopy code
Welcome to My Website
This is a paragraph of text on my webpage.
: Declares the document type and version of HTML.
: The root element of an HTML page.
Common HTML Tags
Headings
Headings are defined with the
to
tags, with
being the highest (or most important) level and
the least.
htmlCopy code
This is a heading level 1
This is a heading level 2
This is a heading level 3
being the highest (or most important) level and
the least.
htmlCopy code
This is a heading level 1
This is a heading level 2
This is a heading level 3
htmlCopy code
This is a heading level 1
This is a heading level 2
This is a heading level 3
Paragraphs
Paragraphs are defined with the
tag.
htmlCopy code
This is a paragraph.
Links
Links are defined with the tag. The href attribute specifies the URL of the page the link goes to.
htmlCopy code
This is a link
Images
Images are defined with the tag. The src attribute specifies the path to the image, and the alt attribute provides alternative text for the image.
htmlCopy code
Lists
There are two types of lists: ordered lists (
- ) and unordered lists (
- First item
- Second item
- Third item
- First item
- Second item
- Third item
- ).
Ordered list:
htmlCopy code
Unordered list:
htmlCopy code
Tables
Tables are defined with the
). htmlCopy code
Forms These are just some basic examples. HTML has many more tags and attributes you can use to create complex and interactive webpages. If you have any specific questions or need more advanced examples, feel free to ask! Order from us for quality, customized work in due time of your choice. |