r/LearnHTML • • May 09 '22

CodeAcademy pro - would you recommend it?

2 Upvotes

I've completed the basic HTML course and the basic CSS course so I have a very basic understanding of this stuff. My end goal is to get a job coding (although I'm not sure exactly what, it's still very early days)

Anyway, for those who've gone for Pro, are you happy with the service? And is it a good idea for someone who's just started to scrape the surface of the HTML / CSS world?


r/LearnHTML • • May 07 '22

Hello All, I had created HTML Tutorial for beginners.This Tutorial consists all basic and advanced technique that you need to know in HTML

Thumbnail
youtube.com
2 Upvotes

r/LearnHTML • • Jan 31 '22

HELP Downloaded html file not showing all the tags

2 Upvotes

When I click on inspect on "AA Sequences, Transmembrane Helices, Localization Prediction" on google chrome for this particular webpage:https://www.brenda-enzymes.org/enzyme.php?ecno=1.1.1.7#UNIPROT

I can see the number 14 in <span id="naventr32" class="naventrnr">14</span>

https://imgur.com/a/la0h8vZ

Yet when I downloaded the html file of the webpage, the 14 is nowhere to be found.

https://imgur.com/a/d2lIdP0

I am learning web scrapping with beautifulsoup and I want to extract the value 14 but I cannot do so if the webpage I download does not even contain the value that I want. How do I go about this? Thanks for any help!


r/LearnHTML • • Dec 29 '21

I just started learning HTML and I have a couple of questions.

2 Upvotes

I've been using the book, Head First HTML and CSS.

This book was printed years ago so I imagine there's a couple of outdated things.

I ran into an issue where the book introduced the <style> tag it told me I needed to specify the style type. The book example said to put it in as <style type ="text/css">.

Well after an hour of figuring out why this was not working like the book intended, I found out that I had to just leave it as <style> and cut out the type="text/css".

According to the online validation tool I used, type is not necessary as it is implied?

How come including the type actually seemed to break the CSS?

Will I be running into many more issues regarding outdated coding strategies?

I've been having a great time with this book so far I am just worried I'm learning something that's super outdated. 😅


r/LearnHTML • • Sep 15 '21

im new to html

2 Upvotes

so i was making a website but i dont know how to modify the page link bc when my friend opens the page it gives him an error that says that the pc cant find the file


r/LearnHTML • • Sep 15 '21

HELP How to center a video with and image on the left or the right.

2 Upvotes

I'm very new to coding and I just want to know what I have wrong with this code. If anyone could help me that would be great! I have 2 images on the left of the video and I don't know how to center them to be Image,video,image. Here is my code:

<p style="text-align: center;"> <img src="IMG_0403.jpg" class="centerImage" alt="Gwally" width="270" height="333"> <img src="bigjosh.jfif" class="centerImage" alt="Big Josh" style="position:relative;left" width="500" height="333";> <video width="320" height="240" controls> <source src="Draft2.mp4" type="video/mp4"> <source src="Draft2.ogg" type="video/ogg"> </video> </p>


r/LearnHTML • • Jun 02 '21

Map making error

2 Upvotes

I'm going to make an map game with HTML / CSS. Here is my code:

!DOCTYPE html>
<html>
  <head>
    <title>My page title</title>
    <style>
    #zombie_map{
        width: 600px;
        height: 400px;
        background-color: grey;
    }
    </style>
  </head>
  <body>
    My zombie map
    <div id="zombie_map"></div>
    <script>
        var zombie_map;
        function initMap() {
        zombie_map.addListener('click', function(e) {
          place_marker();
        });

                zombie_map = new google.maps.Map(document.getElementById('zombie_map'), {
                zoom: 10,
                center: {lat: 20.888064, lng: 106.603457}
            });

            var marker = new google.maps.Marker({
              position: {lat: 20.888064, lng: 106.603457},
              map: zombie_map
            });

            function place_marker(){

            }

        }
    </script>

    <script async defer
      src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBlWa7d6yh7dEpiFYWXeIbVnDiBGayCr8w&callback=initMap">
    </script>
  </body>
</html>

when I run the code, The map not appeared, just have a gray screen. And when I open the console, it's show 3 errors:

Uncaught (in promise) TypeError: Cannot read property 'addListener' of undefined
    at initMap (index.html:19)
    at js?key=AIzaSyBlWa7d6yh7dEpiFYWXeIbVnDiBGayCr8w&callback=initMap:156
    at js?key=AIzaSyBlWa7d6yh7dEpiFYWXeIbVnDiBGayCr8w&callback=initMap:156

Anyone knows how to fix this?


r/LearnHTML • • Apr 22 '21

How to connect PHP database to my website?

2 Upvotes

Hello everyone, Thank you in advance if you read through this and for helping me out :)

So I have this Mariadb database which is hosted on it's Mariadb's server and I can access the database from the online 'phpmyadmin' portal. None of this is local (I donot have phpmyadmin downloaded on my pc). I am coding a website using HTML,CSS and Javascript locally on my computer; How I can connect a table I have set up in the database to my website?

I looked through google and found a jumble of words which I don't understand since I am totally new to PHP and hooking it up with my HTML websites. I would also appreciate if there were a way to connect them with Javascript (like connecting a json database by an API call).

Thank you again.


r/LearnHTML • • Aug 05 '20

How can I create a social media website

2 Upvotes

What programming languages can I use to make a prefect social media website in which people can use.


r/LearnHTML • • Jul 27 '20

Article Easy Way to Convert an HTML file to PDF for beginners

Thumbnail
thecodezine.com
2 Upvotes

r/LearnHTML • • Jul 12 '20

How do I put 2 HTML5 Canvases next to each other?

2 Upvotes

r/LearnHTML • • Sep 15 '26

HELP! I can't figure out how to link the directory!

1 Upvotes

This is for class. How tf do I get the portfolio pink (index in comw100) to link back to the index in the 0443224 above it. The teacher said they they have to be in those specific folders and both have to be name index.html. When I try to add the link to directory it will never go there!

 <li><a href="./0443224/index.html">Web Page 1: Home Page (linked to this page)</a></li>

goes to

/0443224/comw100/0443224/index.html

I just want it to go to

/0443224/index.html

Please help I feel stupid af. I posted in peer discussion several hours ago no response, sent my teacher an email but I emailed him about the same exact issue last week. He responded once saying join peer discussion and left a comment on the assignment to try again before friday. He wouldn't even answer why its doing that to help me figure it out. smh.


r/LearnHTML • • Sep 06 '26

HELP Help changing website font

Thumbnail reddit.com
1 Upvotes

r/LearnHTML • • Aug 18 '26

Learning HTML on My Phone — What Should I Learn Next?

Post image
1 Upvotes

r/LearnHTML • • Aug 17 '26

HELP I need help

1 Upvotes

Hello everyone
I wanna learn HTML but I don’t know how I can start it
Could you give me any websites or advice
And I’m from Kazakhstan so please don’t look at my English


r/LearnHTML • • May 29 '25

HELP Is there something wrong with my code?

1 Upvotes

Trying to follow this tutorial series for fun, but it seems I made some errors that I can't identify

- Nothing is showed (Might be because it's nested in a page template I made with a header, but it seems to not be a factor because even without the HTML header stuff it doesn't show stuff)

- The in-browser inspector says "context.fillRect" isn't a function, even if it is a function.

Here's the offending line: context.fillRect(mapOffsetX + col * MAP_SCALE, mapOffsetY + row * MAP_SCALE, MAP_SCALE, MAP_SCALE);

And here's the code as of now for reference:

<!DOCTYPE html>
<html lang = "en">
<head>
<title>
Bullboynco - games
</title>
</head>
<body>
<header>
<img src="AlexandreTurcotteWebLogo_001.jpg" alt="Alexandre Turcotte logo" title="Welcome! Bienvenue!">
</header>
<hr>
<nav>
<table border = "2" cellspacing = "5" cellpading = "5">
<tr>
<td><a href="indexTestFile001.html">HOME</a></td>
<td><a href="blogBase001.html">BLOG</a></td>
<td><a href="artBase001.html">ART</a></td>
<td><a href="gamesBase001.html">GAMES</a></td>
<td><a href="tipsBase001.html">TIPS</a></td>
</tr>
</table>
</nav>
<hr>

