Do I have to put <div style> and all its attributes.
Hi, do I have to put a <div style> in the html part, when I put a div class in the css ontop of the page. Cant I just put a name ontop as the class.
Then put <div class="name"> or whatever in the html. For example.
Put #image1 { and its properities and values in the Css ontop of page under the <head> tag and then put <div class="image1> in the <body>
Is it aslo necessary to put <a href= > in the html, if I put the url in the Css ontop page.
if you want <div class="image1> to be link to redirect users, than you should put a <a href=>
in the #image1 you can define the background image of the div, not the redirection link..
It is always best to have an external CSS file unless you only have one or two pages. Then use of embedded CSS probably would be easier for you if linking to an external CSS file is too much.
Hi, do I have to put a <div style> in the html part, when I put a div class in the css ontop of the page. Cant I just put a name ontop as the class.
Then put <div class="name"> or whatever in the html. For example.
Put #image1 { and its properities and values in the Css ontop of page under the <head> tag and then put <div class="image1> in the <body>
Is it aslo necessary to put <a href= > in the html, if I put the url in the Css ontop page.
Bookmarks