Accessible application for server Apache for Mac

By Aurel Calin, 30 August, 2023

Forum
macOS and Mac Apps

Hi!
I started to learn html and css languages for create web sites. I'm using a Macbook but I didn't find an accessible application for exercise myself. I tried Xampp but it is completely inaccessible for Voiceover. There is someone who knows something else?
Thank you very much!

Options

Comments

By Manuel on Monday, September 25, 2023 - 12:48

You don't need a web server for HTML / CSS exercising. However, if you want to make your pages accessible through localhost, for example, MAMP should work fine. It's the one I use for local PHP development.

By PaulMartz on Monday, September 25, 2023 - 12:48

I wrote this web server article years ago. Some of the information might be helpful.

My home Apache web server runs on a Linux computer. I use Terminal to ssh into the Linux system, and manage Apache, PHP, MySQL, Wordpress, etc., primarily through the command line / shell interface.

By Aurel Calin on Monday, September 25, 2023 - 12:48

@Manuel
Why did you say that I don't need a server app for exercise HTML and CSS? How can I do differently?

Regarding Mama, I installed it and I create a folder TestHTML in the Sites/localhost/ folder with a index.html file with this content:

<!DOCTYPE html>
<html lang=“it”>
<head>
<title>MyHomePage</title>
<meta charset=“UTF-8”>
</head>
<body>
<div>
<main>
<h1>Pagina principale</h1>
<p>Questa e’ la mia pagina principale.</p>
</main>
<footer>
<p>Copyright - Aurelio - 2023</p>
</footer>
</div>
</body>
</html>

But, when I go to open it writhing this address:
localhost:8888/TestHTML
the page cannot be find.

Thank you for your help!

By Brian on Monday, September 25, 2023 - 12:48

Try adding an extra "/" after the "TestHTML" part? I could be wrong, but it appears like its just a matter of a typo.

HTH. 🤷🏻‍♂️

By PaulMartz on Monday, September 25, 2023 - 12:48

You only need a web server if you want one computer to serve HTML/CSS content to another computer. If you are developing and viewing HTML/CSS content locally, no web server is required. Simply put the full path and filename of the HTML file in your web browser / Safari address bar.