Classes


Classes
    Stylesheet supports classes or sets of style changes for a document a class can be defined to change style in a specific way for any element it is applied to. If any element is made member of the class by inserting ‘class: classname’ into its opening tag then it confirms to that class specification. In a stylesheet class can be defined using a followed by the name of the class.
</span><span style="font-size:18.0pt;font-family:"Times New Roman","serif";mso-fareast-font-family: "Times New Roman";color:black;mso-bidi-font-weight:bold"> HTML Program using Stylesheets </span><span style="font-size:18.0pt;font-family:"Times New Roman","serif"; mso-fareast-font-family:"Times New Roman";color:blue">



Question and Answer


class=question> How to Create ss to alter an HTML element?

class=answer> The style assign process an be accomplished with class=highlight>
Style tag


: In the body of the document is used to set boundaries for styling specification.

ID: similar to classes we can also define ID. Inside a stylesheet ID is defined using “#” symbol followed by ID name
#question
{
color: brown;
font-style: italic;
font-weight: bold;
}

id=question> How to create a stylesheet to alter an HTML element?

Post a Comment

0 Comments