Create HTML code: DemoTitle Description Keywords Body H1 PreviewCopy the code and save as .html or .htm file. Then open this file using any web browser. Add Color or Style to your textIn the above code we have not added any style , now let us try to add background color , font color , layout etc to our <h1> tag. To add a style change the <H1> tag to this.
Copy the Style properties and place them inside <head> tag. Open the page in browser and check.
One sample code is here.
|