Making a HTML Template [closed] - html

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
So I want to create a template that looks something like this:
http://i.stack.imgur.com/Qf38Y.png (Not enough rep to post photos, I'm new)
(I'm in high school and have just completed a HTML class)
I know how to make the template but I want to make it so that I can just write the title, image location and content in a form or text document and have it create a new html page with the information. I AM NOT ASKING YOU TO MAKE THE TEMPLATE FOR ME! I also need it to be able to update the pages if I change the template. Is this possible? If so please leave any tutorials below. I am NOT asking for you to write the code for me, I am just looking to see if this is possible and what languages it would require.
Thanks Much!

For that you will have to write an application, which will convert the data given by the user into an HTML webpage. This will require using JavaScript, HTML and CSS together. You can create an HTML page which will have <input> tags in it. Then using JavaScript libraries, such as FileSaver.js, you can create an HTML file and add data to it with JavaScript, probably using .appendChild() method. This was for a webapp, that will work in a browser, for desktop app you can use other programming languages or use Adobe AIR to package your webapp for desktop.

Related

How to write for auto update [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
(I'm new to all this... instead of closing my question, it would help if I could have an idea of what needs to be done) (please excuse if I'm not asking the proper question for what I'm trying to achieve, new to code)
New to coding: web development Learning HTML, CSS and then JS.
I see websites where data is automatically updated. How is this achieved?
I would like to create a website that will display economic data but not have to manually input the data. How would I incorporate code to automatically do this for me?
Would I use a websites API?
Example of the type of information I would like to display on my own website: https://www.marketwatch.com/economy-politics/calendar
Automatically updated data on a website can be achieved by using an API call. You make a request to an API that has the data and then render the data on your HTML page.
The process requires a good understanding of modern JS concepts.
Search for an API that offers the service you need and read the documentation to understand how to use it.
Let me know if there' anything else.

How do I create a website template using html and css? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Maybe I'm not using the correct terminology because I can't seem to find an appropriate answer. I have built a header and a footer using html and css. This will not change from page to page and so I want to make it the template and simply change the content in between the header and the footer for each page of my website. I know I could simply copy and paste the code but if I wanted to change the header for some reason I would then have to change the header on each of my pages! Super inefficient. Coding is all about reuse. surely there's a way to do what I'm saying. Help me web developers!
You could do one of many things:
Use PHP files and require() the headers and footers in the main page, though you'll have to use a server on your localhost to test the pages.
You could maybe take a look into creating single page applications, using AJAX.
AJAX Introduction here.
You could go a step further and pick one of the very popular JavaScript MVC frameworks.
Read more about them here.
Finally, you could also do it the "old way" and use iframes, but that is honestly bad practice and will bring more harm than good.

getting rid of redundant code between html pages [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
So I'm working on producing my own version of a web/db project my friend was given in school. This is my first project in either area and I'm still learning. Part of the project description mentions all of the pages the client wants. I'm solving this by making an unordered list of links to the different pages with appropriate labels. Complex, I know.
Then I realized that every page will have this. My question is this: is there a way to class certain portions of code in html, so I can just have a "navigation list" in each page, instead of the full code of the list and everything associated with it, in every page?
I want the code to be clean and efficient. That's my motivation in this question.
Your question provides little detail, but it sounds like you want something like a php include. If you are running your site on your local, change the .html files to .php and do <?php include('includes/navigation.php') ?> where includes/navigation.php is a path to JUST your navigation code.
What you are talking about is templates. You cannot do it in plain html... You would need to use a server side language like php. You could also do it with a JavaScript templating language like handlebars or similar, but not in plain html.
If you don't want to use PHP or some other server side technology for a simple menu, you can try various Javascript plugins like MenuCool.

Does it matter which ASP.NET Project type I use for a super-simple site? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I'm going to create a super-simple, one-page, site. It will have text and images and links on it, that's all.
No code, either C# or jQuery or anything else - just some HTML (and minimal CSS).
I created mockups of the site (page) using VS 2013 by selecting New > Project > Web Site > ASP.NET and then each of the following, in turn:
Empty Page
SPA
Web Forms
For the first two, I added an HTML page and copied my HTML and CSS and ran it. It works fine.
For the last option (Web Forms), the difference was that there was already a page (Default.aspx). I replaced the existing HTML in there with mine (and my CSS). It also works fine.
I plan on publishing it to/with/as an Azure web site. I assume I can do this with any of these project types.
The Web Forms adds a bunch of stuff I don't need or use, so I imagine one of the other two would be my best bet. Is there any reason why I would select one project type over the others for a simple page like this?
If it's a static site and you know what HTML/CSS you want to use, your best bet with Visual Studio is to use the Empty Page template.

Make a web app in Go? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
How can I make a web app in Go?
Is there a way I can interchangeably use Go code and HTML like with PHP and HTML?
More specifically, what I want to know is how to get my PrintLn output to show in a web browser and how to accept input from HTML form fields?
You can't embed Go & HTML (for many, many reasons) but you can use Go's html/template package (http://golang.org/pkg/html/template/) to generate a HTML page from your HTTP handlers.
I'd suggest reading http://golang.org/doc/articles/wiki/ and using http://www.gorillatoolkit.org/ (routes, cookies, etc) for the web server side
You need to setup a web server in go and process http request/response as input/output. There is already an answer about go web frameworks which would be helpful. link
If you don't want your ui to show in a browser window, you will have to bind your own html engine. For that purpose you can look at ui frameworks like walk which has ie based webview builtin or engine bindings like go-webkit which builds a custom webview.