Tuto WEBDEV 25

286 Part 7: Specific Web features ▶ Save the page (Ctrl + S) and run the page test ( among the quick access buttons). 1.  The page is displayed in the browser. 2.  Type text in the different edit controls of the page: the text is displayed with the new selected color. This modification was taken into account even on the control that was created beforehand and whose style was overridden. 3. Close the browser. Styles and rich text You also have the ability to define rich text in the elements! The rich text allows you to use different styles for the different words found in the control caption. Therefore, for the caption of an edit control, you have the ability to define that part of the caption will be using the default color while another part will be using a different color. Let’s take a simple example: adding a red asterisk to specify that a control is a mandatory control. ▶ In our example: 1. Select the “Name” edit control. 2. Press the SPACE or ENTER key on the keyboard. 3.  The caption text becomes editable. 4. Add a star at the end of caption. 5. Select this star. 6. On the "Text" pane, in the "Font" group: • Click the button to switch the star in exponent. • Change the text color to red with the button. 7. Exit from the edit mode (Esc key). 8.  The red asterisk appears in the control caption.

RkJQdWJsaXNoZXIy NDQ0OA==