HTML 1
HTML 1
Limitation of HTML 4
1-No Cool Videos and Sounds: HTML4 couldn't easily play videos or
sounds on websites.
Advantages of HTML5:
Advantages.
Cool Multimedia: HTML5 lets websites show videos and play sounds
without needing extra stuff like plugins.
Interactive Fun: Websites made with HTML5 can do fun stuff like
games and animations that react when you touch or click them.
Smart Forms: Forms on HTML5 websites can check if you fill things
out correctly without making you wait.
Stylish Styles: Making websites pretty with colors, fonts, and spacing
is easier and looks great.
Fit for Any Screen: HTML5 websites look good on all sorts of
devices, from phones to big screens.
Tag Team: HTML5 has special tags that explain what things mean,
helping search engines and people using special devices
understand better.
Q3:What is HTML5 Document explain with example?
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<header>
<h1>Hello, World!</h1>
</header>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<section>
<h2>About Me</h2>
</section>
<footer>
</footer>
</body>
</html>
HTML5 removed several elements that were part of HTML 4.01. Here
is a list of some significant HTML 4.01 elements that were removed in
HTML5:
<html>
<head>
<title>Page Title</title>
</head>
<body>
<footer>
</footer>
</body>
</html>
The global attributes are attributes that can be used with all
HTML elements.
Attribute Description
class Specifies one or more classnames for an element (refers to a class in a style sheet)
spellcheck Specifies whether the element is to have its spelling and grammar checked or not