+ 1
Html
how can I open my html on google
5 ответов
+ 1
Create the file in a editor of text with the follow steps:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1>Write a tittle</h1>
<p>Write a paragraph</p>
</body>
</html>
Later the file save as index.html
For end open the file with Google Chrome or Firefox.
+ 1
It is just using good practice. Most text editors like Atom, Sublime Text or Visual Studio Code place it automatically. But if you start with <html> and close with </html> the page will work correctly.
+ 1
If you are using a computer then you can use notepad to write the code, then save it and open it with google chrome.
0
Question: Why is the <!DOCTYPE html> needed? Can you please explain why it can't just start with <html> and end with </html>
Please explain --> I'm new! Thank you.
0
if you can use android, if you can how