- 5
Practicing HTML :)
5 Respuestas
+ 7
What's the goal targeted by posting this minimalistic invalid html5 code? @@
<!DOCTYPE html>
<!-- well, this is Html5 -->
<html>
<head>
<title>Portal</title>
</head>
<body>
<p align="center">
<!-- 'align' attribute is deprecated ... and <font>, <b> and <i> elements also: you must use css and avoiding them, or use best suited semantical element instead -->
<font color="red"><i><b> Welcome to the Portal</b></i> </font>
</p>
</body>
</html>
Fixed code:
<!DOCTYPE html>
<html>
<head>
<title>Portal</title>
<style>
p {
text-align: center;
font-weight: bold;
font-style: italic;
}
</style>
</head>
<body>
<p> Welcome to the Portal </p>
</body>
</html>
... but anyway, your <p> content looks more as a title, so will semantically benefit of use of <h1> element rather ;P
+ 2
That's not the purpose of the forum
+ 1
Thanks for fixing. :) @visph
0
There is code playground for this.
0
Ikr. :v @sayako