Jul 3, 2024
Prettier - Code formatter
and Live Server
.index.html
).View > Developer > Developer Tools
or its shortcut.index.html
.
<!DOCTYPE html>
<html lang="en">
<head>
<title>My First Web Page</title>
</head>
<body>
<img src="images/mosh.jpg" alt="Image of Mosh">
<p>@moshhamadani</p>
<p>I love to teach you HTML!</p>
</body>
</html>
<style>
tag inside <head>
.
<style>
img {
width: 100px;
height: 100px;
border-radius: 50px;
float: left;
margin-right: 10px;
}
.username {
font-weight: bold;
}
</style>
<p>
: Paragraphs<em>
: Emphasized text (typically italicized)<strong>
: Strongly emphasized text (typically bold)<h1>
to <h6>
– create a hierarchy.<
: <
>
: >
©
: ©
<a>
tag with href
attribute for hyperlinks.
<a href="about.html">About Me</a>
<a href="/company/about.html">About Company</a>
<a href="https://google.com" target="_blank">Google</a>
<a href="mailto:example@example.com">Email Me</a>
<img>
tag with src
and alt
attributes.
<img src="images/coffee.jpg" alt="Coffee Mug on a Table">