+ 1
What is happening to my css am a beginner
18 Respostas
+ 2
Kamdilichukwu What is your question?
What problem you are facing in css?
+ 2
Contents of html should go into the body tag
And thats pretty compulsory
Your html structure doesnt have a body or a head
Make it in this structure first
<html>
<head >
<title> My Page </title
</head>
<body>
Your contents, all of that within the html tag that you have
Except the html tag itself
</body>
</html>
+ 2
Where is the reference of your stylesheet?
Your html code shows no head, no stylesheet and no style.
The classes you are showing must also be added to the html tags
+ 1
Can you share code
How can you say css isn't shown?
+ 1
Also Css course is available please go through
+ 1
<html>
<h1>THE EIFFEL TOWER</h1>
<a href="http://test.com" target="_blank">
<img src="https://sololearnassets.azureedge.net/eiffel-tower.jpg" alt="just our company" width="200px">
</a>
<p></p>
</div>
<select>
<option><p><strong>Eiffel Tower </strong>is a wrought-iron tower that stands<strong> 1,063 ft (324 m) tall</strong> in Paris.</p></option>
<option><p> <strong>the Eiffel Tower </strong>is the most-visited monument in the world with over<strong> 7 million </strong>visitors< a year.</p></option>
<option><p>Visitors can choose to go up using the Tower lift or the stairs. There are <strong>1,665 steps </strong>to the top.</p></option>
</select>
</div>
<p><b>TRANSPORT</b></p>
<ul>
<li>Bus: lines 42, 69, 72, 82 and 87.</li>
<li>Metro: Trocadero, Ecole militaire.</li>
<li>Train: Champ de Mars - Tour Eiffel</li>
</ul>
<p><b>PRICE:</b></p>
<table border="1">
<tr>
<th>category</th>
<th>price</th>
</tr>
<tr>
<td>Adult</td>
<td>$12</td>
</tr>
<tr
+ 1
.strong{
color:#2493df;
}
.footer{
color:#595959;
font-size:14px;
text-align:center;
}
.heading{
font-size:20px;
letter-spacing:2px;
}
.label{
font-size:16px;
font-weight:bold;
}
{}
+ 1
https://code.sololearn.com/WIXv62hY4g0C/?ref=app
Like this you need to share the code and your code is working.
CSS working properly footer,heading
+ 1
Yes it's not working because your code need to be corrected.
+ 1
I can understand that you are not having a good time with your code, and extremely sorry for the late response, but I might have an answers:
- Document Type Declaration: Added <!DOCTYPE html> at the beginning for proper document structure.
- Head and Title: Added <head> and <title> tags to define the document's title as "The Eiffel Tower"
- CSS Styling: Moved the CSS styles to a <style> section within the <head>.
- Image Description: Changed the alt attribute of the image to a more descriptive text "Eiffel Tower".
- Replaced Select Element: Replaced the <select> element with an unordered list <ul> to display facts about the Eiffel Tower in a clearer way, bu if you want the <select> element, then there is absolutely no problem with keeping it.
- Improved Transport Section: Added a heading "Transport" before the list.
- Price Table: Kept the price table structure the same.
+ 1
Here is the corrected code for you:
<!DOCTYPE html>
<head>
<title>The Eiffel Tower</title>
<style>
.strong {
color: #2493df;
}
.footer {
color: #595959;
font-size: 14px;
text-align: center;
}
.heading {
font-size: 20px;
letter-spacing: 2px;
}
.label {
font-size: 16px;
font-weight: bold;
}
</style>
</head>
<body>
<h1>The Eiffel Tower</h1>
<a href="http://test.com" target="_blank">
<img src="https://sololearnassets.azureedge.net/eiffel-tower.jpg" alt="Eiffel Tower" width="200px">
</a>
<ul>
<li><strong>Height:</strong> 1,063 ft (324 m)</li>
<li><strong>Title:</strong> Most-visited paid monument in the world</li>
<li><strong>Visitors per year:</strong> Over 7 million</li>
Other parts of code are in the next comment.
+ 1
<li><strong>Access:</strong> Stairs or lift</li>
<li><strong>Steps to the top:</strong> 1,665</li>
</ul>
<h2>Transport</h2>
<ul>
<li>Bus: lines 42, 69, 72, 82 and 87.</li>
<li>Metro: Trocadero, Ecole militaire.</li>
<li>Train: Champ de Mars - Tour Eiffel</li>
</ul>
<h2>Price</h2>
<table border="1">
<tr>
<th>Category</th>
<th>Price</th>
</tr>
<tr>
<td>Adult</td>
<td>$12</td>
</tr>
</table>
0
When writing my css it doesn't appear
0
I can only see my html appearing but css doesn't show up
0
But am a beginner that about the project
0
Sure
0
This my code
0
Is not working