Web Design I A Unit 4: Basic HTML and Cascading Style Sheets

Web Design I A Unit 4: Basic HTML and Cascading Style Sheets

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

Editing HTML Files

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (64)

Section 1

(50 cards)

Editing HTML Files

Front

If you double-click the file, it opens in an Internet browser. It does not open in the text editor program you used to create it. You'll have to open the text editor first if you want to view the file in the text-editor screen. Then, choose "Open" from the "File" menu. Browse to the file that you should have saved on your desktop and click "Open." From there, you can edit the file.

Back

HTML tags

Front

let you insert various sizes of text, format paragraphs, add horizontal lines, and complete a variety of other tasks.

Back

The value

Front

the definition of the characteristic the attribute refers to. In HTML, all colors are defined by color values from #000000 (black) to #FFFFFF (white).

Back

Entities

Front

used in HTML for things such as spaces, signs, and symbols.

Back

1.Open a text editor program.

Front

In Windows, you can find Notepad by clicking on your Start menu and choosing All Programs and Accessories. On a Mac, open the Applications window and choose TypePad.

Back

Horizontal Rule Tag

Front

This tag inserts a horizontal line onto the web page.You can change the length of the horizontal line by adding size tags to it, such as <hr width=50%>

Back

2.Create a new document.

Front

Usually, text editor programs will open up with a new document template already loaded. If this isn't the case for you, simply click New under the File menu.

Back

The code for a web page begins with an <html> tag (an opening tag). The page also ends with a corresponding closing tag, </html>

Front

This opening HTML tag tells the computer that HTML code is about to begin. At the end of the page, the closing HTML tag tells the computer that the HTML code has ended.

Back

the title of the web page appears in the title bar of the Internet browser when you're viewing the page.

Front

It also appears in the minimized window when you have the page minimized.

Back

Step 2.

Front

Choose File > New Folder, or press Shift-Command (⌘)-N.If the New Folder command is dimmed, you can't create a folder in the current location. For example, you could not create a folder in the All My Files section of the Finder sidebar. Choose a different location and try again.

Back

some tags do require attributes. For example, the image tag by itself, <img>, is meaningless without attributes.

Front

The simplest functional image tag requires an attribute that identifies the source of the image. Without an attribute to tell the computer where the image is stored, the image cannot be displayed

Back

paragraph Tag

Front

used to create chunks of text, like paragraphs. HTML automatically adds an extra line break between sets of paragraph tags. (<p> paragraph </p>)

Back

<head>

Front

The head tags means "heading or header." It usually contains the title of the HTML page. As a matter of fact, you'll often find the title tag, <title> and </title>, within the header tags. The <head> tag might also contain comment information. This could be the web page author's name and date of creation.

Back

Step 3

Front

Enter a name for the folder, as shown in the example, titled "Business Letter," and then press Enter.

Back

Capitalization doesn't really matter when writing HTML code, though. HTML code is not case sensitive.

Front

it is a best practice to use all lowercase letters. This makes it easier for you and other people to read your code when looking at the source code in the background.

Back

"src" is the attribute.

Front

<img src="/images/box.jpg" />

Back

onduct a safe Internet search using the search terms "W3Cs HTML color picker."

Front

You can also use an attribute to display an image as the background of a web page. In the example below, "background" is the attribute. (<body background="dots.gif">)

Back

Heading Tags

Front

These tags are used to create headings for your web page. There are six heading tags: <h1>, <h2>, <h3>, <h4>, <h5>, and <h6>. <h1> is the largest font size. These heading tags get progressively smaller until you reach <h6>. Heading tags also make the text bold

Back

Emphasis Tag

Front

A different way to emphasize text is with the emphasis tag, <em>.

Back

Website Developer's Console

Front

Using a developer's console, an integrated web development environment, is incredibly helpful when creating things for the web. It is also a good way for you to learn how websites are made and structured

Back

Hyperlinks

Front

the most common uses of attributes. The anchor tag is <a>. To define a link, you must use the hypertext reference, or href, attribute within the anchor tag. There is then an end anchor </a> tag at the end of the link reference.

Back

Step 1.

Front

Click the desktop if you want to create the folder on the desktop; otherwise, open a Finder window and navigate to where you want to create the folder.

Back

4.Save the document by choosing Save As in the File menu

Front

a.From the list of folders and places on the left, choose Desktop. b.In the Save as type drop-down menu, choose "Hypertext Markup Language file." If "Hypertext Markup Language file" is not an available option, choose All Files. c.Name the file "index.html" and click Save.

Back

The ordered list tag is <ol>. the "o" stands for "ordered" and the "l" stands for "list."

Front

Each item you want in your list uses the line item (or list item) tag <li>. The "l" stands for line and the "i" for item.

Back

Unordered lists can use three different bullet types.

Front

