How to Create a Website With HTML
by mlarapet14 in Circuits > Computers
223 Views, 1 Favorites, 0 Comments
How to Create a Website With HTML
The following instructions provide step-by-step instructions to create a simple website with HTML. You will learn to upload a title, header, and paragraph to Google Chrome. Formatting code for clarity by pressing “enter” is also introduced in this instruction set. This instruction set is meant for beginners with no coding experience, and should take about five minutes to create.
Supplies
-Windows PC
-Notepad Application
Open Notepad
Open Notepad app on laptop
-Click on the Windows icon
-Type and select “Notepad”
Add DOCTYPE Element
Type & Enter <!DOCTYPE html>
NOTE: This specifies to the browser what version of HTML you are using. This version is HTML5.
Add HTML Element
Type & Enter <html>
NOTE: Text in between <> brackets is called an “element.”
Add Header Element
Type & Enter <head>
Add Title Element
Type & Enter<title>Test Title</title>
NOTE: “/” closes the element
Close Header Element
Type & Enter </head>
Add Body Element
Type & Enter <body>
NOTE: All content in the <body> element is displayed on the webpage.
Add H1 Header Element
Type & Enter <h1>Test Header</h1>
Add Paragraph Element
Type & Enter <p>This is a paragraph</p>
Close Body Element
Type & Enter </body>
Begin Save
Click File. This opens a dropdown menu. Click “Save As”
Name File
Name the file “webpage.html”
Change File Type
Click the drop-down menu on “Save as type” Change “save as type” to “all files”
Finish Save
Click Save, then exit Notepad
Right-click on Document
Open the File Explorer “Downloads,” then right-click on the HTML document.
NOTE: Most computers automatically save documents to “Downloads”
NOTE: Most computers save documents to “Downloads”
Open Document
Right-click on the “webpage” document. Select “Open With -> Google Chrome”
View Webpage
Congratulations! Your webpage is displayed. If content is missing, double-check for typos. Typos are the most common error in coding. Secondly, ensure the content is saved as .html, not the default .txt. With this basic knowledge, you now have the foundation to learn new HTML elements such as images and links. Enjoy learning more HTML!