Write an HTML script for Creating Webpage includinga) Heading tags starting from Largest heading to smallest heading.b) Inserting an Image .
Question
Write an HTML script for Creating Webpage including:
a) Heading tags starting from Largest heading to smallest heading.
b) Inserting an Image.
Solution
Sure, here is a simple HTML script that includes heading tags from largest to smallest and an image:
<!DOCTYPE html>
<html>
<head>
<title>My Webpage</title>
</head>
<body>
<h1>This is a Heading 1</h1>
<h2>This is a Heading 2</h2>
<h3>This is a Heading 3</h3>
<h4>This is a Heading 4</h4>
<h5>This is a Heading 5</h5>
<h6>This is a Heading 6</h6>
<img src="image.jpg" alt="My Image">
</body>
</html>
In this script:
<!DOCTYPE html>
is the document type declaration and is used to tell the web browser about the version of HTML the page is written in.<html>
is the root element of an HTML page.<head>
contains meta-information about the HTML document.<title>
specifies a title for the HTML document, which is shown in the browser's title bar or tab.<body>
contains the content of the document, such as text, images, etc.<h1>
to<h6>
are HTML heading tags.<h1>
defines the most important heading, and<h6>
defines the least important heading.<img>
is used to embed an image in the HTML document. Thesrc
attribute specifies the path to the image file, and thealt
attribute provides an alternate text for the image, if the image for some reason cannot be displayed.
Similar Questions
Write a code with the different heading tags starting from the Largest heading to the smallest heading
By default which of the following HTML headings would make our text appear the largest?1 point<h3><h6><h1><h5>
Write the HTML Code with the Title "My first Blog Page" and give the heading of the page as "Global Warming"[2]
Write the code for inserting an Image in a Webpage.Dimensions of the Image will be 300x300.
Select the tags you MUST use to have a proper HTML document. (Select three.)answer<body><p><h1><html><head><a><div>
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.