Questions tagged [html]
The html tag has no usage guidance.
112
questions
0
votes
1
answer
14
views
Trivia Lab 8 Week 8 - Issues with Free Answer Question
My "Check Answer" button doesn't work for the free response question. I followed the "Not sure how to solve?" video so there might be have been a problem while copying it over.
...
0
votes
0
answers
6
views
CS50W Mail sent email not showing
I have tried sending the mail and the console of the Chrome DevTools has shown "Email sent successfully" but it is not reflecting in the mailbox.
This is function for loading the mailbox;
// ...
1
vote
0
answers
73
views
"GET /" Error (404): "Not found"
I had worked on lab8 for a while but it was not completed. Now that I have gone back, when I run http-server index.html and click on the link I get this error:
[2023-04-07T23:34:58.289Z] "GET /&...
0
votes
1
answer
22
views
HTML error duplicate class
I was checking my html for the "homepage" problem HERE, and i get this error
How can i solve this issue?
Thanks
0
votes
1
answer
8
views
Finance - Quote: Toggle visibility between submit button and table
I'm happy that my finance website finally works properly!!!
The thing is that I'm trying to make it look like the staff's solution website and I can't seem to get quote.html to behave like theirs (...
0
votes
0
answers
661
views
Help wanted. Trying to make a table using a loop in jinja
My name is Sol and I'm kinda new here.
I'm trying to finish my CS50 PSET 7 and I got stuck.
Both in index.html and history.html I have the same problem. I'm trying to populate a table with info taken ...
0
votes
1
answer
19
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/[email protected]/dist/css/bootstrap.min....
0
votes
1
answer
38
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 ...
0
votes
1
answer
4k
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'],
'...
0
votes
1
answer
694
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 ...
0
votes
1
answer
938
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>
...
0
votes
1
answer
582
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....
0
votes
1
answer
369
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 ...
0
votes
2
answers
288
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-...
0
votes
1
answer
43
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 ...
0
votes
1
answer
726
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 ...
1
vote
2
answers
267
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 ...
0
votes
1
answer
198
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 ...
0
votes
1
answer
64
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 ...
0
votes
1
answer
35
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 ...
0
votes
1
answer
37
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 ...
0
votes
0
answers
186
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 ...
0
votes
1
answer
609
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 ...
0
votes
1
answer
44
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 ...
0
votes
1
answer
375
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 ...
0
votes
1
answer
124
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: &...
0
votes
1
answer
62
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 ...
1
vote
2
answers
3k
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. ...
0
votes
1
answer
39
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 ...
0
votes
0
answers
29
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 ...
0
votes
0
answers
165
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 ...
0
votes
1
answer
499
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 ...
0
votes
1
answer
29
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 ...
0
votes
1
answer
44
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</...
0
votes
1
answer
30
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 ...
0
votes
0
answers
27
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 ...
0
votes
1
answer
17
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>
<...
0
votes
1
answer
148
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 ...
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 ...
0
votes
1
answer
1k
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.
0
votes
1
answer
26
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 ...
1
vote
1
answer
572
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 ...
0
votes
1
answer
42
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 ...
0
votes
0
answers
94
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 ...
0
votes
1
answer
599
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 ...
0
votes
1
answer
1k
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 ...
0
votes
3
answers
735
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, ...
0
votes
1
answer
97
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>
<...
0
votes
1
answer
445
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 ...
0
votes
0
answers
378
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 ...