Mocktestonfrontend
Mocktestonfrontend
Ans- <div> is used to group the elements and create block level elements div tag is used to griped larger
part of elements
Ans- alt attribute used in <img> tag for give alternate or additional information of a img if image path is
not working then given alternate information will be load.
Write the HTML code to create an ordered list with three list items, each containing a different color.
Ans- <ol>
<li> Green</li>
</ol>
How do you create a hyperlink that opens in a new tab?
CSS Section:
Padding is the space between an elements border and the element’s content
Ans: The z-index property in CSS controls the vertical stacking order of elements that overlap on a web
page.
Works only on positioned elements (elements with position set to relative, absolute, fixed, or sticky).
Write CSS code to make the text inside a <p> element red and bold.
<html>
<head>
<style>
p{
color: red;
font-weight: bold;
</style>
</head>
<body>
</body>
</html>
Ans: The CSS box model is a fundamental concept in web design and layout, describing how elements
are structured and how space is allocated around them
It is used for
JavaScript Section:
Ans: Javascrpit used for web development to give functionallity to web pages and to create ineracative
web pages.
=== check the equality of value without type coresion for both value and datatype also it is strict check
create a signup form with javascript validation
Ans: