Web pages and HTML

While fancy web pages are often designed using web development software, it can be very useful to build basic web pages for presentation of information that is accessible, e.g. to collaborators, via the web.

Structure of an HTML document: <command></command> structure, <HTML><BODY [bgcolor=]>,

Basic HTML text processing: text will appear continuously in a browser regardless of how it is entered in the HTML source file, unless there are command directives: the width of the text will adapt to the width of the browser. Various text directives:

HTML links:

HTML tables:

HTML figures:

comments in HTML files: <!-- comment -->

All of these can be combined, e.g., a table of figure thumbnails with links to full size figures:

	<TABLE BORDER=2>
	<TR> <TD> <A HREF=fig11.jpg> <IMG SRC=fig11.jpg WIDTH=200> </A>
	<TR> <TD> <A HREF=fig12.jpg> <IMG SRC=fig12.jpg WIDTH=200> </A>
	<TR> <TD> <A HREF=fig21.jpg> <IMG SRC=fig21.jpg WIDTH=200> </A>
	<TR> <TD> <A HREF=fig22.jpg> <IMG SRC=fig22.jpg WIDTH=200> </A>
	</TABLE>

Frames, CSS, and much much more!

web servers

A web server is a network program that runs on a server machine, and interprets/delivers web pages as requested. Standard web requests are http://{machinename/address}/{file|directory}. On the web server, the {file|directory} is interpreted as a relative path to some document root directory. If the requested address is a directory, the web server will look for a file named index.html in that directory and, if it exists, will use the contents of that file; if it doesn't exist, it will show the directory listing of the directory.

NMSU web pages

Web server at NMSU uses /home/httpd/html as the document root, and all users have a directory /home/httpd/html/{username}, so web requests to http://astronomy.nmsu.edu/{username} will look for files in this directory. Note that this directory is located on the disk server, so it is not a great location to put large files; if you want to provide access to large files, or even whole directories, located on a disk on your machine, consider the use of symbolic links ... Department web pages are built using Wordpress. How to modify: link in Internal Info on Astronomy web pages (astro/NMSUAstronomy) You can include a link to a personal web page which you can create using basic HTML, or any one of a number of website builders.

collaborative web pages