/    Sign up×
Community /Pin to ProfileBookmark

This is a "Can I …?" question

Can I load sub-sets of working HTML code into a main HTML script?

As an example, in JS, I could use the
<script type=”text/javascript” src=”someJSsource.js”></script>
in the head or body sections

Is there something similar in HTML?

If yes, what keywords would I search under?
If not, thanks for the reply.

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@felgallApr 29.2008 — The best way to do that is to use server side processing - either server side includes or an actual server side language.

To do it within the page you can use either the old way that is being phased out - iframe - or the new way - object - which unfortunately has a few limitations as far as IE8 and earlier are concerned - see http://www.felgall.com/noiframe.htm for more info.
Copy linkTweet thisAlerts:
@JMRKERauthorApr 30.2008 — Thank you for the information.
×

Success!

Help @JMRKER spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...