Hello Guys Welcome I
Hello Guys Welcome I
Hello Guys Welcome I
Since there are many options, we have listed some of the best
HTML code editors to help you find one that fits your needs:
Notepad++ – a free, lightweight text editor with added
features for coding and plugin support.
You can use pen and paper or web design software such
as Figma to design a website layout. It doesn’t have to be
detailed as long as it roughly represents the look and feel of your
site.
4. Select New File. Name the file index.html and press enter.
</header>
<main>
<div class=”row">
<div class=”post-text-box”>
</div>
<div class=”profile”>
</div>
</div>
</main>
<footer>
</footer>
</body>
</html>
<nav> and <a> – specify the navigation bar and its anchor
element. Use the href attribute to specify the anchor’s
linked URL.
<img> – container for the image element. It contains
the img src attribute, specifying the link or name of the
image file.
Pro Tip
The img tag also has an optional alt attribute. It describes the
image in case the file doesn’t load.
Here’s what the code looks like:
<!DOCTYPE html>
<html>
<head>
<title>Personal Blog</title>
</head>
<body>
<header>
<h1>Your Personal Blog</h1>
<nav>
<a href=”domain.tld/home”>Home</a>
<a href=”domain.tld/blog”>Blog</a>
<a href=”domain.tld/about”>About</a>
</nav>
</header>
<main>
<div class=”row">
<div class=”post-text-box”>
<h1>Newest Post</h1>
<section>
<h1>First Post</h1>
<p>The first post’s content</p>
</section>
</div>
<div class=”profile”>
<h1>About Me</h1>
<img src=”profile-picture.png”>
<p>About the author</p>
</div>
</div>
</main>
<footer>
<a href=”twitter.com/author”>Twitter</a>
<a href=”facebook.com/author”>Facebook</a>
<a href=”instagram.com/author”>Instagram</a>
</footer>
</body>
</html>
After you add the code snippet to your CSS file, here’s how the
website will look:
5. Add the HTML content – add the heading title, body text,
and images into each section.