php - How to linking to a div in html? -
I have a list of links and that page has the contents of the link, how can I link to a place on the page Am I
For example:
& lt; Div id = "div1" & gt; Content content content content & lt; / Div & gt; & Lt; Div id = "div2" & gt; Content content content content & lt; / Div & gt; & Lt; Div id = "div3" & gt; Content content content content & lt; / Div & gt; How to link
div3
Use this type for
id
for div3
:
& lt; A href = "# div3" & gt; Link DIV3 & lt; / A & gt; & Lt; Div id = "div1" & gt; Content content content content & lt; / Div & gt; & Lt; Div id = "div2" & gt; Content content content content & lt; / Div & gt; & Lt; Div id = "div3" & gt; Content content content content & lt; / Div & gt;
You can read more about it.
Comments
Post a Comment