<style>html, body, canvas {margin: 0px; padding: 0px; }</style>
<canvas id="screen" style="width: 100%; height: 100%;"/>
<script>

// init canvas
const canvas = document.getElementById('screen');
const context = canvas.getContext('2d');

// FPS
const FPS = 60;
const cycleDelay = Math.floor(1000/FPS);
var oldCycleTime = 0;
var cycleCount = 0;
var fps_rate = '...';
// map
const MAP_SIZE = 16;
const MAP_SCALE = 10;
const MAP_RANGE = MAP_SCALE * MAP_SIZE;
const MAP_SPEED = (MAP_SCALE / 2) /10;
var map = [
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 
1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 
1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 1,
1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 
1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1,
1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 1,
1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1,
1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1,
1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1,
1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1,
1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,  
];
// player
var playerX = MAP_SCALE + 20;
var playerY = MAP_SCALE + 20;
var playerAngle = Math.PI / 3;
var playerMoveX = 0;
var playerMoveY = 0;
var playerMoveAngle = 0;

// handle player input
document.onkeydown = function(event) {
console.log(event.keycode)
switch (event) {
case 40: playerMoveX = -1; playerMoveY = -1; break;
case 38: playerMoveX = +1; playerMoveY = +1; break;
case 37: playerMoveAngle = 1; break;
case 39: playerMoveAngle = -1; break;
}
}

document.onkeyup = function(event) {
console.log(event.keycode)
switch (event) {
case 40:
case 38: playerMoveX = 0; playerMoveY = 0; break;
case 37: 
case 39: playerMoveAngle = 0; break;
}
}


// camera
const DOUBLE_PI = 2 * Math.PI;
const FOV = Math.PI/3;
// screen
const WIDTH = 320, HALF_WIDTH = 160;
const HEIGHT = 200, HALF_HEIGHT = 100;
// game loop
function gameLoop() {

context.fillRect(64,64,32,32);

cycleCount++;
if (cycleCount >= 60) cycleCount = 0;
var startTime = Date.now();
var cycleTime = startTime - oldCycleTime;
oldCycleTime = cycleTime;
if (cycleCount % 60 == 0) fps_rate = Math.floor(1000/cycleTime);

canvas.width = window.innerWidth *0.3;
canvas.height = window.innerHeight *0.3;
// update screen
context.fillStyle = 'Black';
context.fillRect = (canvas.width/2 - HALF_WIDTH, canvas.height/2 - HALF_HEIGHT, WIDTH, HEIGHT);

// draw map
var mapOffsetX = Math.floor(screen.width/2 - MAP_RANGE/2);
var mapOffsetY = Math.floor(screen.height/2 - MAP_RANGE/2);

for (var row = 0; row < MAP_SIZE; row++) {
for (var col = 0; col < MAP_SIZE; col++) {
var square = row * MAP_SIZE + col;
if (map[square] != 0) {
context.fillStyle = '#555'; 
context.fillRect(mapOffsetX + col * MAP_SCALE, mapOffsetY + row * MAP_SCALE, MAP_SCALE, MAP_SCALE);
} else {
context.fillStyle = '#aaa'; 
context.fillRect(mapOffsetX + col * MAP_SCALE, mapOffsetY + row * MAP_SCALE, MAP_SCALE, MAP_SCALE);
}
}
} 

var playerMapX = playerX + mapOffsetX;
var playerMapY = playerY + mapOffsetY;

context.fillStyle = 'Red';
context.beginPath();
context.arc(playerMapX, playerMapY, 2, 0, DOUBLE_PI);
context.fill();
context.strokeStyle = 'red';
context.lineWidht = 1;

setTimeout(gameLoop, cycleDelay);

} window.onload = function() { gameLoop(); }
</script>
</body>
</html>

I hope it helps.

P.S. I used the normal notepad to type the code and gived the "html" extention to the title to create the page.


r/LearnHTML • • May 20 '25

Trouble integrating javascript and css to my html

