Questions tagged [html]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

How to have multiple anchors on the same page in html?

I'm having a problem while making the pset8, which is Homepage. I'm trying to put multiple anchors in one html file. All these anchor tags are linking to only one of the specified files (ideas.html). ...
user avatar
0 votes
1 answer
7 views

Week 8 Homepage - Adding text inside of a <div> is causing buttons inside of another <div> to stop working

This is the code in question. <!DOCTYPE html> <html lang="en"> <head> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min....
user avatar
0 votes
1 answer
14 views

PSET 9: C$50 Finance. Why not <input type="number"> instead of text?

From CS50's Problem Set 9 specification: Require that a user input a number of shares, implemented as a text field whose name is shares. Render an apology if the input is not a positive integer. I'm ...
user avatar
0 votes
0 answers
16 views

cs50 Finance Invalid Syntax on function declaration

When working on Finance I encountered a syntax problem which higlights a function declaration def buy(): ^ SyntaxError: invalid syntax. I have a feeling that because such an obvious thing was ...
user avatar
0 votes
1 answer
490 views

How to iterate over a list of values in a dict using jinja?

I have a dict with a list of values, basically each key has 10 values: movies = { 'title': ['The Shawshank Redemption', 'The Godfather', ..., 'The Lord of the Rings: The Fellowship of the Ring'], '...
user avatar
0 votes
0 answers
38 views

CS50 web network project: like button reloads page and only displays json data instead of the actual webpage

I am working on the cs50 web project network. When the like button is clicked the text in the button should then change to say unlike and the like count should increase by one without reloading the ...
user avatar
0 votes
1 answer
205 views

Flask Filter Search/List in Python

I created a country list on the python search page section, the data is sent to the Html table with jinja syntax “ The Html table also has a JavaScript function it functions correctly no help with ...
user avatar
  • 37
0 votes
1 answer
116 views

jinja code not working inside html file

I am using flask for the first time and jinja code is being displayed on the webpage. this is my html file: <!DOCTYPE html> <html lang="en"> <head> ...
user avatar
0 votes
1 answer
232 views

PSET 9 Finance index.html issue with displaying table results with html

I'm currently on CS50 PSET 9 Finance and stuck on the index.html portion of the assignment. This is my code from assignment.py: @app.route("/") @login_required def index(): stocks = db....
user avatar
0 votes
1 answer
272 views

cs50w Project 1 Wiki Search: layout.html failing to submit POST to views.py

currently working on the search function for project 1. I've updated layout.html, urls.py, and views.py, but when I input anything into the search bar layout.html does not pass the POST information to ...
user avatar
0 votes
2 answers
90 views

Header links won't align to the right (P2)

In the work of search, I wanted to deal with the header links (Image Search and Advanced Search links) not aligning to the right. As I looked into my CSS file, everything works properly except text-...
user avatar
0 votes
1 answer
41 views

Html page is displayed well as file, but not on server

Here I tried from brackets IDE live preview it was working completely fine, but now it doesn't, i think i maybe deleted sth from C parition that causes this, i'm searching hard but i don't know what ...
user avatar
  • 5
0 votes
1 answer
282 views

Generate dynamic datefields from selected dropdown value sent to another route in Flask

EDIT With the good help of @DinoCoderSaurus, I realised that I overlooked adding a POST method to the datainput form and the routes also lacked GET and POST methods. Adding those modifications helped ...
user avatar
1 vote
2 answers
123 views

How to get markdown info to HTML

Question from Project 1 in CS50W I'm stuck trying to get the markdown info from files to my HTML. I manage to get the markdown info into a HTML string, but when I input it to my HTML I get the same ...
user avatar
0 votes
1 answer
75 views

Can't update shopping cart for more than one item, works fine for a single item, otherwise only the first one gets updated

I am trying to update the quantity of the products in the shopping cart by changing the number in the dropdown. If the cart has two or more items then only the first one works and the qty doesn't ...
user avatar
0 votes
1 answer
11 views

Project: Conditional style for html table

I have a table in html which gets the data from a SQL query in PY. One of the columns in my SQL table is type (tp). I want the html table to show one color for each row of the same type and another ...
user avatar
0 votes
1 answer
31 views

Finance - trouble implementing javascript

I am trying to set up my index page so that each stock in the user's portfolio has buttons to buy and sell said stock. The first step is working so far. Each row in the index table has buy and sell ...
user avatar
0 votes
1 answer
27 views

CS50 Final Project Jinja For Loop Not Running

My final project is a task website that allows you to create tasks, complete them, and get alerted when you haven't done a task on time. Currently, I am working on alerting when the task is due. The ...
user avatar
  • 67
0 votes
0 answers
119 views

Final Project - Get sql to work html, python and flask

On my website for my final project I am able to enter the user info on the website, but the information is not being inserted into the sql table. I feel that I am not understanding something very ...
user avatar
0 votes
1 answer
399 views

CS50w / Project 3 - Mail / Inbox showing duplicates

I'm currently on Project 3 in CS50 Web and pretty much completed it. However, there seems to be a bug in unarchiving emails. Whenever I click the unarchive button and it reloads the Inbox, there seems ...
user avatar
0 votes
1 answer
34 views

CS50 Final Project / Personalized HTML path

I'm on the Final Project for CS50 and trying to make a simple website to type in General Tasks and get information within different Subjects. I decided to use Flask over Django, however now I'm stuck ...
user avatar
0 votes
1 answer
206 views

Problem Set 8 / Finance. How to incorporate current price (index)

I'm currently struggling with index(). In buy() I created the custom table with, one might say, too many columns. Among others are symbol, name, shares, price, total. So far I was able to plug some of ...
user avatar
0 votes
1 answer
72 views

Linking to local html page

I am trying to link to my own html page that I have created in CS50 IDE. The html code is below. I have included 8 variations on trying to find the file. All return error 404. I have the file: &...
user avatar
0 votes
1 answer
23 views

how to autofit a webpage to any screen size

I am pursuing web track for pset8. I am using fixed number instead of percentages for size of each element. How can I make sure that the webpage can fit to all screen / window sizes without getting ...
user avatar
  • 361
0 votes
2 answers
2k views

How To Make A Google "I'm Feeling Lucky" Button For CS50 Project 0

In the project 0 requirements, it says that I need a Google "I'm Feeling Lucky" Button. I am not sure on how to make one. Does anyone know how to make a "I'm Feeling lucky" button. ...
user avatar
  • 27
0 votes
1 answer
34 views

Finance Portfolio (index) I can't go on. Need to take to HTML the actual price and total of stock

I am stopped at this part of Finance now. I can print at HTML the symbol and the sum of the shares... but I don't know how to take the iteration for each symbol to the HTML to know the actual price ...
user avatar
0 votes
0 answers
21 views

Final Project: dynamic page creation to show just 10 SQL entries per page

I'm developing a web-page for my CS50's Final Project for contacting japanese students around Argentina. The only official japanese exam takes place in Buenos Aires, and there are no many good places ...
user avatar
0 votes
0 answers
133 views

How do I create an advanced query page using HTML and CSS? Should I use any other langauges to make it a faster process?

How do I create an advanced query in HTML and CSS? I have to create a front end similar to Google and have already outfitted the first two pages, it's the 3rd page, the advanced query page that I need ...
user avatar
0 votes
1 answer
270 views

RuntimeError: missing value for placeholder (:name)

all! I'm doing the final project, and I have a form whose contents I'm trying to submit to a database. My python code is: @app.route("/Contact.html", methods=["GET", "POST"]) def Contact(): if ...
user avatar
0 votes
1 answer
15 views

How to reduce paragraph width without moving paragraph to the side?

I am doing the homepage part of the web track. However, I am currently using text-align: center; but my text stretches across the whole screen. I tried to reduce the width, but that makes the text ...
user avatar
  • 2
0 votes
1 answer
34 views

finance: how to build an "active" table

I wish to know how to build a table (in HTML) where the row expand with the row I input on it. For a static table I've used: <table style="width:100%"> <tr> <th>Symbol</...
user avatar
  • 53
0 votes
1 answer
24 views

a:hover and a:active tags not editable in html/css

I'm trying to make a homepage as per the pset5, and want to change the color and decoration of hyperlinks. The a:link and a:visited tags were editable, but not the other two. Here's my code for ...
user avatar
0 votes
0 answers
21 views

Very Basic JS Troubles!

I don't know why this is proving so difficult but over two hours of googling has not solved my problem! My code is below. I have create a very simple set of mutually exclusive radio buttons. What I ...
user avatar
0 votes
1 answer
14 views

Why the <p> need not be closed?

I am receiving this baffling error in the validator: Error: No p element in scope but a p end tag seen. From line 13, column 11; to line 13, column 14 </p>↩ <!DOCTYPE html> <...
user avatar
  • 115
0 votes
1 answer
105 views

Final project (very similar to Finance) : How can I delete selected row of table?

In mynote.html, there is a table of words. It is very similar to history.html or index.html of Finance (pset8). I want to upgrade it for my final project, so I tried to make 'delete'. But, there is a ...
user avatar
  • 15
0 votes
2 answers
2k views

How to pass value from HTML to python?

I'm setting up a new project in python ,and want to setting up a web pageresturant.html using FLASK , this code in html get the selected value from drop down box when button is clicked ,how can i pass ...
user avatar
0 votes
1 answer
923 views

Add a file containing the images inside IDE

how to add the file from my computer to cs50 IDE? I need to that to add images file to HTML file.
user avatar
  • 7
0 votes
1 answer
24 views

Trying to fetch data in HTML tags and translating it and merging back

I want to translate the page in a french language but the data is present in html format in a excelsheet. So how can we fetch just the relevent data and translate it and then merge it back in correct ...
user avatar
1 vote
1 answer
400 views

html and CSS link do not work Homepage Problem

everyone. I am currently working on the CS50 pset5 homepage problem. I have encountered a problem in my code. The code needs to contain at least four different .html pages, and it should be possible ...
user avatar
  • 23
0 votes
1 answer
41 views

Does CS50 IDE run SSI?

I'm on pset5, trying to make a homepage with multiple HTML files. I want all the files to share the same navigation bar heading, implementing this in a way so that I don't have to copy the same code ...
user avatar
0 votes
0 answers
92 views

Issue with CS50W's Project2 - submitted text not passed to chat window

I have a problem regarding passing posted messages into the proper field and presenting them to the user. The app is supposed to transfer the text submitted in "messenger" into the "messages" so to ...
user avatar
0 votes
1 answer
499 views

Final Project - Problem uploading files to IDE folder

Update: Does anyone know hot to get the folder's absolute path? It isn't ~/workspace/fp/documentos/ or any of it's variations, such as /workspace/fp/documentos/ or workspace/fp/documentos/. It seems ...
user avatar
0 votes
1 answer
842 views

Access just the text from a db.execute return

Evening all. I am working on my final project and have a question about db.execute. When I run my SQL search the return always has the format {"key": value}. Is there any way to then extract the ...
user avatar
0 votes
3 answers
671 views

cant find preview option for html files on cs50 ide

I have been using cs50 ide for more than a year and for the first time today, for no reason I cant find the preview option for html files I dont know why this happened, it was there a few weeks ago, ...
user avatar
  • 302
0 votes
1 answer
84 views

Why my css file is not being implemented in my html file?

<!DOCTYPE html> <html> <head><title>A Day in life of a dog</title> <link rel="spreadsheet" href="style.css"> </head> <body> <...
user avatar
0 votes
1 answer
335 views

Hoe to code HTML links to other CS50 files within CS50 IDE

Please could someone let me know how to code links to other files in HTML within CS50 IDE which would form additional sheets within a website? I know how to code links to external sites but can't ...
user avatar
  • 3
0 votes
0 answers
337 views

Final Project - Error: Templates Not Found

I have just started my final project and am simply trying to allow users to login and register however, when I run flask, I get an error: jinja2.exceptions.TemplateNotFound: homepage.html although all ...
user avatar
  • 135
0 votes
1 answer
148 views

similarities (less) invalid algorithm

My three algo's pass check50 and tests when running directly, but when uploading files / choosing the algorithm, I either get: 1) 400: The browser (or proxy) sent a request that this server could not ...
user avatar
  • 37
0 votes
1 answer
31 views

How to dictate HTML server messages? PSET7 Finance

One of the requirements is that for buy() and sell(), if I do not put a positive integer for the text box for the number of stocks, my code should send a 400 message. I coded this in: <input ...
user avatar
0 votes
1 answer
388 views

Why can I not open my website in HTML?

This is just basic HTML. The website is just a poem by Stevie Wonder. Anyways, in the CS50 IDE I type in, "open hello.html" and there is nothing that happens! I thought this opens the website so you ...
user avatar