Do one of the following:
You can specify how the slice data appears in a web browser when exported with an HTML file. The available options vary according to the slice type you select.
Image slices contain image data. This is the default content type.
No Image slices let you create empty table cells that can be populated with text or a solid color. You can enter HTML text in a No Image slice. If you set the Text Is HTML option in the Save for Web & Devices dialog box, the text is interpreted as HTML when viewed in a browser. Slices of type No Image aren’t exported as images and can be previewed in a browser.
Setting options for an auto slice promotes the slice to a user slice.
As you add slices to an image, you may find it helpful to rename slices based on their content. By default, user slices are named according to the settings in the Output Settings dialog box.
The Name text box is not available for No Image slice content.
You can select a background color to fill the transparent area (for Image slices) or entire area (for No Image slices) of the slice.
Photoshop does not display the selected background color—you must preview the image in a browser to view the effect of selecting a background color.
Assigning a URL to a slice makes the entire slice area a link in the resulting web page. When a user clicks the link, the web browser navigates to the specified URL and target frame. This option is available only for Image slices.
Displays the linked file in a new window, leaving the original browser window open.
Displays the linked file in the same frame as the original file.
Displays the linked file in its own original parent frameset. Use this option if the HTML document contains frames and the current frame is a child. The linked file appears in the current parent frame.
Replaces the entire browser window with the linked file, removing all current frames. The name must match a frame name previously defined in the HTML file for the document. When a user clicks the link, the specified file appears in the new frame.
For more information on frames, see an HTML reference.
You can specify what messages appear in the browser. These options are available only for Image slices and appear only in exported HTML files.
Changes the default message in the browser’s status area for a selected slice or slices. By default, the slice’s URL, if any, is displayed.
Specifies an Alt tag for a selected slice or slices. The Alt text appears in place of the slice image in nongraphical browsers. It also appears in place of the image while the image is downloading and as a tool tip in some browsers.
When you choose a slice of type No Image, you can enter text to be displayed in the slice area of the resulting web page. This can be plain text or text formatted with standard HTML tags. You can also select vertical and horizontal alignment options. For more information on specific HTML tags, see an HTML reference.
Photoshop does not display HTML text in the document window; you must use a web browser to preview the text. Be sure to preview HTML text in different browsers, with different browser settings, and on different operating systems to confirm that your text is displayed correctly on the web.
The amount of text in a No Image slice can affect the layout of an exported page.
(Save For Web & Devices dialog box only) If desired, select options in the Cell Alignment section of the dialog box:
Uses the browser’s default for horizontal alignment.
Aligns the text to the left side of the slice area.
Aligns the text to the center of the slice area.
Aligns the text to the right side of the slice area.
Uses the browser’s default for vertical alignment.
Aligns the text to the top of the slice area.
Sets a common baseline for the first line of text in cells in the same row (of the resulting HTML table). Each cell in the row must use the Baseline option.
Centers the text vertically in the slice area.
Aligns the text to the bottom of the slice area.