wikiHow
HTML Example for a Basic Webpage
Example: Welcome to My Web Page
This is a sample paragraph demonstrating HTML.
Parts of the code:
* : This declaration specifies that the document type is HTML5.
* : This is the root element of the HTML page.
* : This section contains meta-information about the document, such as the title displayed in the browser's title bar.
* : This element sets the title of the web page. It appears in the browser's title bar or tab.
* : This is the main content area of the web page.
* : This is a heading element that displays the text "Welcome to My Web Page" as a top-level heading.
*
: This is a paragraph element that contains some sample text.
*
: This is an unordered list element that creates a bullet-point list.
* - : This is a list item element that represents each item in the list.
*: This is an image element that displays an image. It uses the src attribute to specify the image source (replace image.jpg with the actual path or URL of your image) and the alt attribute to provide alternative text for the image.
Feel free to customize this example and add more HTML elements to suit your needs.
Page