Dr. Mark Humphrys

School of Computing. Dublin City University.

Home      Blog      Teaching      Research      Contact

Search:

CA249      CA318      CA425      CA651

w2mind.computing.dcu.ie      w2mind.org

Notes on How to set up and maintain Web pages


Where to put your Web pages

On your Linux/UNIX account on something like:

student.computing.dcu.ie 
in a directory called public_html:
cd
mkdir public_html
edit public_html/index.html
edit public_html/file.html
to make the files:
http://host/~user/
http://host/~user/file.html

The URL will be something like:

http://student.computing.dcu.ie/~username/


Web hosting in DCU:



Protections

The hierarchy of directories above the files needs to be executable by "others". See Notes on directory protections

cd
chmod o+x .
chmod o+x public_html
All files need to be readable by "others". See Notes on file protections
cd
chmod o+r public_html/index.html
chmod o+r public_html/file.html
chmod o+r public_html/image.jpg





How to write your Web pages

  1. Raw HTML in a text editor

  2. Raw HTML in an assisted text editor

  3. WYSIWYG Web editors
    • Browser editors
    • Word Save As

    • May generate very complex, spaghetti, machine-generated HTML code that breaks oddly in different browsers, or mobile browsers.

    • It might be OK for writing 1 or 2 pages, but can it scale up to hundreds of pages organised in directories and subdirectories and massively interlinked? My experience with these editors, and the complexity of simply trying to implement relative links instead of absolute links, suggests often no. As you scale up, you need to be able to understand HTML, so that you can make adjustments by hand and in scripts and programs, as well as whatever assisted tools you use.

    • Note WYSIWYG editors are misleading on the Web because the Web is not WYSIWYG. Your users are looking at your pages on mobiles, PDAs, netbooks, old systems, tiny screens, wide screens, with custom colours, fonts not installed, ad blockers on and windows resized. WYSIWYG editors delude you into thinking that what you are looking at is how the page will look to the user.

  4. Web content management system




Minimalist web page


<html>
<head>
<title> My web page </title>
</head>
<body>

<h1> My web page </h1>

<p> I am a very interesting person
and here are my poems. </p>

<p> Here is a link to my favourite artist,
<a href="http://www.daniel-site.com/"> Daniel O'Donnell</a>.
I hope to marry him some day. </p>

</body>
</html>



Read HTML Reference.

"View .. Source" on other people's pages round the Web to scavenge them for ideas (be careful not to scavenge actual content (text or image) though!)



Some HTML tags.



Using other formats




HTML plus images (browse-and-move-on)

HTML plus images is the most portable format, readable everywhere and on anything. Think of your users not just on PCs but on netbooks, tablets, smartphones, and on old machines and old software and slow phone lines. Why make them unable to read your work for no good reason. Use the lowest common denominator.

pdf, doc, ppt, xls, ps, rtf (and in general anything that requires plug-ins and separate applications) often break the clean Web model of browse-and-move-on.



HTML creates a seamless Web - Other file types can break this

  1. Searching for and searching in:
    If it is in HTML, the content can be picked up in search engines (whereas content of ps, doc, pdf, etc. may be hidden) and content on a page can be easily searched.

    
    
  2. Linking in and out:
    If it is in HTML, people can link to it, can link to sub-sections within it, can link to labels within those sub-sections, and those sections in turn can link back out to everything else on the Web.



How to browse your Web pages


Relative links




How to upload your Web pages

  1. Edit them directly off disk in UNIX, or:

  2. Edit them in Windows. Make UNIX account look like a drive:

    • In CA lab, use SAMBA. Then drag and drop (or edit direct off disk).

    • From home/remote, use WebDrive (uses read-write ftp to make remote UNIX computer look like just another drive). Then drag and drop (or edit direct off disk).
See Accessing UNIX remotely and from Windows.




Feeds      HumphrysFamilyTree.com

Bookmark and Share           On Internet since 1987.