They are discs, circles, and squares. The disc is always used by default if no bullet type is specified. Bullet types are defined using the type attribute.

Back

To create a well-designed website, you need to know how to add the elements you want.

Front

Back

HTML Tables

Front

used to organize information on web pages. The opening HTML tag for a table is <table>. There are several tags used within the table tag set

Back

To create an unordered list, you just use the unordered list tag <ul>. The "u" stands for "unordered" and "l" for "list."

Front

You use list item tags as you used them in the ordered lists.

Back

Nesting Tags

Front

Tags can also be used within other tags. Using HTML tags within other tags is called nesting tags

Back

Attributes

Front

used to define HTML tags.

Back

Writing HTML

Front

All you need to create a web page using HTML is a text editor like Notepad or TypePad

Back

Directions for Creating an HTML Page

Front

next 4 flashcards

Back

3.Type or copy and paste the text below into your new document.

Front

<html> <head> <title>Hello World!</title> <body> <h1>Hello World!</h1> <p>This is my first web page.</p></body> </html>

Back

HTML

Front

made up of tags. Tags are words or abbreviated words enclosed in brackets. Tags give instructions to the browser. For example, <HTML> is the tag used to mark the beginning of a piece of HTML code.

Back

The comment tag contains text for people who are reading your code. You can use the comment tag to credit other coders (authors) when you borrow their code.

Front

You can also type a comment explaining why you used that particular text or code. You can also use the comment tag to insert instructions for other coders who might be using your code. The comment tag looks like this: <!-- -->.

Back

Alt attribute:

Front

As with the title attribute, this attribute has a dual purpose. For all users, it provides the benefit of specifying alternative text that will be displayed if the HTML element breaks, such as an image not loading. In addition, the alt attribute ensures that users with vision impairments get the same information from the image as sighted users. Screen readers will read the alt tag to someone who is listening to the web page.

Back

Each tag can contain as many attributes as needed. In the image tag below, there are several examples of multiple attributes.

Front

<img src="images/box.jpg" originalAttribute="src" originalPath="images/box.jpg" border="0" width="550" height="220" alt="Picture of a box" />

Back

Table Headings

Front

Back

Blockquote Tag

Front

used to indent full blocks of text.

Back

here are tags used to create rows and columns. The table row tag, <tr> (t for table, r for row), is used to create a row

Front

Within each table row tag, table data tags, <td> (t for table, and d for data), are used to create individual cells.

Back

Creating Folders with a Mac

Front

Steps

Back

Comment Tag

Front

used to add text to the HTML document that will not appear on the web page. Internet browsers completely ignore the contents of a comment tag.

Back

What Is HTML?

Front

Hypertext Markup Language, or HTML for short, is used to create content on the World Wide Web. HTML is used to create web pages so that people can see every page regardless of the computer or browser they choose to use.

Back

Strong Tag

Front

To create bold text using HTML, use the strong tag. The <strong> tag makes text bold (darker), creating the visual effect of strong text.

Back

Break tag

Front

What if you do not want the extra line break between text that the paragraph tags create? The break tag, <br/>, creates a single line break. Sometimes this is written <br>.v

Back

Title attribute:

Front

When you move the mouse over the element, the title will display as a tooltip. This tag will also be read aloud for people using screen readers.

Back

For example, to change the background color of a web page,

Front

you would use the bgcolor attribute within the body tag. (<body bgcolor="#000000">) #000000 This is the code for black.

Back

For the most part, each set of HTML tags has three main parts:

Front

1.Opening Tag 2.Contents 3.Closing Tag

Back

DOM

Front

is an application programming interface for HTML. It defines the logical structure and style of documents.

Back

href attribute:

Front

This attribute defines the link path in <a> tags, pointing the link to where it needs to go when clicked by the user. <a href="https://www.google.com">Click here to visit Google.</a>

Back

Section 2

(14 cards)

&asymp;

Front

approximation sign

Back

&ge;

Front

greater than or equal to

Back

&ang;

Front

angle sign

Back

Creating and Storing HTML Files

Front

You can create HTML files on your computer. However, in order to make those files visible on the Internet, you must store them where other computers can access them. If you keep the files on your computer, the files will only be accessible when your computer is on.

Back

FTP Services

Front

a computer connected to the Internet that is used exclusively to store files. When a computer from anywhere in the world accesses a web page, that computer simply reads the HTML file from the FTP server where it is stored.

Back

&Delta;

Front

delta sign

Back

&radic;

Front

radical sign

Back

&ne;

Front

not equal to sign

Back

Index.html

Front

the home page for your website

Back

HTML Files

Front

text file that contains the code that builds a web page.

Back

&nbsp;

Front

non-breaking space

Back

&deg;

Front

degree sign

Back

&le;

Front

less than or equal to

Back

&divide;

Front

division sign

Back