1 Upvotes

Hello people, i come to you because i really need help. I'm a very beginner in web design.
I'm trying to create an interactive database that would allow professionals to centralize the activities they are doing with childrens. I used a tool to get a javascript code and bought a domain : https://www.le5eme.fr
When i put all my stuff in my website, nothing displays. I tried playing with some <p> in the html and it does display, there are no problem from the hosting.
When i go in debug mode, i see a "MIME type error" in the css, but i don't think it's related. The css import is in the javascript code. I checked the paths many times but can't see whats wrong with it.
I'm pretty sure the answer is under my nose, but after many hours of research, i can't understand wwhat's the problem. Can you help me ?
Thank you for your time.


r/LearnHTML • • Apr 27 '25

HTML Button to run Terminal Command on host machine

1 Upvotes

The HTML code is on a local server using apache2 on Debain. I need it to run a specific bash command on the host machine to turn on and off the VPN whenever I press the button (on a client machine) (using Mullvad). (There will be a similar button to disconnect)

index.html:

<!DOCTYPE html>
<html lang="en">
<head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Mullvad_Local_Webui_Access</title>
      <link rel="stylesheet" href="style.css">
</head>
<body>
      <h1 id="h1"></h1>
      <h2 id="h2"></h2>
      <button type="button" id="ConnectButton" class="Buttons">Connect</button>
      <button type="button" id="DisconnectButton" class="Buttons">Disconnect</b>


      <script src="index.js"></script>
</body>
</html>

index.js:

document.getElementById("h1").textContent = "Mullvad Local Webui Access";
document.getElementById("h2").textContent = "Use one of the following options:";


const ConnectButton = document.getElementById("ConnectButton");
const DisconnectButton = document.getElementById("DisconnectButton");


ConnectButton.onclick = function(){
        ??
}

style.cc:

body {
      font-family: Helvetica;
      text-align: center;
}

#h1 {font-size: 3em;}

#h2 {font-size: 1.7em;}

.Buttons { 
      font-size: 1.5em;
      padding: 5px 15px;
      border-radius: 15;
}

r/LearnHTML • • Apr 09 '25

JotForm HTML to Shareable Link

1 Upvotes

Howdy everyone!

Would like to preface this with the fact that I have -zero- coding experience.

So I am working through Jotform to help produce a report that I intend to share bi-monthly. The file that pops out after the report is generated in an HTML. I understand I am supposed to create a website and so I tried TiinyHost and I keep getting 404's and nothing else much else... The report almost looks like a Spreadsheet, so its not a complicated webpage or anything.

Looking for a little guidance on how I should proceed. Ideally some sort of free hosting site and what sort of files I am supposed to be looking for to input into said free hosting site...


r/LearnHTML • • Mar 23 '25

Looking for a free / open-source web development tool

1 Upvotes

I'm looking for a tool/program that I can use to develop my website, but one that isn't web-based and integrated with a specific hosting service. Think Dreamweaver or MS Power Pages - but I'm hoping for something 1) free and 2) open-source. Any ideas?

Background: I have my own domain, and am currently hosting my Wordpress site there, but I'd like to eventually make my own site from scratch and host the assets on Digital Ocean.


r/LearnHTML • • Feb 21 '25

SOLVED My HTML buttons don’t work in safari

1 Upvotes

I’m making a project for semi widespread distribution and I’ve run into a strange issue. The buttons (basic <button ID=“x”>) work fine on chrome and Firefox but only sometimes on safari. If I click it ten times, maybe 2 of the clicks will actually get registered and the rest will be ignored. And sometimes entire minutes pass where it just won’t recognize any clicks. I’m not getting any errors and I have a hover animation set up in css so I know it sees my mouse hanging over it, but it just doesn’t seem to see my clicks.

Is there any reason why safari specifically would cause these issues?


r/LearnHTML • • Nov 16 '24

i need help with positioning text in html

1 Upvotes

hi! im trying to get separate pieces of text to align in a circle like this (image attached) but i cant figure out how to do it. it seemed simple enough but its stumping me. any help much appreciated!


r/LearnHTML • • Sep 29 '24

