Adding Content To The HTML Template
Adding Content To The HTML Template - Next we will add some content to our template.
Step 1: Open Your HTML Template
Open your HTML template by going to :
C:\my_web
Right click on the Template.html file and double click it. You can also right mouse click and "open with > notepad". Either way...you can open the file.
Step 2: Write Content
Look at the HTML notepad template and locate these tags:
<title></title>
These are "Title tags" - The title of your page will be written here.
Now simply type: "My Home page" between the tags like so:
<title>My Home page</title>
Next, look for at the HTML notepad template and locate these tags:
<body></body>
These are "body tags" - all your content is written between these tags.
Now simply type: "My million dollar website!" between the tags like so:
<body>My million dollar website!</body>
If you want, type as much as you want here. Just make sure all you type is in between the <body></body> tags.You'll see how important tags are as we progress - think of them as "bookends" that frame content within your web page.
Step 3: Save Your New Page
Now, save your page to :
C:\my_web
However, save it as:index.html
So now you have 2 files in the C:\my_web folder, template.html and index.html
Here's the whole code...you can overwrite your index.html page with this:
View this example: Basic display
NEXT: Display Content in Browser
Review the web building process: build web site free