The Condominiums page allows users to search for FHA-approved condominium projects by location, name, or status. These properties are not for sale by the FHA. The search can be configured to find specific types of projects through the use of the pull-down menus and entry fields. Detailed help is available online or contact the Single Family Administrator. Please note: It is not necessary to enter information into every field. The less information entered, the larger the resulting list. Enter only the criteria (full/partial) that you know to be correct or helpful in streamlining your list to your needs. If you are having problems finding a condominium, you may need to modify your search criteria You can help protect against COVID-19 by encouraging friends, family, and your community to get an updated COVID vaccine. Show
Learn more Frequently Asked QuestionsWe have answers for your frequently asked questions. Visit our FAQs Previous NextPress release USDA and Social Security Administration Collaborate to Improve Nutrition Security through SNAP The U.S. Department of Agriculture Food and Nutrition Service (FNS) and the Social Security Administration (SSA) today announced a strengthened partnership... Press release Social Security Administration Launches Redesigned Website at SSA.gov Starting today, visitors to SSA.gov will experience a fresh homepage and a new design to help them find what they need more easily. Every website is a collection of web pages, so it should come as no surprise that your journey to build a complete site starts here, with the writing of a single web page. Technically, a web page is a special type of document written in a computer language called HTML (that’s short for HyperText Markup Language). Web pages are written for web browsers—programs like Internet Explorer, Google Chrome, and Safari. These browsers have a simple but crucially important job: they read the HTML in a web page document and display the perfectly formatted result for you to read. This chapter will introduce you to HTML. You’ll see how a basic web page works and learn how to create one of your own. For now, you’ll be working with web pages you store on your computer, visible only to you. Later on, in Chapter 9, you’ll learn to put web pages online so anyone with a web connection can see them. HTML is the single most important standard in web design—and the only one that’s absolutely required if you plan to create a web page. Every web page is written in HTML. It doesn’t matter whether your page contains a series of blog entries, a dozen pictures of your pet lemur, or a heavily formatted screenplay—odds are that, if you’re looking at it in a browser, it’s an HTML page. HTML plays a key role in web pages: It tells browsers how to display the contents of a page, using special instructions called tags that tell a browser when to start a paragraph, italicize a word, or display a picture. To create your own web pages, you need to learn to use this family of tags. HTML is such an important standard that you’ll spend a good portion of this book digging through its features, frills, and occasional shortcomings. Every web page you build along the way will be a bona fide HTML document. NoteThe HTML standard doesn’t have anything to do with the way a web browser retrieves a page on the Web. That task is left to another standard, called HTTP (HyperText Transport Protocol), which is a communication technology that lets two computers exchange data over the Internet. To use the analogy of a phone conversation, the telephone wires represent HTTP, and the juicy tidbits of gossip you exchange with Aunt Martha are the HTML documents. Cracking Open an HTML FileOn the inside, an HTML page is actually nothing more than a plain-vanilla text file. That means that the raw code behind every web page you create will consist entirely of letters, numbers, and a few special characters (like spaces, punctuation marks, and everything else you can spot on your keyboard). Figure 1-1 dissects an ordinary (and very simple) HTML document. Here’s one of the secrets of web page writing: You don’t need a live website to start creating your own web pages. That’s because you can easily build and test pages using only your own computer. In fact, you don’t even need an Internet connection. The only tools you need are a basic text editor and a standard web browser. A text editor lets you create or edit an HTML file (in a window like the one you can see in Figure 1-1, bottom). Even many professional web designers stick with simple text-editing tools. There are plenty of fancier editing tools that are designed specifically for editing websites, but you don’t actually need any of them. And if you start using them too soon, you’re likely to end up drowning in a sea of extra frills and features before you really understand how HTML works. Figure 1-1. Every HTML document is actually an ordinary text file. Top: A web browser displays a simple HTML document, showing all its glorious formatting. Bottom: But when you open the same document in a text editor, you see all the text from the original document, along with a few extra pieces of information inside angle brackets This text isn't bold. This text is bold.5. These HTML tags convey information about the document’s structure and formatting. The type of text editor you use depends on your computer’s operating system:
Mac fans need to tweak the way TextEdit works because the program has an “HTML view” that hides the tags in an HTML file and shows you the formatted page instead. This behavior is aimed at making life simpler for newbies, but it presents a serious danger for anyone who wants to write a real web page. To avoid confusion and to make sure you write real, raw HTML, you need to turn HTML view off. Here’s how:
As you no doubt know, a web browser is a program that lets you navigate to and display web pages. Without browsers, the Web would still exist, but you wouldn’t be able to look at it. A browser’s job is surprisingly simple—in fact, the bulk of its work consists of two tasks. First, it requests web pages, which happens when you type in a website address (like www.google.com) or click a link in a web page. The browser sends that request to a far-off computer called a web server. A server is typically much more powerful than a home computer because it needs to handle multiple browser requests at once. The server heeds these requests and sends back the content of the desired web pages. When the browser gets that content, it puts its second skill into action and renders, or draws, the web page. Technically, this means the browser converts the plain text it receives from the server into a display document based on formatting instructions embedded in the page. The end result is a graphically rich page with different typefaces, colors, and links. Figure 1-3 illustrates the process. Figure 1-3. A web browser is designed to do two things really well: contact remote computers to ask for web pages, and then display those pages on your computer. Although you usually ask your browser to retrieve pages from the Web, you can also use it to view a web page that’s stored on your computer, which is particularly handy when you’re practicing your HTML skills. In fact, your computer already knows that files that end in .htm or .html have web page content. So if you double-click one of these files, your computer launches your web browser automatically. (You can get the same result by dragging a web page file and dropping it on an already-open browser window.) Although ordinary people need only a single web browser, it’s a good idea for web developers-in-training (like yourself) to become familiar with the most common browsers out there (see Figure 1-4). That’s because, when you design your website, you need to prepare for a wide audience of people with different browsers. To make sure your nifty pages don’t turn funky when other people look at them, you should test your site using a variety of browsers, screen sizes, and operating systems. The following list describes the most popular browsers of today:
Tutorial: Creating an HTML FileNow that you’ve prepped your web kitchen, you’re ready to create your very own web page. In this tutorial, you’ll build the basic page that you saw in Figure 1-1. TipLike all the tutorials in this book, you’ll find the solution for this exercise on the companion site at http://prosetech.com/web. Just look in the folder named Tutorial-1-1 (which stands for “Chapter 1, first tutorial,” if you’re curious). Ready to begin? Here’s what to do:
TipHere’s a trick that can help you open HTML files in a hurry. Find your file, and then right-click it (Control-click on a Mac) and choose “Open with.” This pops open a list of programs you can use to open the file. Click Notepad (or TextEdit) in the list to launch a new text editor window and open your HTML file in one fell swoop. If you leave your web browser window open while you edit your HTML file in a text editor, the browser will hold on to the old version of your file. To see your recent changes, save your text file again (choose File→Save) and then refresh the page in your browser (usually, that’s as easy as right-clicking the page and choosing Refresh or Reload). Seeing the HTML of a Live Web PageMost text editors don’t let you open a web page that’s on the Internet. However, web browsers do give you the chance to sneak a peek at the raw HTML that sits behind any web page. If you’re using Internet Explorer, Chrome, Firefox, or just about any browser other than Safari, you can use a shortcut. Once you navigate to the web page you want to examine, right-click anywhere on the page and choose View Source or View Page Source (the exact wording depends on the browser). A new window appears, showing you the raw HTML that underlies the page. If you’re using Safari on a Mac, you have to jump through an extra hoop to see a web page’s HTML. First, switch on the Develop menu by choosing Safari→Preferences→Advanced and then turning on the “Show Develop menu in menu bar” checkbox. Once you do, visit the page you want to dissect and choose Develop→Show Page Source. TipFirefox has a handy feature that lets you home in on just part of the HTML in a complex web page. Just select the text you’re interested in on the page itself, right-click the text, and then choose View Selection Source. Most web pages are considerably more complex than the popsicles.htm example shown in Figure 1-1, so you need to wade through many more HTML tags when you look at the web page markup. You’re also likely to find a dense thicket of JavaScript code stuffed at the top of the page, stripped of all its spacing and almost impossible to read. But even if the markup looks like gibberish, don’t panic. By the time you finish this book, you’ll be able to scan through a jumble of HTML to find the bits that interest you. In fact, professional web developers often use the View Source technique to check their competitors’ work. Now that you know how to peer into existing HTML files and how to create your own, the next step is to understand what goes inside the average HTML file. It all revolves around a single concept—tags. HTML tags are formatting instructions that tell a browser how to transform ordinary text into something visually appealing. If you were to take all the tags out of an HTML document, the resulting page would consist of nothing more than plain, unformatted text. You can recognize a tag by looking for angle brackets, two special characters that look like this: This text isn't bold. This text is bold.5. When creating a tag, you type HTML code between the brackets. This code is for the browser’s eyes only; web visitors never see it (unless they use the View Source command to peek at the HTML). Essentially, the code is an instruction that conveys information to the browser about how to format the text that follows. For example, one simple tag is the This text isn't bold. This text is bold.7tag, which stands for “bold” (by convention, tag names are usually written in lowercase). When a browser encounters this tag, it switches on boldface formatting, which affects all the text that follows the tag. Here’s an example: This text isn't bold. This text is bold. On its own, the This text isn't bold. This text is bold.7tag isn’t quite good enough; it’s known as a start tag, which means it switches on some effect (in this case, bold lettering). You pair most start tags with a matching end tag that switches off the effect. You can easily recognize an end tag. They look the same as start tags, except that they begin with a forward slash. That means they start like this This text isn't bold. This text is bold.9. So the end tag for bold formatting is This isn't bold. Pay attention! Now we're back to normal.0
Figure 1-7. To get bold text, you need to start with the correct container. It’s the This text isn't bold. This text is bold.7element. This isn't bold. Pay attention! Now we're back to normal.5
This isn't bold. Pay attention! Now we're back to normal.8
This word has bold and italic formatting.1, sort of like an opening and closing tag all rolled into one. So you’ll see a line break written as This word has bold and italic formatting.2 instead of This word has bold and italic formatting.2. This form, called the empty element syntax, is handy because it clearly distinguishes container elements from standalone elements. That way, you’ll never get confused. This word has bold and italic formatting.4
This word has bold and italic formatting.7 This word has bold and italic formatting.8
This word has italic and bold formatting.5This word has italic and bold formatting.6 This word has italic and bold formatting.7This word has italic and bold formatting.8 This word has italic and bold formatting.9 This word has italic and bold formatting.0 This word has italic and bold formatting.1 This word has italic and bold formatting.2 This word has italic and bold formatting.3 This word has italic and bold formatting.4 This word has italic and bold formatting.5 This word has italic and bold formatting.6 This word has italic and bold formatting.7 This word has italic and bold formatting.8 This word has italic and bold formatting.9 This word has italic and bold formatting.8 DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">1 This word has italic and bold formatting.8 DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">3 DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">4 DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">5 If you open this document in a web browser, you’ll find that the page is blank, but the title appears (as shown in Figure 1-10). Figure 1-10. When a browser displays a web page, it shows the page’s title on the browser’s tab or at the top of the window. But be warned: the title won’t always fit. As it stands right now, this HTML document is a good template for future pages. The basic structure is in place; you simply need to change the title and add some text. That’s the task you’ll undertake next. DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">6DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">7 DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">8DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">9 ... ...0
3 4 5 6 7 8 9 Hire Me! I am Lee Park. Hire me for your company, because my work is off the hizzle. 01 2 3 element (short for “image”). It points to an image file, which the browser retrieves and inserts into the page. You can put the image file in the same folder as your web page (which is the easiest option), or you can put it on a completely different website. 4 element that uses the leepark.jpg file:
This text isn't bold. This text is bold.06This text isn't bold. This text is bold.07 This text isn't bold. This text is bold.08 This text isn't bold. This text is bold.09This text isn't bold. This text is bold.10 This text isn't bold. This text is bold.11 This text isn't bold. This text is bold.12 This text isn't bold. This text is bold.13 This text isn't bold. This text is bold.14 This text isn't bold. This text is bold.15 Table 1-2. Basic inline elements. ELEMENT NAME TYPE DESCRIPTION Bold and italic Container These two elements apply character styling—either bold or italic text. (Technically, This text isn't bold. This text is bold.7means “text in an alternate voice” and This text isn't bold. This text is bold.7means “stylistically offset text,” and there are ways to change the formatting they apply, as you’ll see in Chapter 3. But in the real world, almost all web developers expect that This text isn't bold. This text is bold.7means italics and This text isn't bold. This text is bold.7means bold.) This word has bold and italic formatting.2 Line break Standalone Sometimes, all you want is text separated by simple line breaks, not separate paragraphs. This keeps subsequent lines of text closer together than when you use a paragraph. 6 Image Standalone To display an image inside a web page, use this element. Make sure you specify the This text isn't bold. This text is bold.02 attribute to indicate the filename of the picture you want the browser to show. Anchor Container The anchor element is the starting point for creating hyperlinks that let website visitors jump from one page to another. You’ll learn about this indispensable element in Chapter 6. |