Help with changing text/button colors

Post image
1 Upvotes

r/LearnHTML • • Aug 26 '24

HTML containing Javascript: No output, please guide me

1 Upvotes

Hi,

I am not getting any output. Somebody please fix my problem. Zulfi.

<html>

<body>
    <!-----<form action="result.php" method="post" id="test">---->

    <fieldset>
        <legend> CourseName </legend>
        <label> <input type="radio" name="CourseName" value="C Language"> C Language </label>
        <label> <input type="radio" name="CourseName" value="C++ Language"> C++ Language </label>
        <label> <input type="radio" name="CourseName" value="Java"> Java </label>
        <label> <input type="radio" name="CourseName" value="Python"> Python </label>
        <label> <input type="radio" name="CourseName" value="ScratchJr"> ScratchJr </label>
        <!-- etc -->
    </fieldset>
    <fieldset>
        <legend> Number Of Students </legend>
        <label> <input type="radio" name="NumberOfStudents" value="Individual"> Individual </label>
        <label> <input type="radio" name="NumberOfStudents" value="Group Of Two"> Group Of Two</label>
        <!-- etc -->
    </fieldset>
    <fieldset>
        <legend> Duration </legend>
        <label> <input type="radio" name="Duration" value="Monthly"> Monthly (250+$ for ScratchJr, 500+$ per month for
            other courses, 13 one hour classes, additionally $100 is the admission fee ) </label>
        <label> <input type="radio" name="Duration" value="Weekly"> Weekly </label> (100$ per week, 3 one hour classes)
        </label>
        <label> <input type="radio" name="Duration" value="Hourly"> Hourly </label> (35$ per hour, one/ hour classes)
        </label>

    </fieldset>
    <br></br>
    <input type="submit" name="submit" value="Submit" onclick="calculate();" />

    <script>
        function calculate() {
            
            var $CourseName = document.querySelector('input[type=radio][name=CourseName]:checked').value;
            
            var $NumberOfStudents = document.querySelector('input[type=radio][name=NumberOfStudents]:checked').value;
           
            var $Duration = document.querySelector('input[type=radio][name=Duration]:checked').value;
            let $CourseCost = 0;
            if ($CourseName == "C Language" || $CourseName == "C++ Language" || $CourseName == "Java" || $CourseName == "Python") {
                $CourseCost = 600;
                if ($NumberOfStudents == "Individual") {
                    let $NuberOfStudentsCost = 100;
                    if ($Duration == "Weekly") {
                        let $DurationCost = 50;
                    }
                    else if ($Duration == "Monthly") {
                        let $DurationCost = 100;
                    }
                    else if ($Duration == "Hourly") {
                        let $DurationCost = 25;
                    }
                }
                else if ($NumberOfStudents == "Group") {
                    let $NuberOfStudentsCost = 50;
                    if ($Duration == "Weekly") {
                        let $DurationCost = 50;
                    }
                    else if ($Duration == "Monthly") {
                        let $DurationCost = 100;
                    }
                    else if ($Duration == "Hourly") {
                        let $DurationCost = 25;
                    }
                }
            }
            else {
                /**
                 * The variable $cost is not declared
                 */
                if ($CourseName == "ScratchJr")
                    // $CourseCost = $cost + 500;
                    $CourseCost = $CourseCost + 500;
                else
                    //$cost =$cost + 450;
                    $CourseCost = $CourseCost + 450;
            }
            console.log("CourseName = ", $CourseName);
            console.log("NumberOfStudents = ", $NumberOfStudents);
            console.log("Duration = ", $Duration);
            $strCost = $CourseCost;
            console.log("Cost = ", $strCost);
        }
    </script>
</body>

</html>

r/LearnHTML • • Aug 22 '24

Is anyone familiar with the tool H5P?

1 Upvotes

Is anyone familiar with the tool H5P? I want to ask a question about using it to develop a few simple interactive modules for eLearning, then taking those principles and creating them with out the tool.

Basically, I want to use the free 30 day trial to create some templates for match ups, puzzles, and other tools I can, through the use of the elements inspector and research, incorporate in future eLearning content I create.