Can anyone show html coding for making website ? Like a homepage html coding on a notepad, so that when i execute that coding, it shows a website. A easy sample html coding for making website.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Heena K
Creating your website’s home page is really easy. Here I have mentioned some of the HTML codings for creating a homepage for your website.
First of all, before starting, you need to download a visual editor that will help you type down all the codes easily. You can use Notepad ++ or Visual Studio Code for typing down all the codes. Do not worry. All these editors are free to use and easily available online.
So let’s get started.
Since we use HTML5, you need to start your document with the tag <!DOCTYPE HTML>. Adding this code tells the browser that you are using HTML5 coding language for building a website.
Then comes the <head> tag. Under the head tag comes the <title> </title> tag. Adding a title tag will help you identify the page you are on. The Head tag will also have all the meta tags required for SEO, your keywords, and the link to your CSS stylesheet.
Syntax for adding meta tags:
<head>
<meta charset=”UTF-8″>
<meta name=”description” content=”Free Web tutorials”>
<meta name=”keywords” content=”HTML, CSS, JavaScript”>
<meta name=”author” content=”John Doe”>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
</head>
Syntax for adding a link to your stylesheet:
<head>
<link rel=”stylesheet” href=”styles.css”>
</head>
Note: Everything you add in the Head tag will not be visible on the website.
Then comes the <body>tag. Under this tag, you will add the content to your website. The header image, paragraphs, images, internal links, external links, Headings, sidebars, and much more.
The tags you will use are:
The tags mentioned above are the tags you will need for creating your webpages.